/* ============================================================
   ANNABI COOKIES — order.css
   Order form specific styles.
   Depends on: main.css (tokens, reset, nav, footer, buttons)
   Mobile-first throughout.
   ============================================================ */


/* ============================================================
   1. PAGE LAYOUT
   ============================================================ */

/* Push content below fixed nav */
body {
  padding-top: var(--nav-height);
}

/* Main content column */
.order-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px var(--container-pad) 96px;
}


/* ============================================================
   2. SECTION LABELS & DIVIDERS
   ============================================================ */

.order-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 4px;
  opacity: 0.7;
}

.order-section-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.1;
}

.order-section-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}

.order-divider {
  border: none;
  border-top: 1px solid var(--grey-light);
  margin: 40px 0;
}


/* ============================================================
   3. NOTICES & INFO BOXES
   ============================================================ */

.allergen-notice {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-mid);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hint-box {
  background: var(--off-white);
  border-left: 3px solid var(--peach);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--grey-mid);
  margin-bottom: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}


/* ============================================================
   4. BOX CARDS
   ============================================================ */

.box-card {
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
  animation: fadeUp 0.3s ease both;
  background: var(--white);
}

.box-card.active {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Box card header */
.box-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
}

.box-card-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.box-price-pill {
  background: var(--peach);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.box-price-pill--empty {
  background: var(--off-white);
  color: var(--grey-mid);
  opacity: 0.7;
}


/* ============================================================
   5. SIZE BUTTONS (order form — scoped to #boxes-container
      and #ltd-section; does not affect index.html)
   ============================================================ */

.size-section {
  padding: 16px 20px;
  border-top: 1px solid var(--grey-light);
  background: var(--off-white);
}

.step-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 12px;
  opacity: 0.8;
}

.size-buttons {
  display: flex;
  gap: 8px;
}

/* .size-btn used by both box sizes and ltd quantity buttons */
.size-btn {
  flex: 1;
  padding: 16px 8px 12px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), background var(--ease);
  font-family: var(--font-heading);
}

.size-btn:hover {
  border-color: var(--black);
}

.size-btn.selected {
  border-color: var(--black);
  background: var(--peach);
}

.size-btn .snum {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  display: block;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.size-btn .slabel {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  display: block;
  margin-bottom: 6px;
}

.size-btn .sprice {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}


/* ============================================================
   6. FLAVOUR ROWS (with images)
   ============================================================ */

.flavours-section {
  padding: 16px 20px;
  border-top: 1px solid var(--grey-light);
  background: var(--white);
}

.flavours-section.hidden {
  display: none;
}

.flavour-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 14px;
}

.flavour-row:last-of-type {
  border-bottom: none;
}

/* Cookie thumbnail */
.flavour-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--off-white);
}

.flavour-name {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
  min-width: 0;
}

/* Stepper control */
.flavour-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}

.flavour-stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  font-family: var(--font-heading);
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.flavour-stepper button:hover:not(:disabled) {
  background: var(--peach);
}

.flavour-stepper button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.flavour-stepper .fval {
  width: 44px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: none;
  outline: none;
  padding: 0;
  cursor: text;
}

.flavour-stepper .fval::-webkit-inner-spin-button,
.flavour-stepper .fval::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flavour-stepper .fval[type=number] {
  -moz-appearance: textfield;
}


/* ============================================================
   7. PROGRESS BAR
   ============================================================ */

.progress-wrap {
  background: var(--grey-light);
  border-radius: var(--radius-pill);
  height: 5px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  background: var(--black);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-mid);
  margin-top: 8px;
  text-align: right;
}

.progress-text.complete {
  color: #2d6a4f;
  font-weight: 700;
}

.overfill-msg {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  background: #fff0f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  text-align: center;
  display: none;
}

.overfill-msg.show {
  display: block;
}


/* ============================================================
   8. BOX FOOTER (subtotal + remove)
   ============================================================ */

.box-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--grey-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off-white);
}

.box-subtotal {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--grey-mid);
}

.box-subtotal strong {
  color: var(--black);
  font-weight: 700;
}

.remove-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-mid);
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--ease);
}

.remove-btn:hover {
  color: var(--black);
}

/* Per-box gift card block — sits between flavours section and box footer */
.box-gift-card-block {
  padding: 14px 20px;
  border-top: 1px solid var(--grey-light);
  background: var(--white);
}


/* ============================================================
   9. ADD BOX BUTTON
   ============================================================ */

.add-box-btn {
  width: 100%;
  padding: 18px;
  background: var(--white);
  border: 1.5px dashed var(--grey-light);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-mid);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  margin-top: 4px;
}

.add-box-btn:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--off-white);
}


/* ============================================================
   10. LIMITED EDITION SECTION
   ============================================================ */

#ltd-section {
  display: none;
  margin-top: 24px;
}

.ltd-card {
  border: 1.5px solid var(--peach-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.ltd-header {
  background: var(--peach);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ltd-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Limited edition box image */
.ltd-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--peach-mid);
}

.ltd-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 3px;
}

.ltd-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ltd-price-pill {
  background: var(--black);
  color: var(--peach);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ltd-body {
  padding: 16px 20px;
  border-top: 1px solid rgba(232,185,154,0.4);
}

.ltd-size-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 10px;
}

.ltd-flavour-list {
  margin-bottom: 16px;
}

/* Ltd checkbox row */
.ltd-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ltd-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

.ltd-checkbox-label span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

/* Ltd quantity selector */
#ltd-qty-wrap {
  display: none;
  margin-top: 16px;
}

.ltd-qty-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  display: block;
  margin-bottom: 10px;
}

.ltd-qty-buttons {
  display: flex;
  gap: 8px;
}

/* Ltd quantity .size-btn variant — smaller */
.ltd-qty-buttons .size-btn {
  padding: 12px 8px;
}

.ltd-qty-buttons .size-btn .snum {
  font-size: 22px;
}

/* Seasonal tier cards */
.special-tier-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 12px;
}

.special-tier-card {
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--white);
  transition: border-color var(--ease), background var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top row — image + name/desc side by side */
.special-tier-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.special-tier-card:last-child {
  margin-bottom: 0;
}

.special-tier-card:hover {
  border-color: var(--black);
}

.special-tier-card.selected {
  border-color: var(--black);
  background: var(--peach);
}

/* Tier image — 48×48 thumbnail, matches flavour-img */
.special-tier-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--peach-mid);
}

/* Tier body — name, description, footer */
.special-tier-body {
  flex: 1;
  min-width: 0;
}

.special-tier-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.special-tier-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--grey-mid);
  line-height: 1.4;
  margin-bottom: 10px;
}

.special-tier-card.selected .special-tier-desc {
  color: var(--black);
}

/* Footer row — price left, stepper right */
.special-tier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.special-tier-price {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

/* Qty stepper */
.special-tier-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-stepper-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--grey-light);
  border-radius: 50%;
  background: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease), background var(--ease);
  flex-shrink: 0;
}

.tier-stepper-btn:hover:not(:disabled) {
  border-color: var(--black);
}

.tier-stepper-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.special-tier-card.selected .tier-stepper-btn {
  border-color: var(--black);
  background: var(--white);
}

.tier-stepper-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  min-width: 20px;
  text-align: center;
}


/* ============================================================
   11. ORDER SUMMARY
   ============================================================ */

.order-summary {
  background: var(--black);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.summary-heading {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.summary-empty {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.summary-fl {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.summary-row-price {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--peach);
  white-space: nowrap;
}

.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.summary-total-price {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  color: var(--peach);
  letter-spacing: -0.03em;
}


/* ============================================================
   12. FORM FIELDS
   ============================================================ */

.field-group {
  margin-bottom: 20px;
}

.field-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
  display: block;
}

.field-label .req {
  color: var(--peach-deep);
}

.sub-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-mid);
  margin-bottom: 6px;
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--black);
}

input::placeholder {
  color: var(--grey-light);
  font-weight: 400;
}

.delivery-hint {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-mid);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* Delivery time selects */
.delivery-time-group {
  display: none;
  margin-top: 16px;
}

.delivery-time-group.visible {
  display: block;
}

/* Saturday fixed time display */
.saturday-time-display {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  padding: 14px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  background: var(--off-white);
}


/* ============================================================
   13. PAYMENT SECTION
   ============================================================ */

.payment-box {
  background: var(--peach);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 8px;
}

.payment-box h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.payment-box p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
}

.momo-box {
  background: var(--black);
  color: var(--peach);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 14px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.8;
}

.momo-box strong {
  font-weight: 700;
  color: var(--white);
}

.reminder-box {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-mid);
  line-height: 1.9;
  margin-bottom: 32px;
}

.reminder-box strong {
  color: var(--black);
  font-weight: 700;
}

.reminder-box a {
  color: var(--black);
  text-decoration: underline;
}


/* ============================================================
   14. SUBMIT BUTTON
   ============================================================ */

/*
 * PAYSTACK SWAP — when integrating Paystack:
 * Replace the onclick="submitOrder()" handler on #submit-btn-ref
 * with your Paystack inline handler or popup call.
 * The validation logic in submitOrder() should still run first —
 * call validateOrder() (rename from submitOrder) and only proceed
 * to Paystack if it returns true.
 * See js/order.js for the matching comment.
 */

.submit-btn {
  width: 100%;
  padding: 20px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.submit-btn:hover:not(:disabled) {
  background: #222;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}


/* ============================================================
   15. WHATSAPP BUTTON (secondary action on success card)
   ============================================================ */

.whatsapp-btn {
  width: 100%;
  padding: 18px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--ease), transform var(--ease);
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1ebd5a;
  transform: translateY(-1px);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Clear / new order button */
.new-order-btn {
  width: 100%;
  padding: 14px;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--ease), background var(--ease);
}

.new-order-btn:hover {
  border-color: var(--black);
  background: var(--off-white);
}


/* ============================================================
   16. ERROR PANEL
   ============================================================ */

.form-error-panel {
  background: #fff0f0;
  border: 2px solid #c0392b;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.form-error-panel p {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 10px;
}

.form-error-panel ul {
  padding-left: 18px;
  margin: 0;
}

.form-error-panel li {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Date error */
.date-error {
  font-family: var(--font-heading);
  font-size: 12px;
  color: #c0392b;
  margin-top: 8px;
  font-weight: 600;
}

/* Clear confirm panel */
.clear-confirm-panel {
  background: #fff8f0;
  border: 2px solid #e8a000;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.clear-confirm-panel span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.clear-confirm-panel .confirm-btns {
  display: flex;
  gap: 8px;
}

.clear-confirm-yes {
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.clear-confirm-no {
  padding: 8px 16px;
  background: none;
  color: var(--grey-mid);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}


/* ============================================================
   17. SUCCESS CARD
   ============================================================ */

.success-card {
  display: none;
  background: var(--peach);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  margin-top: 20px;
}

.success-card.show {
  display: block;
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.025em;
  margin: 12px 0 10px;
  line-height: 1.05;
}

.success-card p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.7;
}

.success-card .order-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin: 8px 0 16px;
  letter-spacing: 0.05em;
}

.post-order-btns {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ============================================================
   18. GIFT CARD
   ============================================================ */

.gift-card-wrap {
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.gift-card-header {
  background: var(--off-white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--grey-light);
}

.gift-card-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 3px;
}

.gift-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.gift-card-price-pill {
  background: var(--peach);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.gift-card-body {
  padding: 16px 20px;
}

.gift-card-desc {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}

.gift-card-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 0;
}

.gift-card-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

.gift-card-checkbox-label span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

/* Gift card options — revealed on checkbox tick */
#gift-card-options {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-light);
}

.gift-card-step-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 12px;
}

/* Card type tiles */
.gift-card-tiles {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.gift-tile {
  flex: 1;
  padding: 14px 8px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), background var(--ease);
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gift-tile:hover {
  border-color: var(--black);
}

.gift-tile.selected {
  border-color: var(--black);
  background: var(--peach);
}

.gift-tile-emoji {
  font-size: 22px;
  line-height: 1;
}

.gift-tile-name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Message textarea */
.gift-message-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gift-message-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

.gift-message-optional {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey-mid);
}

.gift-message-field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  transition: border-color var(--ease);
}

.gift-message-field:focus {
  outline: none;
  border-color: var(--black);
}

.gift-message-field::placeholder {
  color: var(--grey-light);
}

.gift-char-count {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-mid);
  text-align: right;
}


/* ============================================================
   19. PROGRESSIVE SECTION REVEAL
   ============================================================ */

/*
 * Sections 02, 03, 04 are hidden on load and revealed
 * progressively by order.js as the previous section completes.
 * The wrapper uses max-height transition for a smooth slide-down.
 */

.form-section {
  overflow: hidden;
}

.form-section--hidden {
  display: none;
}

.form-section--visible {
  display: block;
}

/* Inner wrapper is what actually animates */
.form-section__inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.form-section--visible .form-section__inner {
  opacity: 1;
  transform: translateY(0);
}

/* Nudge prompt shown at the bottom of Section 01 when incomplete */
.section-nudge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-mid);
  text-align: center;
  padding: 16px 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-nudge.visible {
  opacity: 1;
}


/* ============================================================
   19. RESPONSIVE — MOBILE (≤ 520px)
   ============================================================ */

@media (max-width: 520px) {

  .order-main {
    padding: 32px var(--container-pad) 64px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .flavour-img {
    width: 36px;
    height: 36px;
  }

  .flavour-name {
    font-size: 13px;
  }

  .flavour-stepper button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .flavour-stepper .fval {
    width: 32px;
    font-size: 13px;
  }

  .flavour-row {
    padding: 10px 0;
    gap: 8px;
  }

  .size-btn .snum {
    font-size: 24px;
  }

  .size-btn {
    padding: 18px 6px 14px;
  }

  .payment-box {
    padding: 20px;
  }

  .order-summary {
    padding: 20px;
  }

  .ltd-header {
    flex-wrap: wrap;
    gap: 10px;
  }

}
