/* ============ Lumi Dessert — Order page ============ */

.order-hero {
  padding: 70px 0 20px;
  background: linear-gradient(180deg, var(--pink-pale) 0%, var(--cream) 100%);
}
.menu-board-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 36px auto 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.order-section {
  padding: 50px 0;
}
.order-section-alt {
  background: var(--white);
  padding-top: 10px;
}

.order-h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--coffee-deep);
  margin: 0 0 20px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* Menu list */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(107,70,48,0.1);
  border-radius: 16px;
  padding: 16px 20px;
}
.menu-item-info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--coffee-deep);
  font-family: var(--font-display);
}
.menu-item-info p {
  margin: 0;
  color: var(--pink);
  font-weight: 600;
  font-size: 0.95rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.qty-btn:hover { background: var(--mint-deep); }
.qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  color: var(--coffee-deep);
}

/* Summary sidebar */
.order-summary {
  background: var(--cream);
  border-radius: 20px;
  padding: 26px;
  position: sticky;
  top: 90px;
}
.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 30px;
}
.empty-cart {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text);
}
.summary-line span:first-child { color: var(--text-soft); }
.summary-totals {
  border-top: 1px solid rgba(107,70,48,0.15);
  padding-top: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
  color: var(--text-soft);
}
.summary-row[hidden] {
  display: none;
}
.summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--coffee-deep);
  margin-top: 6px;
}

/* Form */
.order-form {
  max-width: 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fulfillment-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.fulfillment-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid rgba(107,70,48,0.15);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.fulfillment-btn.is-active {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-pale);
}

.fulfillment-panel {
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(107,70,48,0.18);
  background: var(--white);
  color: var(--text);
  font-weight: 400;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.field-row {
  display: flex;
  gap: 14px;
}
.field-row .field { flex: 1; min-width: 0; }
.field-narrow { flex: 0 0 90px !important; }
.field-note {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin: -6px 0 0;
}

.form-error {
  color: #c0392b;
  background: #fdecea;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.btn-checkout {
  width: 100%;
  margin-top: 18px;
  border: none;
  font-size: 1.05rem;
}
.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.secure-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* Confirmation page */
.confirm-section {
  padding: 110px 0;
}
.confirm-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 24px;
}
.confirm-inner .btn { margin-top: 20px; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
}

/* Delivery distance note + free-delivery popup */
.delivery-distance-note { margin-top: 8px; }
.delivery-distance-note[hidden] { display: none; }

.delivery-dialog {
  border: none;
  border-radius: 20px;
  padding: 32px 28px 26px;
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow);
}
.delivery-dialog::backdrop { background: rgba(63, 42, 30, 0.45); }
.delivery-dialog-icon { font-size: 2.2rem; margin: 0 0 6px; }
.delivery-dialog h2 {
  font-family: var(--font-display);
  color: var(--coffee-deep);
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.delivery-dialog p { margin: 0 0 12px; line-height: 1.55; }
.delivery-dialog-gap { color: var(--pink); font-weight: 600; }
.delivery-dialog-gap:empty { display: none; }
.delivery-dialog .btn { border: none; margin-top: 6px; min-width: 140px; }

/* Pickup location + contact */
.pickup-info {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pickup-info-row { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.pickup-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.pickup-info a { color: var(--coffee-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pickup-info a:hover { color: var(--pink); }
.delivery-dialog .delivery-dialog-contact { font-size: 0.82rem; color: var(--text-soft); }
.delivery-dialog-contact a { color: inherit; font-weight: 600; white-space: nowrap; }

/* Hero note sits right under the intro paragraph, above the menu board */
.order-hero .section-sub.center { margin-bottom: 0; }
.service-charge-note {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 560px;
  margin: 10px auto 0;
}

.req { color: #d93a3a; font-weight: 700; margin-left: 1px; }


/* SMS consent checkbox (must stay unchecked by default for carrier compliance) */
.sms-optin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: -4px 0 18px;
  cursor: pointer;
}
.sms-optin input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
  cursor: pointer;
}
.sms-optin a { color: var(--coffee); text-decoration: underline; }
.sms-legal { font-size: 0.85rem; margin: -10px 0 18px 28px; }
.sms-legal a { color: var(--coffee); font-weight: 600; text-decoration: underline; }
