/* ─────────────────────────────────────────────────────────── */
/* ReggeliGO — Order App styles.css                            */
/* Uses tokens from breakfast/styles.css (shared design system)*/
/* ─────────────────────────────────────────────────────────── */

/* ── HEADER (mirrors breakfast .rgo-booking-header) ──────── */
.order-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.order-header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-header-logo {
  height: 32px;
  width: auto;
}
.order-lang-mount {
  flex-shrink: 0;
}
.order-back-btn {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.order-back-btn:hover {
  background: var(--bg);
}
.order-header-space {
  width: 36px;
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.order-main {
  min-height: calc(100dvh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px 20px;
}
.order-content {
  width: 100%;
  max-width: 480px;
}

/* ── TITLE ────────────────────────────────────────────────── */
.order-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}
.order-subtitle {
  font-size: 15px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 28px;
}

/* ── AREA NOTE + CARD AREA + SUMMARY HINT ────────────────── */
.order-area-note {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
  font-style: italic;
}
.order-card-area {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 4px;
}
.order-summary-hint {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin: 8px 0 4px;
  line-height: 1.4;
}

/* ── CARDS ────────────────────────────────────────────────── */
.order-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.order-card:hover {
  box-shadow: var(--sh);
  transform: translateY(-1px);
}
.order-card--upcoming {
  cursor: default;
}
.order-card--upcoming:hover {
  box-shadow: var(--sh-sm);
  transform: none;
}

/* Card icon */
.order-card-icon {
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--red-bg);
}
.order-card--upcoming .order-card-icon {
  background: var(--bg);
  color: var(--text-3);
}

/* Card body */
.order-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.order-card-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Card CTA */
.order-card-cta {
  display: flex;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.order-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-red);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.order-btn-primary:hover {
  background: var(--red-dark);
}
.order-btn-upcoming {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: var(--bg-2);
  color: var(--text-3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: default;
}

/* ── FULL-WIDTH BUTTON ────────────────────────────────────── */
.order-btn-full {
  width: 100%;
  justify-content: center;
}

/* ── SCREEN WRAPPER ──────────────────────────────────────── */
.order-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.order-screen .order-header {
  position: sticky;
  top: 0;
}
.order-screen .order-main {
  flex: 1;
  min-height: auto;
}

/* ── ADDRESS FORM ────────────────────────────────────────── */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-field-row {
  display: flex;
  gap: 12px;
}
.order-field--zip {
  flex: 0 0 120px;
}
.order-field--city {
  flex: 1;
}
.order-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.order-field-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
.order-field-input:focus {
  border-color: var(--red);
}
.order-field-input::placeholder {
  color: var(--text-4);
}
.order-form-error {
  padding: 12px 14px;
  background: rgba(228, 0, 43, 0.06);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
}

/* ── SECONDARY BUTTON ────────────────────────────────────── */
.order-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
  margin-top: -4px;
}
.order-btn-secondary:hover {
  border-color: var(--text-3);
}

/* ── SUMMARY CARD ────────────────────────────────────────── */
.order-summary-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 20px;
  margin-bottom: 20px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}
.order-summary-row + .order-summary-row {
  border-top: 1px solid var(--border);
}
.order-summary-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.order-summary-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.order-summary-zone {
  color: var(--green);
}

/* ── CENTER CONTENT (not-available) ──────────────────────── */
.order-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}

/* ── PLACEHOLDER (shared by not-available) ───────────────── */
.order-placeholder-main {
  flex-direction: column;
  align-items: stretch;
}
.order-placeholder-main .order-header {
  position: relative;
}
.order-placeholder-main .order-header-inner {
  position: relative;
  justify-content: center;
}
.order-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}
.order-placeholder-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-bg);
  margin-bottom: 24px;
}
.order-placeholder-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 360px;
}
.order-placeholder-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 340px;
}
.order-placeholder-cta {
  margin-bottom: 40px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .order-header-inner {
    padding: 12px 16px;
  }
  .order-title {
    font-size: 20px;
  }
  .order-card {
    padding: 20px;
  }
}
