* {
  box-sizing: border-box;
}

:root {
  /* Premium Dark Theme Variables */
  --primary: #FF9933;
  /* Deep Saffron/Orange */
  --primary-dark: #cc7a29;
  --secondary: #E2725B;
  /* Terracotta */
  --accent: #FFD700;
  /* Gold */

  --dark-bg: #121212;
  /* Main Background */
  --dark-card: #1E1E1E;
  /* Card/Modal Background */
  --dark-input: #2C2C2C;
  /* Input Fields */

  --text-light: #F4F4F4;
  --text-muted: #A0A0A0;
  --white: #FFFFFF;

  /* Legacy Mapping (Force Dark Mode) */
  --dominos-blue: var(--dark-bg);
  --dominos-red: var(--primary);
  --dominos-white: var(--text-light);
  --dominos-gray: var(--dark-card);
  --dominos-text: var(--text-light);
  --dominos-green: #2ecc71;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  background-image: linear-gradient(rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.95));
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.header {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid #333;
  backdrop-filter: blur(10px);
  padding: 15px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-location-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-location-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* TPP Wallet Pill */
.tpp-wallet-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 32px;
  min-width: 90px;
}

.wallet-icon {
  font-size: 16px;
}

.wallet-amount {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.wallet-tpp-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  animation: coinRotate 10s linear infinite;
  /* Very slow, subtle rotation */
  box-shadow: 0 0 5px rgba(251, 197, 49, 0.3);
}

.profile-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-img-mock {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Fixed Bottom Navigator */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 15px;
  /* Extra bottom padding for mobile home indicators */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-top: 1px solid #eee;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #888;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--dominos-blue);
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 11px;
  font-weight: bold;
}

/* Service Toggle Section */
.service-toggle-bar {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: transparent;
}

.service-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 5px;
  text-align: center;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.service-card.active {
  background: white;
  border-color: white;
}

.service-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2px;
}

.service-name {
  font-size: 13px;
  font-weight: 700;
  color: white !important;
}

.service-card.active .service-name {
  color: #333 !important;
}

.btn-icon-direction {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.service-card.active .btn-icon-direction {
  background: #007bff;
  /* Keep visible on white */
}

.service-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7) !important;
  white-space: nowrap;
}

.service-card.active .service-sub {
  color: #666 !important;
}

/* Offer / Hero Section */
.hero-offer-section {
  padding: 15px;
  background: transparent;
  color: white;
}

.offer-banner {
  background: linear-gradient(135deg, #004e92, #000428);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.offer-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.1;
}

.offer-title span {
  color: #fbc531;
}

.offer-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.btn-order-now {
  background: var(--dominos-red);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
  transition: transform 0.2s;
}

.btn-order-now:active {
  transform: scale(0.95);
}

/* TPP Coins Card */
.coins-card {
  margin: 0 15px 15px;
  background: white;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.coins-info h4 {
  margin: 0;
  font-size: 15px;
  color: #333;
}

.coins-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #666;
}

.coins-expiry-pill {
  background: #fff5f5;
  color: #e31837;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #fee2e2;
}

/* Menu Header & Navigation */
.menu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: white;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 1002;
  border-bottom: 1px solid #eee;
}

.menu-header-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-back {
  font-size: 20px;
  cursor: pointer;
}

.menu-title-text {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.btn-search-trigger {
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

/* Quick Filters Bar */
.filters-bar {
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  background: white;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f4f4f4;
  position: sticky;
  top: 54px;
  /* Sticks below menu-header-bar */
  z-index: 1001;
}

.filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--dominos-green);
  background: #f0fff4;
  color: var(--dominos-green);
}

.filter-chip i {
  font-size: 14px;
}

/* Horizontal Category Chips */
.menu-cat-chips {
  display: flex;
  gap: 15px;
  padding: 10px 15px;
  background: white;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 98px;
  /* Sticks below filters-bar */
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: top 0.3s ease; /* Smooth transition */
}

/* SEARCH OVERLAP FIX */
/* Check parent class .search-active (added via JS) */
.search-active .filters-bar {
  top: 115px !important; /* 54px Header + ~60px Search Bar */
}

.search-active .menu-cat-chips {
  top: 165px !important; /* 98px + ~60px Search Bar */
}

.menu-cat-chips::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 8px 0;
  font-size: 13px;
  font-weight: bold;
  color: #888;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.cat-chip.active {
  color: #000;
  border-bottom-color: var(--dominos-red);
}

/* Premium Product Card (Domino's Style) */
.premium-card {
  background: white;
  margin-bottom: 10px;
  overflow: hidden;
}

.card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #eee;
}

.card-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.badge-save {
  background: var(--dominos-green);
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-bestseller {
  background: #fbc531;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.card-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  color: white;
}

.card-dietary-icon {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  display: inline-flex;
  padding: 1px;
  margin-right: 5px;
}

.card-dietary-icon:before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
}

.card-item-name {
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.card-item-desc {
  font-size: 12px;
  opacity: 0.8;
  overflow: hidden;
}

.card-customise-overlay {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.card-customise-overlay:hover {
  background: #fff;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #1a1a1a;
  color: white;
}

.card-price-box {
  display: flex;
  flex-direction: column;
}

.item-price-val {
  font-size: 18px;
  font-weight: 900;
}

.card-variant-selection {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  margin-top: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-variant-selection:hover {
  color: #fff;
}

.btn-add-red {
  background: var(--dominos-red);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-red span {
  font-size: 18px;
  line-height: 1;
}

/* Layout Switcher */
#homeView {
  display: block;
}

#menuView {
  display: none;
}

.header-title {
  font-size: 20px;
  font-weight: bold;
}

.shop-closed-banner {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #ffeeba;
  width: 100%;
}

.account-icon {
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 0;
  padding-bottom: 120px;
  /* Space for persistent cart bar */
}

/* Domino's Tabs */
.nav-tabs {
  position: sticky;
  top: 60px;
  background: white;
  z-index: 900;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 10px;
  scrollbar-width: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #ddd;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

/* Cart View Enhancements */
.cart-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f5;
  z-index: 1500;
  padding: 0 0 100px;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
  display: none;
  /* Hidden by default */
}

#cartViewContainer:not(:empty) .cart-view {
  display: block;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-header {
  padding: 15px;
  background: white;
  display: flex;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.cart-items {
  padding: 15px;
}

.cart-item {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-variants {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.cart-summary-card,
.cart-delivery-card {
  background: white;
  margin: 15px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cart-summary-card h3,
.cart-delivery-card h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 15px;
  text-transform: uppercase;
  color: #555;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.summary-line.total {
  font-size: 18px;
  font-weight: 900;
  margin-top: 10px;
  color: #000;
}

.cart-delivery-card input,
.cart-delivery-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 14px;
}

.cart-delivery-card textarea {
  height: 80px;
  resize: none;
}

.cart-checkout-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  padding: 15px 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 1501;
}

.checkout-price .total-label {
  font-size: 10px;
  color: #888;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-price .total-val {
  font-size: 22px;
  font-weight: 900;
  color: #000;
}

.btn-confirm-order {
  background: var(--dominos-green);
  color: white;
  border: none;
  font-weight: bold;
  font-size: 11px;
  /* Smaller font to fit text */
  padding: 12px 0;
  /* No side padding to maximize space */
  border-radius: 4px;
  width: 30% !important;
  /* Slightly increased */
  max-width: 120px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Side Drawer (Profile Sidebar) */
.side-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: white;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.side-drawer.open {
  transform: translateX(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.drawer-header {
  padding: 20px 15px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-profile-icon {
  width: 45px;
  height: 45px;
  background: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.drawer-user-details {
  display: flex;
  flex-direction: column;
}

.drawer-user-title {
  font-weight: 800;
  font-size: 14px;
  color: #333;
}

.drawer-user-sub {
  font-size: 12px;
  color: #666;
}

.drawer-login-btn {
  background: var(--dominos-red);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.drawer-menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f9f9f9;
  transition: background 0.2s;
}

.drawer-item:active {
  background: #f5f5f5;
}

.drawer-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
}

.drawer-item-label {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.drawer-item-badge {
  background: #0099ff;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.drawer-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 11px;
}


/* Text Cycle Animation */
.drawer-subtitle-cycle {
  font-size: 12px;
  color: #666;
  height: 16px;
  overflow: hidden;
  position: relative;
}

.cycle-text {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: cycleFade 8s infinite;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.cycle-text:nth-child(1) {
  animation-delay: 0s;
}

.cycle-text:nth-child(2) {
  animation-delay: 2s;
}

.cycle-text:nth-child(3) {
  animation-delay: 4s;
}

.cycle-text:nth-child(4) {
  animation-delay: 6s;
}

@keyframes cycleFade {

  0%,
  20% {
    opacity: 1;
    transform: translateY(0);
  }

  25%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Contact Dialog */
.contact-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.contact-dialog {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-dialog h3 {
  margin-top: 0;
  color: #333;
}

.contact-options {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-contact {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.btn-call {
  background: var(--dominos-blue);
  color: white;
}

.btn-chat {
  background: #25D366;
  color: white;
}

/* Order Success */
.order-success {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.success-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.order-success h2 {
  font-weight: 900;
  margin-bottom: 10px;
}

.order-success p {
  color: #666;
  font-size: 15px;
  margin-bottom: 30px;
}

.btn-back-menu {
  background: var(--dominos-red);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-tab {
  padding: 8px 16px;
  margin-right: 10px;
  border-radius: 4px;
  background: #eee;
  color: #666;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.nav-tab.active {
  background: var(--dominos-red);
  color: white;
}

/* Full Screen Login Modal Redesign */
.login-modal-full {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

.login-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.login-skip-btn {
  background: none;
  border: none;
  color: var(--dominos-blue);
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.login-brand-promise {
  text-align: center;
  margin-top: 10px;
}

.login-brand-promise h2 {
  color: var(--dominos-blue);
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.login-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  max-height: 350px;
  /* Constrain height */
}

.map-gps-btn {
  position: absolute;
  top: 15px;
  /* Aligned with Back Button */
  right: 15px;
  /* Symmetric spacing */
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  cursor: pointer;
  color: #333;
}

.map-gps-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--dominos-blue);
}

.slider-image-box {
  width: 140px;
  height: 140px;
  background: #fdfdfd;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 60px;
}

.slider-text h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #333;
}

.slider-text p {
  color: #777;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
  padding: 0 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s;
}

.slider-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--dominos-blue);
}

.login-action-area {
  padding: 24px;
  background: white;
  border-top: 1px solid #f5f5f5;
}

.login-benefits-title {
  font-size: 14px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
}

.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--dominos-blue);
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 20px;
}

.phone-prefix {
  padding: 10px 15px;
  font-weight: bold;
  color: #333;
  border-right: 1px solid #eee;
  font-size: 16px;
}

.phone-input {
  border: none;
  background: none;
  font-size: 16px;
  padding: 12px;
  flex: 1;
  outline: none;
  font-weight: 500;
  margin-top: 0;
  /* Override generic input margin */
}

.btn-send-otp {
  width: 100%;
  background: #6c757d;
  /* Gray initially */
  color: white;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s;
}

.btn-send-otp.active {
  background: #333;
  /* Darker when active, or brand color if preferred, screenshots show dark gray/blackish */
}

.login-footer-terms {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 20px;
}

.login-footer-terms a {
  color: var(--dominos-blue);
  text-decoration: none;
  font-weight: bold;
}

/* Customisation Modal */
#customiseModalContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  /* Hidden by default */
  align-items: flex-end;
  justify-content: center;
}

.customise-modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 0 100px;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.customise-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.customise-title {
  font-weight: 800;
  font-size: 16px;
}

.customise-group {
  padding: 15px;
  border-bottom: 1px dashed #eee;
}

.customise-group-title {
  font-size: 13px;
  font-weight: 900;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.customise-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  background: #f9f9f9;
}

.option-chip.selected {
  border-color: var(--dominos-red);
  background: #fff5f5;
  color: var(--dominos-red);
}

.customise-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: white;
  padding: 15px 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #eee;
  z-index: 2001;
}

.footer-price-info {
  display: flex;
  flex-direction: column;
}

.footer-total-label {
  font-size: 10px;
  color: #888;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-total-val {
  font-size: 22px;
  font-weight: 900;
  color: #000;
}

/* Accordion Sections */
.category-section {
  margin: 10px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-header {
  width: 100%;
  padding: 15px 20px;
  background: white;
  color: var(--dominos-text);
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.category-header::after {
  content: '▼';
  font-size: 12px;
  color: #999;
  transition: transform 0.3s;
}

.category-header.active::after {
  transform: rotate(180deg);
}

.category-content {
  display: none;
  background: white;
}

.category-content.active {
  display: block;
}

/* Domino's Product Card */
.menu-item {
  display: flex;
  padding: 20px 20px 30px 20px;
  /* Increased bottom padding for stepper */
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.menu-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
  padding-right: 15px;
}

.veg-indicator,
.non-veg-indicator {
  width: 14px;
  height: 14px;
  border: 1.5px solid #008000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.veg-indicator::after {
  content: "";
  width: 7px;
  height: 7px;
  background: #008000;
  border-radius: 50%;
}

.non-veg-indicator {
  border-color: #E31837;
}

.non-veg-indicator::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #E31837;
}

/* Dietary Toggle Switch */
.dietary-toggle-container {
  background: white;
  padding: 12px 16px;
  position: sticky;
  top: 110px;
  /* Below Category Tabs */
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dietary-switch {
  display: flex;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 3px;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.dietary-switch div {
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.2s;
}

.switch-active {
  background: white;
  color: var(--dominos-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-inactive {
  color: #888;
}

.veg-label-active {
  color: #008000 !important;
}

.item-name {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  display: block;
  margin-bottom: 4px;
}

.item-price {
  font-size: 15px;
  font-weight: bold;
  color: #444;
}

.item-image-container {
  width: 120px;
  height: 120px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.item-image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8f8f8;
  transition: transform 0.5s ease;
}

.item-image-container:hover .item-img {
  transform: scale(1.05);
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--dominos-red);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
}

.item-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.stepper-container {
  position: absolute;
  bottom: -5px;
  /* Better alignment to prevent cut-off */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  z-index: 10;
}

/* Custom Professional Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-card h3 {
  margin-top: 0;
  color: var(--dominos-blue);
}

.modal-card p {
  color: #666;
  margin: 15px 0 25px;
  font-size: 16px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.modal-btn-cancel {
  background: #eee;
  color: #666;
}

.modal-btn-confirm {
  background: var(--dominos-red);
  color: white;
}

.add-btn-main {
  width: 100%;
  background: white;
  color: var(--dominos-green);
  border: 1px solid #ddd;
  padding: 6px 0;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dominos-green);
  color: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stepper button {
  background: none;
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.stepper .qty {
  font-size: 14px;
  font-weight: bold;
}

/* Persistent Bottom Cart Bar */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dominos-blue);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  /* Shown via JS */
}

.cart-bar .cart-info {
  display: flex;
  flex-direction: column;
}

.cart-bar .cart-count {
  font-size: 14px;
  opacity: 0.9;
}

.cart-bar .cart-total {
  font-size: 18px;
  font-weight: bold;
}

.view-cart-btn {
  background: white;
  color: var(--dominos-blue);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

/* Account View */
.account-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 4000;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.auth-form {
  max-width: 400px;
  margin: 50px auto;
  text-align: center;
}

.auth-form h2 {
  color: var(--dominos-blue);
  margin-bottom: 30px;
}

.btn-auth {
  background: var(--dominos-blue);
  color: white;
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
}

.btn-text {
  background: none;
  border: none;
  color: var(--dominos-blue);
  text-decoration: underline;
  margin-top: 15px;
  cursor: pointer;
}

.profile-card {
  margin-top: 20px;
}

/* Order History Styles */
.history-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--dominos-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.history-section {
  padding-bottom: 20px;
}

.history-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.btn-reorder {
  flex: 1;
  background: white;
  color: var(--dominos-red);
  border: 1px solid var(--dominos-red);
  padding: 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-reorder:hover {
  background: var(--dominos-red);
  color: white;
}

.btn-help {
  padding: 8px 15px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

.btn-load-more {
  width: 100%;
  padding: 12px;
  background: white;
  color: var(--dominos-blue);
  border: 1px solid var(--dominos-blue);
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  text-transform: uppercase;
}

.btn-load-more:hover {
  background: #f0f8ff;
}

.history-section::-webkit-scrollbar {
  width: 4px;
}

.history-section::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Status Colors */
.status-Pending {
  background: #ffc107 !important;
  color: black !important;
}

.status-Preparing {
  background: #007bff !important;
  color: white !important;
}

.status-Ready {
  background: #17a2b8 !important;
  color: white !important;
}

.status-Completed {
  background: #28a745 !important;
  color: white !important;
}

.status-Cancelled {
  background: #dc3545 !important;
  color: white !important;
}

.status-badge {
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.new-order-alert {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--dominos-red);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(227, 24, 55, 0.5);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 10px;
  cursor: grab;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid white;
  user-select: none;
  touch-action: none;
  /* Crucial for dragging on mobile */
  font-size: 13px;
  white-space: nowrap;
}

.new-order-alert:active {
  cursor: grabbing;
}

/* Cart & Checkout View */
.cart-view {
  padding: 20px;
  background: white;
  min-height: 100vh;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  /* Ensure padding doesn't affect width */
}

.checkout-btn {
  background: var(--dominos-red);
  color: white;
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 20px;
  text-transform: uppercase;
}

/* Enhanced Cart UI */
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: bold;
  display: block;
}

.cart-item-price {
  color: #666;
  font-size: 14px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-stepper {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px;
}

.cart-stepper button {
  background: white;
  border: 1px solid #ddd;
  color: var(--dominos-blue);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-weight: bold;
}

.cart-stepper span {
  width: 30px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

.bill-details {
  background: #fff;
  padding-top: 10px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #555;
  font-size: 15px;
}

.bill-row-total {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  color: #000;
  font-weight: bold;
  font-size: 18px;
}

.add-more-container {
  margin: 15px 0;
  text-align: center;
}

.btn-add-more {
  background: none;
  border: 1px dashed var(--dominos-blue);
  color: var(--dominos-blue);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.instructions-card {
  margin-bottom: 15px;
}

.instructions-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.instructions-card textarea {
  height: 60px;
  resize: none;
}

/* PWA Install Banner */
#pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  border-top: 1px solid #eee;
}

.pwa-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 12px;
}

.pwa-text {
  flex-grow: 1;
}

.pwa-text h4 {
  margin: 0;
  font-size: 14px;
  color: var(--dominos-text);
}

.pwa-text p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.btn-install {
  background: var(--dominos-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-close-pwa {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  margin-left: 10px;
  cursor: pointer;
}

/* Premium Customisation Modal Redesign */
#customiseModalContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

#customiseModalOverlay {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Prevent any horizontal leaks */
}

.customise-modal {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.customise-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-bottom: 2px solid #f8f8f8;
}

.modal-header-info {
  flex: 1;
}

.modal-header-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  margin-bottom: 4px;
}

.modal-header-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

.customise-group {
  padding: 20px;
  border-bottom: 8px solid #f8f8f8;
}

.customise-group-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #333;
}

/* Size Cards Layout */
.size-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.variant-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-card.selected {
  border-color: var(--dominos-blue);
  background: #f0f8ff;
}

.variant-card.selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--dominos-blue);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.variant-card .badge {
  background: #28a745;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  left: 10px;
}

.variant-card-name {
  font-weight: 800;
  font-size: 15px;
  margin: 20px 0 5px;
}

.variant-card-price {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-curr {
  font-weight: 900;
  font-size: 16px;
}

.price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
}

.variant-card-desc {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}

/* Row Options Layout (Crust, etc.) */
.variant-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.variant-row.selected {
  border-color: var(--dominos-blue);
  background: #f0f8ff;
}

.variant-row.selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--dominos-blue);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 2;
}

.variant-row-img {
  width: 60px;
  height: 40px;
  object-fit: contain;
}

.variant-row-info {
  flex: 1;
}

.variant-row-name {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 2px;
}

.variant-row-desc {
  font-size: 11px;
  color: #888;
}

.variant-row-price {
  font-weight: 800;
  font-size: 14px;
  color: #333;
}

.customise-footer {
  padding: 8px 12px 12px;
  /* Aggressively reduced */
  background: white;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.footer-selection-path {
  font-size: 12px;
  /* Smaller */
  font-weight: bold;
  color: #666;
  margin-bottom: 6px;
  /* Tighter */
  text-align: left;
}

.footer-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dominos-red);
  padding: 8px 20px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  width: 85%;
  /* Reduced width as requested */
  margin: 0 auto;
  /* Center it */
  box-sizing: border-box;
}

.footer-action-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-price-old {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 14px;
}

.footer-price-new {
  font-size: 16px;
  font-weight: 900;
}

.footer-action-text {
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

/* OTP View */
.login-otp-view {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.otp-input-group {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.otp-digit {
  width: 45px;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  outline: none;
}

.otp-digit:focus {
  border-color: var(--dominos-blue);
  box-shadow: 0 0 0 2px rgba(0, 100, 145, 0.1);
}

.otp-resend {
  font-size: 13px;
  color: #666;
  margin-top: 15px;
}

/* Auth View (Email/Pass) */
.auth-input-group {
  width: 100%;
  margin-bottom: 15px;
}

.auth-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--dominos-blue);
  box-shadow: 0 0 0 2px rgba(0, 100, 145, 0.1);
}

.auth-toggle {
  display: flex;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auth-toggle-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.auth-toggle-btn.active {
  background: white;
  color: var(--dominos-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.forgot-password-link {
  text-align: right;
  font-size: 13px;
  color: var(--dominos-blue);
  margin-top: -10px;
  margin-bottom: 20px;
  cursor: pointer;
  font-weight: 500;
}

.otp-resend span {
  color: var(--dominos-blue);
  font-weight: bold;
  cursor: pointer;
}

/* My Profile Screen */
.profile-view-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  z-index: 1200;
  flex-direction: column;
  overflow-y: auto;
  animation: slideInRight 0.3s ease-out;
}

.profile-header-bar {
  background: white;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.profile-header-title {
  flex: 1;
  font-weight: bold;
  font-size: 18px;
  margin-left: 15px;
  color: #333;
}

.profile-section-card {
  background: white;
  padding: 20px;
  margin: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-section-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Wallet */
.wallet-card-visual {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-bal-label {
  font-size: 12px;
  opacity: 0.9;
}

.wallet-bal-val {
  font-size: 28px;
  font-weight: bold;
}

/* Address */
.address-item {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
}

.address-item.selected {
  border-color: var(--dominos-green);
  background: #f0fff4;
}

.address-type-tag {
  font-size: 10px;
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  color: #666;
}

.address-text {
  font-size: 14px;
  margin-top: 5px;
  color: #555;
}

.btn-add-address {
  width: 100%;
  padding: 12px;
  border: 1px dashed #ccc;
  background: #fafafa;
  color: var(--dominos-blue);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* Orders */
.order-history-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.order-history-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 5px;
}

.order-date {
  color: #999;
  font-size: 12px;
}

.order-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

.status-Success,
.status-Delivered {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-Pending {
  background: #fff3e0;
  color: #ef6c00;
}

.order-items-summary {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}

.order-total {
  font-weight: bold;
  font-size: 14px;
}

/* Empty States */
.empty-state-box {
  text-align: center;
  padding: 30px 10px;
}

.empty-state-text {
  color: #777;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Dialogs */
.dialog-overlay {
  position: fixed;
  top: 0;
  text-align: center;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-dialog {
  background: white;
  width: 85%;
  max-width: 320px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dialog-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.dialog-btn {
  border: none;
  background: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel {
  color: #777;
}

.btn-confirm {
  color: var(--dominos-red);
}

/* Buttons */
.btn-action-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  color: #333;
}

.btn-action-tile:last-child {
  border-bottom: none;
}

.btn-red-outline {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--dominos-red);
  color: var(--dominos-red);
  font-weight: bold;
  background: white;
  border-radius: 8px;
  margin-top: 10px;
}

.btn-red-solid {
  width: 100%;
  padding: 12px;
  background: var(--dominos-red);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
}

/* Sidebar Buttons */
.drawer-login-btn {
  background: var(--dominos-red);
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-edit-profile {
  background: #666;
  font-size: 12px;
  padding: 6px 12px;
  text-transform: uppercase;
  margin-left: 10px;
}

/* Add Address Map View */
.map-view-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1300;
  animation: slideInRight 0.3s ease-out;
}

#map {
  flex: 1;
  width: 100%;
  z-index: 1;
}

.map-pin-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin-label {
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 5px;
  white-space: nowrap;
}

.map-pin-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

.address-form-container {
  background: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  position: relative;
  margin-top: -20px;
  /* Overlap map slightly */
}

.address-input-group {
  margin-bottom: 15px;
}

.address-input-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  display: block;
}

.address-input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.address-input-field:focus {
  border-color: var(--dominos-blue);
}

.save-as-chips {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.save-as-chip {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.save-as-chip.selected {
  background: #e3f2fd;
  border-color: var(--dominos-blue);
  color: var(--dominos-blue);
  font-weight: bold;
}



.btn-edit-address-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  cursor: pointer;
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Professional Place Order Button */
.btn-confirm-order {
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--dominos-green) 0%, #006400 100%);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-confirm-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4);
}

.btn-confirm-order:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 128, 0, 0.3);
}

.btn-confirm-order:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dialog / Modal Overlay */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.custom-dialog {
  background: white;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.custom-dialog h3 {
  margin-top: 0;
  color: #333;
}

.dialog-btn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.dialog-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-confirm {
  background: var(--dominos-green);
  color: white;
}

/* Floating Cart Button */
.fab-cart {
  position: fixed;
  bottom: 80px;
  /* Above bottom nav */
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--dominos-red);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(227, 24, 55, 0.4);
  display: flex;
  /* Hidden by default via JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
}

.fab-cart:active {
  transform: scale(0.9);
}

.fab-icon {
  font-size: 24px;
}

.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: white;
  color: var(--dominos-red);
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dominos-red);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hide legacy cart bar */
.cart-bar {
  display: none !important;
}


/* Order Status Bubble (Floating) */
.order-status-bubble {
  position: fixed;
  bottom: 150px;
  /* Above Cart FAB */
  right: 20px;
  background: white;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1900;
  cursor: pointer;
  border: 1px solid var(--dominos-blue);
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
  /* Hidden by default */
}

.order-status-bubble.active {
  display: flex;
}

.status-icon-anim {
  width: 10px;
  height: 10px;
  background: var(--dominos-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 128, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 128, 0, 0);
  }
}

.order-bubble-text {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.order-bubble-sub {
  font-size: 10px;
  color: #888;
  font-weight: 500;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Update Order Status Bubble Z-Index */
.order-status-bubble {
  z-index: 2500 !important;
  /* Ensure it's above FAB and other layers */
  bottom: 160px;
  /* Slightly higher */
}


/* Floating Cart Button (Re-added) */
.fab-cart {
  position: fixed;
  bottom: 80px;
  /* Above bottom nav */
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--dominos-red);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(227, 24, 55, 0.4);
  display: flex;
  /* Hidden by default via JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
}

.fab-cart:active {
  transform: scale(0.9);
}

.fab-icon {
  font-size: 24px;
}

.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: white;
  color: var(--dominos-red);
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dominos-red);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hide legacy cart bar */
.cart-bar {
  display: none !important;
}

/* Payment Modal Styles */
.payment-modal-content {
  text-align: center;
  padding: 20px;
}

.payment-amount-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.payment-amount-label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.payment-amount-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--dominos-text);
  display: block;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  border: 4px solid var(--dominos-blue);
  border-radius: 12px;
  display: block;
  margin: 0 auto 20px;
}

.upi-apps-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.upi-app-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-pay-upi {
  background: #27ae60;
  color: white;
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-i-have-paid {
  background: var(--dominos-blue);
  color: white;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.payment-hint {
  font-size: 12px;
  color: #888;
  margin-top: 15px;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}


/* Fix for Floating Cart Visibility */
.fab-cart {
  z-index: 3000 !important;
  /* Ensure it is above everything else */
  display: none;
  /* Controlled by JS */
}

/* Ensure Order Status Bubble is visible but below modal layers */
.order-status-bubble {
  z-index: 2500 !important;
}


/* --- NEW CHECKOUT FOOTER STYLES (Overrides) --- */

.cart-header {
  z-index: 100 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.cart-checkout-footer {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding-bottom: 20px !important;
  height: auto !important;
  justify-content: flex-start !important;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
  z-index: 2000 !important;
}

/* Hide old footer elements if they still exist by class matching */
.cart-checkout-footer .checkout-price {
  display: none !important;
}

/* New Elements */
.checkout-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
}

.checkout-label {
  font-weight: 700;
  color: #555;
  font-size: 14px;
}

.checkout-val {
  font-weight: 900;
  font-size: 18px;
  color: #000;
}

.savings-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #27ae60;
  font-weight: 700;
  background: #eaffee;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed #27ae60;
  justify-content: center;
}

.btn-confirm-order {
  width: 100% !important;
  max-width: none !important;
  font-size: 16px !important;
  padding: 15px 0 !important;
  border-radius: 8px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* --- NEW DETAILED FOOTER STYLES (Overrides) --- */

.cart-checkout-footer {
  /* Fix overflow issue */
  width: auto !important;
  left: 0 !important;
  right: 0 !important;
  padding: 15px !important;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
}

.bill-details {
  width: 100%;
  margin-bottom: 10px;
}

.bill-header {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.bill-row.to-pay-row {
  font-weight: 800;
  color: #000;
  font-size: 16px;
  margin-top: 10px;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}

.saved-badge {
  background: var(--dominos-green);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 5px;
}

.btn-confirm-order {
  /* Edge to Edge look */
  width: 100% !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  /* Slight radius or 0 for sharp edges */
  padding: 18px 0 !important;
  font-size: 18px !important;
}


/* Adjustments for Cart Header & Footer Alignment */

.cart-view {
  padding-top: 0 !important;
  /* Ensure no top padding on container */
}

.cart-header {
  top: 0 !important;
  margin-top: 0 !important;
}

.to-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-badge {
  float: right;
  /* Force right alignment */
  margin-left: auto;
}


/* --- COMPACT BILL DETAILS (Overrides) --- */

.cart-checkout-footer {
  padding: 12px 15px !important;
  /* Reduced padding */
  gap: 8px !important;
  /* Reduced gap */
}

.bill-details {
  margin-bottom: 5px !important;
}

.bill-header {
  margin-bottom: 5px !important;
  /* Reduced margin */
  font-size: 15px !important;
}

.bill-row {
  margin-bottom: 4px !important;
  /* Reduced margin */
}

.bill-row.to-pay-row {
  margin-top: 6px !important;
  /* Reduced margin */
  padding-top: 6px !important;
  /* Reduced padding */
}

.saved-badge {
  margin-top: 2px !important;
  font-size: 11px !important;
  padding: 2px 6px !important;
}

.savings-line {
  padding: 6px 10px !important;
  font-size: 11px !important;
}

.btn-confirm-order {
  padding: 12px 0 !important;
  /* Reduced height */
  margin-top: 5px !important;
  font-size: 16px !important;
}


/* --- FLEXBOX CART LAYOUT FIX (Overrides) --- */

.cart-view {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.cart-header {
  flex-shrink: 0 !important;
  position: relative !important;
  /* Not sticky, standard flex child */
  z-index: 10 !important;
}

.cart-scroll-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding-bottom: 20px !important;
  /* Ensure padding for last item visibility */
}

/* Remove old footer fixed positioning */
.cart-checkout-footer {
  position: relative !important;
  /* Flex child now */
  flex-shrink: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Overwrite old paddings/margins */
.cart-items {
  padding-bottom: 10px !important;
}

.cart-delivery-card {
  margin-bottom: 10px !important;
}


/* --- THERMAL PRINTER STYLES --- */
@media print {
  body * {
    visibility: hidden;
  }

  #printable-area,
  #printable-area * {
    visibility: visible;
  }

  #printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    /* Standard Thermal Width */
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: black;
    background: white;
  }

  .print-header {
    text-align: center;
    border-bottom: 1px dashed black;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .print-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
  }

  .print-type {
    font-size: 16px;
    font-weight: 800;
    border: 2px solid black;
    padding: 5px;
    margin: 10px 0;
    text-align: center;
  }

  .print-table {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
  }

  .print-table th,
  .print-table td {
    text-align: left;
    padding: 2px 0;
  }

  .print-total {
    border-top: 1px dashed black;
    padding-top: 10px;
    text-align: right;
    font-weight: bold;
    font-size: 16px;
  }

  .print-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
  }
}


/* --- ORDER STATUS BUBBLE REPOSITIONING (Overrides) --- */
.order-status-bubble {
  bottom: 100px !important;
  /* Higher initial position */
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  /* Centered initially */

  /* Bigger Size */
  padding: 12px 25px !important;
  border-radius: 50px !important;
  gap: 12px !important;
  min-width: 200px;
  /* Ensure width for text */
  justify-content: center;

  /* Draggable Utils */
  cursor: grab !important;
  touch-action: none !important;
  /* Prevent scroll while dragging */
  user-select: none !important;

  /* Ensure slide animation adapts or is removed/overridden */
  animation: slideUpFade 0.3s ease-out !important;
}

.order-status-bubble:active {
  cursor: grabbing !important;
  transform: translateX(-50%) scale(0.98) !important;
  /* Slight press effect, keep centered transform relative to logic */
}

/* We need to handle the transform carefully if we use JS for positioning. 
   If JS sets left/top, we should remove bottom/transform. 
   We will add a class '.dragging' via JS to disable transition/transform if needed. 
*/

.order-bubble-text {
  font-size: 15px !important;
  /* Bigger text */
}

.order-bubble-sub {
  font-size: 11px !important;
}

@keyframes slideUpFade {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Modern 3D Coming Soon Pages - Vibrant Refresh */
.coming-soon-container {
  /* Ensure it fills the view minus header/nav */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  /* Vibrant Gradient: Purple to Pink/Orange */
  background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 50%, #fc6767 100%);
  color: #fff;
  overflow: hidden;
}

/* animated subtle glow background */
.coming-soon-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotateBG 20s linear infinite;
  z-index: 0;
}

@keyframes rotateBG {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.coming-soon-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centering Fix */
  margin: auto;
}

.coming-soon-emoji {
  font-size: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.coming-soon-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.coming-soon-title span {
  display: block;
  font-size: 0.6em;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.coming-soon-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 320px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-3d {
  background: #fff;
  color: #8E2DE2;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #ddd, 0 15px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.1s;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #ddd, 0 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* FAB Cart Contrast Update */
.fab-cart {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #ffffff !important;
  color: var(--dominos-blue) !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.2s;
  border: 2px solid white !important;
}

.fab-cart:active {
  transform: scale(0.95);
}

.fab-icon {
  font-size: 24px !important;
}

.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--dominos-red) !important;
  color: white !important;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 7px;
  min-width: 20px;
  text-align: center;
  border: 2px solid white !important;
}