/* ===== FONTS & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e63312;
  --orange: #f97316;
  --cream: #fdf6ec;
  --dark: #1a1209;
  --text: #2d1f0e;
  --text-light: #8b7355;
  --border: #e8ddd0;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --radius: 16px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ===== SUSPENSION BANNER ===== */
.suspended-banner {
  background: #1a1209;
  color: #fdf6ec;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.suspended-icon { font-size: 1.8rem; }
.suspended-banner strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.suspended-banner p { font-size: 0.85rem; opacity: 0.75; }

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  color: white;
  padding: 20px 20px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-sub {
  font-size: 0.8rem;
  opacity: 0.5;
  font-weight: 300;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== SECTIONS ===== */
.section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

/* ===== CATEGORY LABELS ===== */
.category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 14px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.category-label:first-of-type { margin-top: 0; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red { background: var(--red); }
.dot.cream { background: #d4a373; }
.dot.orange { background: var(--orange); }

/* ===== ITEM ROWS ===== */
.pizza-list { display: flex; flex-direction: column; gap: 2px; }

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.15s;
}
.item-row:hover { background: #faf5ee; }

.item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.item-price {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== QUANTITY CONTROLS ===== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: 12px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  touch-action: manipulation;
  user-select: none;
}
.qty-btn:active {
  transform: scale(0.9);
  background: var(--cream);
}
.qty-btn.plus {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.qty-btn.plus:active { background: #c42a0e; }

.qty-val {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

/* ===== SAUCE SECTION ===== */
.sauce-note {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 500;
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 20px;
}

.sauce-extra-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff3cd;
  border: 1px solid #f59e0b;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
}

.sauce-free-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.sauce-free-banner strong { font-weight: 700; }

/* ===== NAME INPUT ===== */
.name-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.name-input:focus {
  border-color: var(--red);
  background: white;
}
.name-input::placeholder { color: #bfab96; }

/* ===== SUMMARY ===== */
.summary-section { }

.summary-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.summary-free { color: var(--text-light); }
.summary-row em { font-style: normal; font-size: 0.8rem; color: #4ade80; font-weight: 500; }

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--dark);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

/* ===== CTA ===== */
.cta-area {
  padding: 20px 0 10px;
}

.btn-confirm {
  width: 100%;
  padding: 18px;
  background: var(--red);
  color: white;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(230, 51, 18, 0.35);
}
.btn-confirm:hover { background: #c42a0e; transform: translateY(-1px); }
.btn-confirm:active { transform: translateY(0); }
.btn-confirm:disabled {
  background: #c9bfb6;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.cta-note {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--red);
  min-height: 20px;
}

/* ===== READY BANNER (confirmation page) ===== */
.ready-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #052e16;
  border: 2px solid #4ade80;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  animation: pulse-green 1.5s ease-in-out infinite;
}
.ready-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  animation: bounce 0.8s ease-in-out infinite alternate;
}
.ready-banner strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: #4ade80;
}
.ready-banner span {
  font-size: 0.85rem;
  color: #86efac;
  opacity: 0.85;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

.queue-card.queue-ready {
  background: #052e16;
  border: 2px solid #4ade80;
}
.queue-card.queue-ready .queue-num {
  color: #4ade80;
}


.confirmation-body { background: var(--dark); min-height: 100vh; }

.confirm-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.confirm-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 32px 24px;
  margin-top: 16px;
}

.confirm-check {
  width: 64px; height: 64px;
  background: #4ade80;
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.confirm-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.confirm-meta {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}
.confirm-row .label { color: var(--text-light); }
.confirm-row .value { font-weight: 600; font-family: var(--font-head); }
.confirm-row .highlight { color: var(--red); font-size: 1.1rem; }

.queue-card {
  background: var(--dark);
  color: white;
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 16px;
}
.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.queue-stat { text-align: center; }
.queue-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd166;
}
.queue-label { font-size: 0.75rem; opacity: 0.6; margin-top: 4px; }
.queue-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.15); }
.queue-update { text-align: center; margin-top: 12px; font-size: 0.7rem; opacity: 0.4; }

.confirm-details {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.confirm-details h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row.free { color: var(--text-light); }
.detail-row em { font-style: normal; font-size: 0.8rem; color: #4ade80; }

.confirm-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}

.payment-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.payment-card h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.payment-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.payment-card li { font-size: 0.88rem; color: var(--text); }
.payment-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-head);
}

.btn-back {
  display: block;
  text-align: center;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--dark);
  border-radius: 12px;
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-back:hover { background: var(--dark); color: white; }

/* ===== ORDER TYPE SELECTOR ===== */
.order-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.order-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: all 0.18s;
  touch-action: manipulation;
}
.order-type-btn:hover {
  border-color: var(--red);
  color: var(--text);
}
.order-type-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}
.ot-icon { font-size: 1.6rem; }
.ot-label { font-size: 0.9rem; }

/* ===== ADDRESS FIELD ===== */
.address-field {
  margin-top: 14px;
}
.address-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.required-star { color: var(--red); }

.address-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.address-input:focus {
  border-color: var(--red);
  background: white;
}
.address-input::placeholder { color: #bfab96; }

/* ===== ORDER TYPE TAG (confirmation page) ===== */
.order-type-tag {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.type-surplace {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.type-livraison {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ===== READY BANNER (confirmation page) ===== */
.ready-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #052e16;
  border: 2px solid #4ade80;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  animation: pulse-green 1.5s ease-in-out infinite;
}
.ready-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  animation: bounce 0.8s ease-in-out infinite alternate;
}
.ready-banner strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: #4ade80;
}
.ready-banner span { font-size: 0.85rem; color: #86efac; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
.queue-card.queue-ready {
  background: #052e16;
  border: 2px solid #4ade80;
}
.queue-card.queue-ready .queue-num { color: #4ade80; }

/* ===== DELIVERY TIME DISCLAIMER (confirmation page) ===== */
.delivery-time-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #93c5fd;
  line-height: 1.5;
  text-align: center;
}

/* ===== EDIT ORDER BLOCK (confirmation page) ===== */
.edit-block {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-message {
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
}
.edit-message--open {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.edit-message--locked {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.btn-edit {
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: white;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.btn-edit:hover  { background: #2d1f0e; }
.btn-edit:active { transform: scale(0.98); }

.btn-add-pizzas {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  background: var(--orange, #ea580c);
  color: white;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.btn-add-pizzas:hover  { filter: brightness(1.08); }
.btn-add-pizzas:active { transform: scale(0.98); }

/* ===== EDIT MODE BANNER (order page, top of form) ===== */
.edit-mode-banner {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}
.edit-mode-banner strong {
  font-family: var(--font-head);
  font-weight: 800;
}


.upsell-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.upsell-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.upsell-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.upsell-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #f1ede7;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.upsell-buttons button:hover {
  background: #e5ded3;
}


.wa-card {
  margin: 18px 0 20px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.wa-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.wa-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.wa-button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.22);
  transition: all 0.2s;
}

.wa-button:hover {
  background: #1fb857;
  transform: translateY(-1px);
}

.wa-button:active {
  transform: translateY(0);
}

/* ===== RECOVERY BANNER ===== */
.recovery-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e3a5f;
  color: #93c5fd;
  padding: 12px 20px;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 110;
  flex-wrap: wrap;
}
.recovery-link-btn {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.recovery-dismiss {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
}

/* ===== WAIT BANNER ===== */
.wait-banner {
  background: #fdf0e0;
  border-bottom: 2px solid #f97316;
  color: #7c3a00;
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===== REMARQUES ===== */
.remarques-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fdf8f4;
  resize: vertical;
  min-height: 60px;
  margin-top: 10px;
}
.remarques-input:focus { outline: none; border-color: var(--orange); }

/* ===== NO-DELIVERY MESSAGE ===== */
.no-delivery-msg {
  margin-top: 10px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #9a3412;
}

/* ===== CUSTOM PIZZA ROW ===== */
.custom-pizza-row { background: #fdf4ff; border: 1.5px dashed #d8b4fe; border-radius: 12px; margin-top: 4px; }
.custom-price-hint { color: #7c3aed; font-size: 0.85rem; }
.dot.purple { background: #7c3aed; }

/* ===== ADDON PANEL (Margherita) ===== */
.addon-panel {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background: #fefce8;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
}
.addon-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 10px;
}
.addon-price-note { color: #b45309; font-weight: 400; }
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #fde68a;
}
.addon-row:last-child { border-bottom: none; }
.addon-label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.addon-cb { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.addon-price-tag { font-size: 0.82rem; color: #b45309; font-weight: 600; }

/* ===== CUSTOM BUILDER MODAL ===== */
.modal-overlay-client {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  padding: 0;
}
.custom-modal-box {
  background: white;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px;
}
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.custom-modal-header h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
}
.custom-close {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}
.custom-section { margin-bottom: 20px; }
.custom-label {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.custom-sublabel { font-weight: 400; text-transform: none; font-size: 0.8rem; }
.custom-bases { display: flex; gap: 10px; }
.base-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  gap: 4px;
}
.base-btn.active { border-color: var(--orange); background: #fff7ed; }
.base-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.base-price { font-size: 0.82rem; color: var(--text-light); }
.custom-topping-cat {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin: 10px 0 6px;
}
.custom-toppings { display: flex; flex-wrap: wrap; gap: 8px; }
.topping-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.topping-btn.active { border-color: var(--orange); background: #fff7ed; color: #9a3412; font-weight: 600; }
.top-price { font-size: 0.75rem; color: var(--text-light); }
.topping-btn.active .top-price { color: #b45309; }
.custom-price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
}
.custom-price-label { font-size: 0.9rem; color: var(--text-light); }
.custom-price-val {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
}
.custom-match-notice {
  font-size: 0.82rem;
  color: #166534;
  background: #dcfce7;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.custom-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-custom-cancel {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
}
.btn-custom-add {
  flex: 2;
  padding: 14px;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
}

/* ===== SUMMARY SUB ROWS ===== */
.summary-sub { font-size: 0.82rem; color: var(--text-light); padding-left: 14px; }

/* ===== CANCEL ORDER BUTTON ===== */
.btn-cancel-order {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: transparent;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cancel-order:hover { background: #fef2f2; border-color: #dc2626; }

/* ===== TRACKING BLOCK ===== */
.tracking-block {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tracking-label { font-size: 1rem; }
.tracking-link-a {
  color: #1d4ed8;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.95rem;
  word-break: break-all;
}
.tracking-hint { font-size: 0.78rem; color: #6b7280; }

/* ===== DETAIL SUB ROW ===== */
.detail-sub {
  font-size: 0.82rem;
  color: #6b7280;
  padding-left: 12px;
}
.detail-notes { color: #6b7280; font-style: italic; font-size: 0.88rem; }

/* ===== CANCELLED BANNER IN CONFIRMATION ===== */
.ready-banner.banner-cancelled {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* ===== PROMINENT READY-TIME DISPLAY (confirmation page) ===== */
.ready-time-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 6px;
}
.ready-time-num {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: #ffd166;
  text-align: center;
  line-height: 1;
}
.ready-time-unit {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 4px;
}

/* Override .queue-ready for new layout */
.queue-card.queue-ready .ready-time-num { color: #4ade80; }

/* Word status layout: "Remise", "Livrée", "En route", "Prête !" etc.
   Overrides the 5rem number style so words fit cleanly in the card. */
.queue-card.queue-card--status-word .ready-time-num {
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  padding: 8px 0;
}

/* ===== MODE SELECTION SCREEN ===== */
.mode-selection-screen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  min-height: calc(100vh - 130px);
}
.mode-selection-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mode-selection-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 18px;
  border: 2.5px solid var(--border);
  background: white;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.mode-btn:hover, .mode-btn:focus {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230,51,18,0.13);
}
.mode-btn:active { transform: translateY(0); }
.mode-icon { font-size: 2rem; }
.mode-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}
.mode-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.4;
}
.mode-btn--classic { border-color: #e8ddd0; }
.mode-btn--classic:hover { border-color: var(--red); }
.mode-btn--custom { border-color: #d8b4fe; background: #fdf4ff; }
.mode-btn--custom:hover { border-color: #7c3aed; box-shadow: 0 6px 24px rgba(124,58,237,0.13); }
.mode-btn--custom .mode-title { color: #5b21b6; }

/* ===== FORM NAV (back button + mode badge) ===== */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
}
.btn-back-mode {
  background: transparent;
  border: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 0;
  touch-action: manipulation;
}
.btn-back-mode:hover { color: var(--dark); }

.mode-badge {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.mode-badge--classic {
  background: #fff0ee;
  color: var(--red);
  border: 1px solid #fecaca;
}
.mode-badge--custom {
  background: #fdf4ff;
  color: #7c3aed;
  border: 1px solid #d8b4fe;
}

/* ===== CUSTOM BUILDER (inline, no modal) ===== */
.custom-builder-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.custom-step { margin-bottom: 20px; }
.custom-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.custom-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.custom-step-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}
.custom-sublabel { font-size: 0.78rem; color: var(--text-light); font-weight: 400; }
.custom-bases-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.base-btn-inline {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  gap: 4px;
  text-align: center;
}
.base-btn-inline.active { border-color: var(--orange); background: #fff7ed; }
.base-btn-inline .base-name { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--text); line-height: 1.25; word-break: break-word; }
.base-btn-inline .base-price { font-size: 0.78rem; color: var(--text-light); }

.custom-topping-cat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.custom-toppings-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-custom-add-main {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  border: none;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-custom-add-main:disabled {
  background: #d1c9bf;
  cursor: not-allowed;
}
.btn-custom-add-main:not(:disabled):hover { background: #ea650d; transform: translateY(-1px); }

/* ===== TOAST ===== */
.toast-msg {
  position: fixed;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  z-index: 500;
  transition: bottom 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.toast-msg.toast-visible { bottom: 30px; }

/* ===== WAIT BANNER (updated — more prominent) ===== */
.wait-banner {
  background: #1a1209;
  border-bottom: none;
  color: #ffd166;
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

/* ===== OLIVE CHOICE PANEL (Margherita + olives) ===== */
.olive-choice-panel {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
}
.olive-choice-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}
.olive-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 5px 0;
  border-bottom: 1px solid #d1fae5;
}
.olive-radio-label:last-child { border-bottom: none; }
.olive-radio-label.olive-radio-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.olive-radio-label.olive-radio-unavailable::after {
  content: 'Indisponible';
  margin-left: auto;
  font-size: 0.72rem;
  text-decoration: none;
  color: #b91c1c;
  font-weight: 600;
}
.olive-radio {
  width: 16px;
  height: 16px;
  accent-color: #16a34a;
  cursor: pointer;
}

/* ===== SPICE LEVEL PANEL (piquant-x3) ===== */
.spice-panel {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
}
.spice-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.spice-value {
  font-size: 1.15rem;
  color: var(--red);
  font-weight: 800;
}
.spice-max {
  font-size: 0.8rem;
  color: #c2410c;
  font-weight: 500;
}
.spice-emoji {
  margin-left: 4px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.spice-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, #fde68a, #f97316, #dc2626);
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}
.spice-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
  cursor: pointer;
}
.spice-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
  cursor: pointer;
}
.spice-scale {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 0.72rem;
  color: #c2410c;
  font-weight: 600;
  opacity: 0.7;
}

/* ===== ORDER WAIT ESTIMATE (near confirm button) ===== */
.order-wait-estimate {
  background: #1a1209;
  color: #ffd166;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  letter-spacing: 0.1px;
}

/* ===== CUSTOMER FIELDS ===== */
.customer-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== UNAVAILABLE ITEMS ===== */
.item-unavailable { opacity: 0.45; pointer-events: none; }
.item-unavailable-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 2px;
}
.topping-unavailable {
  opacity: 0.4;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

/* ===== TRUCK MODE BADGE ===== */
.truck-mode-badge {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  background: #1d4ed8;
  color: white;
  border-radius: 20px;
}

/* ===== BEST-SELLERS CATEGORY LABEL ===== */
.category-label--bestsellers {
  color: #b45309;
  border-bottom-color: #fcd34d;
}
.dot-star {
  font-size: 1rem;
  line-height: 1;
  color: #f59e0b;
}

/* ===== ITEM NAME LINE (name + badge inline) ===== */
.item-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* ===== ITEM DESCRIPTION ===== */
.item-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.35;
  margin-top: 1px;
}

/* ===== MENU ITEM BADGES ===== */
.item-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-head);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.item-badge--recommande {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.item-badge--bestseller {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.item-badge--specialite {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

/* ===== RETURNING CUSTOMER GREETING ===== */
.returning-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a3a2e 0%, #14291f 100%);
  border-bottom: 2px solid #22c55e40;
  color: #bbf7d0;
  padding: 13px 20px;
  font-size: 0.9rem;
  position: relative;
  z-index: 105;
  flex-wrap: nowrap;
  transition: opacity 0.4s ease;
}
.returning-wave {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: wave-anim 0.8s ease-in-out 0.2s both;
}
@keyframes wave-anim {
  0%   { transform: rotate(0deg);   }
  25%  { transform: rotate(20deg);  }
  50%  { transform: rotate(-10deg); }
  75%  { transform: rotate(14deg);  }
  100% { transform: rotate(0deg);   }
}
.returning-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.returning-hello {
  font-family: var(--font-head);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}
.returning-sub {
  font-size: 0.78rem;
  color: #86efac;
  opacity: 0.85;
}
.returning-dismiss {
  background: transparent;
  border: none;
  color: #86efac;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.returning-dismiss:hover { opacity: 1; }

/* ===== GOOGLE REVIEW MODAL ===== */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9000;
  padding: 0 0 20px;
  transition: opacity 0.35s ease;
}
.review-modal-box {
  background: #ffffff;
  border-radius: 24px 24px 18px 18px;
  padding: 32px 28px 26px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
  animation: review-slide-up 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes review-slide-up {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.review-stars {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 4px;
}
.review-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.review-text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 22px;
}
.review-btn-go {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: white;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.review-btn-go:hover { background: #c42a0e; }
.review-btn-skip {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  transition: color 0.15s;
}
.review-btn-skip:hover { color: #6b7280; }

/* ===== MUSIC TOGGLE (floating) ===== */
.music-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--orange, #ea580c);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle:active { transform: scale(0.96); }
.music-toggle.is-playing {
  animation: musicPulse 1.6s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(234,88,12,0.35); }
  50%      { box-shadow: 0 4px 22px rgba(234,88,12,0.7); }
}
