/* ============================================================
   THE WAFFLE INN — Cart Drawer & Checkout Styles
   ============================================ */

/* --- Cart Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #14100b;
  border-left: 1px solid rgba(212, 160, 23, 0.25);
  box-shadow: -15px 0 50px rgba(0,0,0,0.8);
  z-index: 10060;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --cream: #fff8eb;
  --cream-muted: #cfc2ae;
  color: #fff8eb;
}
.cart-drawer.open {
  right: 0;
}

/* High-contrast dark container typography guarantees */
.cart-drawer-header h3,
.cart-drawer .cd-item-title,
.cart-drawer .qty-pill span,
.cart-drawer .cart-summary-line.grand span:first-child,
.cart-drawer .cart-summary-line.grand {
  color: #fff8eb !important;
}
.cart-drawer .cart-summary-line,
.cart-drawer .cd-item-price,
.cart-drawer .cd-remove-btn {
  color: #cfc2ae !important;
}

.checkout-modal-card h3,
.checkout-modal-card .form-label,
.checkout-modal-card label,
.checkout-modal-card .confirmation-row strong,
.checkout-modal-card .confirmation-card-title,
.checkout-modal-card .ps-text strong {
  color: #fff8eb !important;
}
.checkout-modal-card .pms-row span:first-child,
.checkout-modal-card .pickup-notice-sub,
.checkout-modal-card .ps-text span {
  color: #cfc2ae !important;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a140d;
}
.cart-drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.cart-drawer-header .cd-close-btn {
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.2);
  color: var(--cream-muted);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.cart-drawer-header .cd-close-btn:hover {
  background: var(--accent-red);
  color: white;
  border-color: var(--accent-red);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 24px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.4));
}
.cart-empty-state h4 {
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 8px;
}
.cart-empty-state p {
  color: var(--cream-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 160, 23, 0.1);
  gap: 12px;
}
.cd-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.veg-badge-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  flex-shrink: 0;
}
.veg-badge-dot.veg { border-color: #27ae60; }
.veg-badge-dot.veg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #27ae60; }
.veg-badge-dot.nonveg { border-color: #e74c3c; }
.veg-badge-dot.nonveg::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid #e74c3c; }

.cd-item-details {
  min-width: 0;
}
.cd-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-item-variant {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}
.cd-item-price {
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 2px;
}

.cd-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.qty-pill {
  display: inline-flex;
  align-items: center;
  background: #1f1811;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 50px;
  padding: 2px 6px;
}
.qty-pill button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.qty-pill button:hover {
  background: var(--gold);
  color: #0d0b08;
}
.qty-pill span {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  min-width: 20px;
  text-align: center;
}
.cd-item-total {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  min-width: 45px;
  text-align: right;
}
.cd-remove-btn {
  background: none;
  border: none;
  color: var(--cream-muted);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  transition: var(--transition);
}
.cd-remove-btn:hover {
  color: var(--accent-red);
}

.cart-drawer-footer {
  padding: 20px 24px calc(20px + var(--sab, 0px));
  border-top: 1px solid rgba(212, 160, 23, 0.15);
  background: #1a140d;
}
.cart-min-notice {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  line-height: 1.4;
}
.cart-min-notice.warning {
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid rgba(230, 126, 34, 0.4);
  color: #f39c12;
}
.cart-min-notice.success {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.4);
  color: #2ecc71;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--cream-muted);
  margin-bottom: 6px;
}
.cart-summary-line.grand {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  border-top: 1px solid rgba(212, 160, 23, 0.2);
  padding-top: 10px;
  margin-top: 8px;
}
.cart-summary-line.grand span:last-child {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.btn-checkout-main {
  width: 100%;
  padding: 14px 20px;
  background: var(--gold);
  color: #0d0b08;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}
.btn-checkout-main:disabled {
  background: #3a3227;
  color: #7a6e5e;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-checkout-main:not(:disabled):hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* --- Floating Mobile Order Button --- */
.floating-order-btn {
  display: none;
  position: fixed;
  bottom: calc(20px + var(--sab, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  background: var(--gold);
  color: #0d0b08;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.floating-order-btn:hover {
  transform: translateX(-50%) scale(1.04);
}
@media (max-width: 768px) {
  .floating-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- CHECKOUT MODAL --- */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.checkout-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  background: #17120c;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  width: 600px;
  max-width: 100%;
  max-height: 90vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 40px rgba(212, 160, 23, 0.15);
  overflow: hidden;
  --cream: #fff8eb;
  --cream-muted: #cfc2ae;
  color: #fff8eb;
}

.checkout-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f1810;
}
.checkout-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  margin: 0;
}
.checkout-close-btn {
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
}
.checkout-close-btn:hover {
  color: var(--accent-red);
}

.checkout-steps-bar {
  display: flex;
  border-bottom: 1px solid rgba(212, 160, 23, 0.1);
  background: #130f0a;
}
.checkout-step-indicator {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.checkout-step-indicator.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(212, 160, 23, 0.05);
}
.checkout-step-indicator.completed {
  color: #27ae60;
}

.checkout-modal-body {
  padding: 24px 28px calc(24px + var(--sab, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
}

/* Order Type Switch (Delivery vs Pickup) */
.order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.order-type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #201810;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.order-type-label input[type="radio"] {
  accent-color: var(--gold);
}
.order-type-label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-light);
}

/* Geolocation Radius Checker */
.geo-checker-box {
  background: #1a140d;
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}
.geo-btn {
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.geo-btn:hover {
  background: var(--gold);
  color: #0d0b08;
}
.geo-badge {
  font-size: 12px;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  line-height: 1.4;
}
.geo-badge.loading { background: rgba(212, 160, 23, 0.1); color: var(--cream); }
.geo-badge.success { background: rgba(39, 174, 96, 0.2); border: 1px solid #27ae60; color: #2ecc71; font-weight: 600; }
.geo-badge.error { background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #ff7675; }
.geo-badge.warning { background: rgba(243, 156, 18, 0.2); border: 1px solid #f39c12; color: #f1c40f; }

/* Payment Method Selector */
.payment-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.payment-method-tab {
  background: #140f0a;
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  color: var(--cream-muted);
}
.payment-method-tab:hover {
  border-color: var(--gold);
  color: var(--cream);
}
.payment-method-tab.active {
  background: rgba(212,160,23,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(212,160,23,0.15);
}
.pm-tab-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pm-tab-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Gateway Pay Box */
.gateway-pay-box {
  background: linear-gradient(135deg, #1c150c, #261a0d);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.gateway-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39,174,96,0.15);
  border: 1px solid #27ae60;
  color: #2ecc71;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.btn-pay-gateway {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #d4a017, #f0c040);
  color: #0d0b08;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
  transition: var(--transition);
  margin: 16px 0 10px;
}
.btn-pay-gateway:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.6);
}
.gateway-methods-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 10px;
}
.gateway-pill-tag {
  background: #120e09;
  border: 1px solid rgba(212,160,23,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* UPI Payment Box */
.upi-payment-box {
  background: #1e1710;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.upi-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d0b08;
  border: 1px dashed var(--gold);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin: 10px 0 16px;
}
.upi-copy-btn {
  background: var(--gold);
  color: #0d0b08;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.upi-pay-deep-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #27ae60;
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  transition: var(--transition);
}
.upi-pay-deep-btn:hover {
  background: #219653;
  transform: translateY(-2px);
}

.payment-instructions-list {
  text-align: left;
  background: #14100b;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--cream-muted);
  line-height: 1.6;
  margin: 16px 0;
}
.payment-instructions-list li {
  margin-bottom: 6px;
}

/* Screenshot Upload Zone */
.screenshot-upload-zone {
  border: 2px dashed rgba(212, 160, 23, 0.3);
  background: #120e09;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}
.screenshot-upload-zone:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.05);
}
.screenshot-preview-wrap {
  position: relative;
  max-width: 240px;
  margin: 12px auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
}
.screenshot-preview-wrap img {
  width: 100%;
  display: block;
}
.screenshot-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: bold;
}

/* Confirmation Screen (Step 3) */
.checkout-success-view {
  text-align: center;
  padding: 20px 0;
}
.checkout-success-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: pulse 1.5s infinite;
}
.checkout-success-view h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 8px;
}
.order-id-highlight {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  background: #1f1810;
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  margin: 10px 0 20px;
}

/* --- LIGHTBOX GALLERY --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-modal.show {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 160, 23, 0.2);
}
.lightbox-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  color: var(--gold);
  margin-top: 14px;
}
.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* Cart Drawer Order Type Picker */
.cart-order-type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  background: #110d08;
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(212, 160, 23, 0.2);
}
.cot-btn {
  background: none;
  border: none;
  color: var(--cream-muted);
  padding: 8px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.cot-btn:hover {
  color: var(--cream);
}
.cot-btn.active {
  background: var(--gold);
  color: #0d0b08;
  box-shadow: 0 2px 10px rgba(212, 160, 23, 0.3);
}
.cot-btn.active.pickup {
  background: #27ae60;
  color: white;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}
/* --- iOS Auto-Zoom Prevention & Responsive Inputs --- */
.checkout-modal-card input,
.checkout-modal-card select,
.checkout-modal-card textarea,
.cart-drawer input,
.cart-drawer select,
.cart-drawer textarea {
  font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
}

/* --- Mobile Bottom Sheet for Cart Drawer (< 768px) --- */
@media (max-width: 768px) {
  .cart-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 85dvh;
    border-left: none;
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cart-drawer.open {
    right: 0;
    transform: translateY(0);
  }
  .cart-drawer-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px 20px;
  }
  .cart-drawer-body {
    padding: 16px 20px;
  }
  .cart-drawer-footer {
    padding: 16px 20px calc(16px + var(--sab, 0px));
  }
  
  .floating-order-btn {
    bottom: calc(16px + var(--sab, 0px));
    width: calc(100% - 32px);
    max-width: 440px;
    border-radius: 50px;
    padding: 14px 20px;
    justify-content: space-between;
    background: linear-gradient(135deg, #d4a017 0%, #f0c040 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 160, 23, 0.4);
    font-size: 14.5px;
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .checkout-modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }
  .checkout-modal-card {
    max-height: 92dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .checkout-modal-header {
    padding: 16px 20px;
  }
  .checkout-modal-body {
    padding: 18px 18px calc(18px + var(--sab, 0px));
  }
}

/* --- Checkout Form Inputs & Vertical Rhythm --- */
.checkout-modal-card .form-group {
  margin-bottom: 18px;
  width: 100%;
}

.checkout-modal-card .form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 48px;
  font-size: 16px !important;
}

.checkout-modal-card textarea.form-control {
  min-height: 80px;
}

.checkout-modal-card .form-label,
.checkout-modal-card label {
  color: #fff8eb !important;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.checkout-modal-card .order-type-label {
  color: #fff8eb !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-modal-card .location-verify-box {
  color: #d5c8b5 !important;
}

.checkout-modal-card .location-verify-box strong {
  color: #fff8eb !important;
}

/* --- Order Tracking Search Layout --- */
.track-search-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 28px;
  width: 100%;
}

.track-search-box .form-group {
  margin-bottom: 0;
}

.track-search-box .btn {
  height: 48px;
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .track-search-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .track-search-box .btn {
    width: 100%;
  }
}

/* --- Step 3 Confirmation & Live WhatsApp Tracking Card --- */
.confirmation-card {
  background: #19130b;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 16px;
  padding: 22px 20px;
  max-width: 440px;
  margin: 0 auto 20px;
  text-align: left;
}

.confirmation-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.confirmation-row:last-child {
  margin-bottom: 0;
}

.confirmation-tracking-box {
  background: rgba(212, 160, 23, 0.06);
  border: 1px dashed rgba(212, 160, 23, 0.35);
  border-radius: 14px;
  padding: 20px;
  max-width: 440px;
  margin: 0 auto 24px;
  text-align: center;
}

.confirmation-tracking-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.confirmation-tracking-box p {
  font-size: 13px;
  color: var(--cream-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.confirmation-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.whatsapp-sent-notice {
  display: none;
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid #27ae60;
  color: #2ecc71;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* Pickup Journey Additions */
.cart-order-type-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.25);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.cart-order-type-badge .cot-icon {
  font-size: 24px;
}
.cart-order-type-badge .cot-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--gold);
}
.cart-order-type-badge .cot-info span {
  font-size: 12px;
  color: var(--cream-muted);
}

.pickup-store-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #110d08;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.pickup-store-banner .ps-icon {
  font-size: 22px;
}
.pickup-store-banner .ps-text strong {
  display: block;
  font-size: 14px;
  color: var(--cream);
}
.pickup-store-banner .ps-text span {
  display: block;
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.3;
}

.pickup-mini-summary {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
}
.pickup-mini-summary .pms-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cream-muted);
  padding: 4px 0;
}
.pickup-mini-summary .pms-row.grand {
  border-top: 1px solid rgba(212, 160, 23, 0.2);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 15px;
  color: var(--cream);
  font-weight: 700;
}

.btn-book-pickup {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15.5px !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35) !important;
  min-height: 52px;
}
.btn-book-pickup:hover {
  background: linear-gradient(135deg, #28e06e 0%, #159c8d 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5) !important;
}

.pickup-notice-sub {
  font-size: 12px;
  color: var(--cream-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.whatsapp-opened-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
}
.whatsapp-opened-banner .wob-icon {
  font-size: 24px;
}
.whatsapp-opened-banner .wob-text {
  font-size: 13.5px;
  color: #2ecc71;
  line-height: 1.4;
}

.confirmation-fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 440px;
}


