/* CompareGo — Mobile-first PWA styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  background: #F3F3F3;
  color: #000000;
  overflow-x: hidden;
}
body.comparego-pdf-overlay-open {
  overflow: hidden;
}

#app {
  min-height: 100vh;
  background: #F3F3F3;
  position: relative;
  overflow-x: hidden;
  padding-top: max(70px, env(safe-area-inset-top));
  padding-bottom: 150px;
}

.top-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Home logo */
#homeLogo {
  width: min(78vw, 330px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: none;
  clip-path: none;
  mask: none;
}

/* Search bar */
#searchContainer {
  width: min(86vw, 420px);
  height: 54px;
  max-width: none;
  margin: 22px auto 0;
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid #E1E4E8;
}
#searchContainer input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  color: #000000;
}
#searchContainer input::placeholder { color: #9CA3AF; }
#micBtn {
  flex-shrink: 0;
  padding: 4px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#micBtn:hover { background: #E5E7EB; }
#listeningBadge {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #135063;
  animation: pulse 1.5s infinite;
}
.value-message {
  text-align: center;
  font-size: 13px;
  color: #5A6A75;
  margin-top: 12px;
}

/* Cart button */
#cartBtn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  padding: 10px;
  border-radius: 9999px;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#cartBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}
#cartBtn:hover { background: #F7F9FA; }

/* Popular searches */
#popularSection {
  width: min(86vw, 420px);
  margin: 30px auto 0 auto;
  padding: 0;
}
#popularSection > p {
  font-size: 14px;
  font-weight: 700;
  color: #15576A;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 14px 0;
}
#popularChips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.chip {
  padding: 9px 17px;
  background: #F8FAFB;
  color: #15576A;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #DDE3E8;
  cursor: pointer;
}
.chip:hover { background: #15576A; color: #FFFFFF; }
.chip:active { transform: scale(0.95); }

/* Main content area */
#mainContent {
  padding: 8px 16px 16px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}
#statusBar {
  font-size: 11px;
  color: #5A6A75;
  margin-bottom: 8px;
}
#loading {
  padding: 48px 0;
  text-align: center;
}
#loading > div {
  width: 32px;
  height: 32px;
  border: 2px solid #135063;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
#loading > p { font-size: 14px; color: #5A6A75; }
#emptyState {
  padding: 48px 0;
  text-align: center;
  color: #5A6A75;
}
#emptyState svg { margin: 0 auto 12px; opacity: 0.5; }
#emptyState p { font-size: 14px; }

/* Results table */
#results { overflow-x: hidden; }
#results table { width: 100%; font-size: 14px; border-collapse: separate; border-spacing: 0 4px; }
#results thead tr {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #5A6A75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E5E7EB;
}
#results thead th { padding: 8px 8px 8px 0; }
#results tbody tr {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
#results tbody td,
#results thead th {
  padding: 12px 8px;
  vertical-align: top;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#results tbody td:first-child { border-radius: 12px 0 0 12px; }
#results tbody td:last-child { border-radius: 0 12px 12px 0; }
.brand-cell { font-weight: 700; color: #000000; max-width: 90px; }
.qty-cell { color: #5A6A75; font-size: 0.8rem; }
.price-cell { color: #135063; font-weight: 800; }
.original-price { text-decoration: line-through; color: #9CA3AF; font-size: 0.75rem; font-weight: 400; }
.discount-badge { background: #FEF08A; color: #135063; font-size: 0.65rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; margin-top: 2px; display: inline-block; }
.outlet-cell { color: #5A6A75; font-size: 0.8rem; max-width: 100px; }
.outlet-name { color: #5A6A75; font-size: 0.8rem; }
.outlet-distance { color: #BC9A5F; font-weight: 700; font-size: 0.85rem; }
.outlet-city { color: #9CA3AF; font-size: 0.7rem; }
.valid-cell { color: #5A6A75; font-size: 0.8rem; }
.distance-cell { color: #BC9A5F; font-weight: 700; font-size: 0.85rem; text-align: right; }
#results th:nth-child(1), #results td:nth-child(1) { width: 28%; }
#results th:nth-child(2), #results td:nth-child(2) { width: 12%; }
#results th:nth-child(3), #results td:nth-child(3) { width: 16%; }
#results th:nth-child(4), #results td:nth-child(4) { width: 24%; }
#results th:nth-child(5), #results td:nth-child(5) { width: 20%; }
.hidden { display: none !important; }

/* Add button */
.add-btn {
  background: #135063;
  color: #BC9A5F;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.add-btn:hover { background: #0E3D4B; }
.add-btn:active { transform: scale(0.95); }

/* Footer */
#homeFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}
#homeFooter img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: none;
  clip-path: none;
  mask: none;
}

/* Desktop / laptop: reduce footer height so it stays decorative */
@media (min-width: 1024px) {
  #homeFooter img {
    max-height: 12vh;
  }
}

/* PWA install banner */
.install-banner {
  position: fixed;
  inset: 0;
  background: rgba(19, 80, 99, 0.42);
  padding: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-banner-content {
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid #DDE3E8;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.install-banner-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.install-banner-text {
  display: block;
  font-size: 13px;
  color: #135063;
  line-height: 1.4;
}
.install-banner-copy { display: grid; gap: 4px; }
.install-banner-copy strong { color: #135063; font-size: 18px; }
.install-banner-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.install-banner-btn {
  background: #135063;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.install-banner-btn:hover { background: #0E3D4B; }
.install-banner-close {
  background: transparent;
  border: none;
  color: #5A6A75;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-banner-close:hover { color: #135063; }

/* Cart / Planner panel */
#cartOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s;
}
#cartPanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  width: 90%;
  max-width: 384px;
  z-index: 50;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.translate-x-full { transform: translateX(100%) !important; }
.opacity-0 { opacity: 0 !important; }
.postit-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 3px 2px 4px 5px / 2px 4px 3px 5px;
  box-shadow: 6px 6px 18px rgba(0,0,0,0.18), 2px 2px 6px rgba(0,0,0,0.1);
  overflow: visible;
  background: #FEF9C3;
  position: relative;
}
.postit-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0,0,0,0.05), transparent);
  pointer-events: none;
}
.postit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 3px 2px 4px 5px / 2px 4px 3px 5px;
  pointer-events: none;
}
#cartHeader {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(188,154,95,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FEF08A;
}
#cartHeader h2 { font-size: 18px; font-weight: 700; color: #000000; margin: 0; }
#closeCart {
  padding: 8px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
}
#closeCart:hover { background: rgba(188,154,95,0.3); }
#cartItems {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding: 16px;
  background: #FEF9C3;
  -webkit-overflow-scrolling: touch;
}
#cartFooter {
  flex-shrink: 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(188,154,95,0.4);
  background: #FEF08A;
}
.cart-group-title {
  font-weight: 700;
  color: #135063;
  font-size: 0.9rem;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(19,80,99,0.2);
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
  padding: 6px 0;
  border-bottom: 1px solid rgba(19,80,99,0.08);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.85rem; color: #000000; }
.cart-item-qty { font-size: 0.75rem; color: #5A6A75; }
.cart-item-price { color: #135063; font-weight: 700; font-size: 0.85rem; margin-right: 8px; }
.cart-group { margin-bottom: 20px; }
.cart-item-content { flex: 1; min-width: 0; overflow: visible; }
.cart-item-meta {
  font-size: 0.75rem;
  color: #5A6A75;
  margin-top: 2px;
}
.cart-item-price-line { color: #135063; font-weight: 700; }
.cart-item-outlet-line { color: #5A6A75; font-weight: 600; }
.cart-item-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.cart-item-label {
  font-size: 0.65rem;
  color: #5A6A75;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.cart-item-qty-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.cart-item .qty-stepper {
  display: grid;
  grid-template-columns: 30px 24px 30px;
  width: 90px;
  height: 34px;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 2px;
  overflow: visible;
}
.cart-item .qty-btn {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: none;
  border-radius: 6px;
  border: 1px solid #135063;
  background: #FFFFFF;
  color: #135063;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cart-item .qty-value {
  min-width: 24px;
  width: 24px;
}
.qty-btn:hover { background: #135063; color: #FFFFFF; }
.qty-btn:active { transform: scale(0.95); }
.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000000;
}
.cart-item-note { display: flex; flex-direction: column; }
.note-input {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(19,80,99,0.2);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #000000;
  outline: none;
  font-family: inherit;
}
.note-input:focus { border-color: #135063; background: #FFFFFF; }
.note-input::placeholder { color: #9CA3AF; }
.remove-item {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
}
.remove-item:hover { background: rgba(239,68,68,0.1); }
.remove-item:active { transform: scale(0.95); }
#shareWhatsApp {
  width: 100%;
  background: #135063;
  color: #BC9A5F;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#shareWhatsApp:hover { background: #0E3D4B; }
#shareWhatsApp:active { transform: scale(0.98); }
#clearCart {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #135063;
  color: #135063;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
#clearCart:hover { background: #135063; color: #BC9A5F; }
#clearCart:active { transform: scale(0.98); }

/* Listening state */
#searchContainer.listening { border-color: #EF4444; background: #FEF2F2 !important; }
#micBtn.listening #micIcon { stroke: #EF4444; fill: rgba(239,68,68,0.15); }

/* Scrollbar hiding for mobile feel */
main::-webkit-scrollbar, #cartItems::-webkit-scrollbar { display: none; }
main, #cartItems { -ms-overflow-style: none; scrollbar-width: none; }

/* Utility */
.hidden { display: none !important; }

/* Animations */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* =====================================================
   Top-right controls (cart + menu)
   ===================================================== */
#topControls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cartBtn {
  position: relative;
  top: auto;
  right: auto;
}
#menuBtn {
  padding: 10px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
#menuBtn:hover { background: #F7F9FA; }
#menuBtn:active { transform: scale(0.95); }

/* =====================================================
   Slide-out navigation menu
   ===================================================== */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s;
}
#menuPanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  z-index: 50;
  background: #FFFFFF;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
#menuHeader {
  padding: 16px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #135063;
}
#menuHeader h2 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}
#closeMenu {
  padding: 8px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
#closeMenu:hover { background: rgba(255,255,255,0.15); }
#menuLinks {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #135063;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #E5E7EB;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.menu-link:hover {
  background: #135063;
  color: #FFFFFF;
  transform: translateX(4px);
}
.menu-link.active {
  background: #EAF2F4;
  color: #135063;
  border: 1px solid #D3E1E6;
}
.menu-link.active:hover {
  background: #D6E6EA;
  color: #135063;
  border-color: #D3E1E6;
}
.menu-logout {
  width: 100%;
  border: 1px solid #F0C7C2;
  color: #B42318;
  background: #FFF8F7;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-logout:hover {
  color: #FFFFFF;
  background: #B42318;
  border-color: #B42318;
}

/* =====================================================
   Shared page layout (About / Guide)
   ===================================================== */
.page-layout {
  min-height: 100vh;
  background: #F3F3F3;
  position: relative;
  overflow-x: hidden;
   padding-top: max(70px, env(safe-area-inset-top));
  padding-bottom: 180px;
}
.page-header,
.comparego-mode-header,
.rs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}
.comparego-mode-header {
  display: none;
}
.spending-mode #spendingPageHeader,
.offers-mode #offersPageHeader,
.order-mode-active #orderPageHeader {
  display: flex;
}
.comparego-back-only-header {
  justify-content: flex-start;
}
.offers-mode #offersPageHeader,
.order-mode-active #orderPageHeader {
  background: transparent;
  border-bottom-color: transparent;
}
body.basket-mode {
  min-height: 100vh;
  padding-top: 70px;
  padding-bottom: 112px;
}
body.basket-mode #app {
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
  background: transparent;
}
.basket-mode .top-content,
.basket-mode #homeFooter,
.basket-mode #topControls,
.basket-mode #compareContent,
.basket-mode #orderContent,
.basket-mode #offersView,
.basket-mode #spendingView,
.basket-mode #mainContent,
.basket-mode #homeFlyersSection,
.basket-mode #cartPanel,
.basket-mode #cartOverlay {
  display: none !important;
}
.basket-mode #basketPageHeader {
  display: flex;
}

/* Shopping Profile and Quick Basket */
.profile-view {
  width: min(92vw, 620px);
  margin: 0 auto;
  padding: 18px 0 34px;
  color: #135063;
}
.profile-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px 22px;
}
.profile-intro > div { flex: 1; }
.profile-back-btn {
  width: 30px;
  min-width: 30px;
  margin-top: 7px;
  color: #135063;
  font-size: 24px;
  line-height: 1;
  text-align: left;
}
.profile-menu-mark {
  margin-top: 6px;
  color: #135063;
  font-size: 20px;
  line-height: 1;
}
.profile-eyebrow {
  margin: 0 0 5px;
  color: #BC9A5F;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.profile-intro h1 {
  margin: 0 0 6px;
  color: #135063;
  font-size: 27px;
  line-height: 1.1;
}
.profile-intro p:last-child {
  margin: 0;
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.45;
}
.comparego-internal-intro {
  text-align: left;
}
.comparego-internal-eyebrow {
  color: #BC9A5F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.comparego-internal-intro h1 {
  color: #135063;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
}
.comparego-internal-intro > p:last-child {
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.45;
}
.profile-card-list { display: grid; gap: 10px; }
.profile-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(19,80,99,.12);
  border-radius: 12px;
  background: #FFF;
  color: #135063;
  box-shadow: 0 4px 13px rgba(19,80,99,.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.profile-card:hover, .profile-card:focus-visible {
  border-color: rgba(188,154,95,.65);
  box-shadow: 0 6px 16px rgba(19,80,99,.11);
  outline: none;
  transform: translateY(-1px);
}
.profile-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: #FEF08A;
  color: #135063;
  font-size: 21px;
}
.profile-card-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}
.profile-card-copy strong { font-size: 14px; }
.profile-card-copy small {
  color: #6A7D85;
  font-size: 11px;
  line-height: 1.35;
}
.profile-card-arrow {
  color: #BC9A5F;
  font-size: 25px;
  line-height: 1;
}
.profile-card-count {
  flex: 0 0 auto;
  color: #6A7D85;
  font-size: 10px;
  white-space: nowrap;
}
.profile-local-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 8px 0;
  color: #7B8790;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}
.profile-local-note > span:first-child { color: #BC9A5F; font-size: 19px; line-height: 1; }
.profile-local-note strong { color: #5A6A75; }
.profile-detail {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(19,80,99,.12);
  border-radius: 12px;
  background: #FFF;
}
.profile-detail-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.profile-detail-heading h2 { flex: 1; margin: 0; color: #135063; font-size: 16px; }
.profile-detail-heading button {
  border: 0;
  background: transparent;
  color: #135063;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.profile-empty { margin: 0; color: #6A7D85; font-size: 12px; line-height: 1.5; }
.profile-detail-row { margin: 0; padding: 9px 0; border-top: 1px solid #EEF1F2; color: #135063; font-size: 13px; }
.profile-group-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #EEF1F2;
  background: transparent;
  color: #135063;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-group-row strong { flex: 1; }
.profile-group-row small { color: #6A7D85; font-size: 10px; }
.profile-group-items { padding: 0 0 5px 25px; }
.profile-item-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid #EEF1F2;
  color: #135063;
  font-size: 11px;
}
.profile-item-row strong { flex: 1; font-weight: 650; }
.profile-item-row button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(19,80,99,.15);
  border-radius: 5px;
  background: #FEF9C3;
  color: #135063;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.profile-form,
.profile-add-row,
.profile-preference-list,
.profile-outlet-list {
  display: grid;
  gap: 9px;
}
.profile-form label {
  display: grid;
  gap: 5px;
  color: #135063;
  font-size: 11px;
  font-weight: 700;
}
.profile-form input,
.profile-form select,
.profile-add-row input,
.profile-preference-row input,
.profile-preference-row select,
.profile-custom-unit {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 7px;
  background: #FFF;
  color: #135063;
  font: inherit;
  font-size: 12px;
}
.profile-add-row {
  display: flex;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.profile-add-row input { flex: 1; }
.profile-form-actions,
.profile-preference-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.profile-preference-heading {
  padding-top: 10px;
  border-top: 1px solid #EEF1F2;
  color: #135063;
  font-size: 12px;
}
.profile-primary-btn,
.profile-secondary-btn,
.profile-preference-row button,
.profile-outlet-row button {
  padding: 7px 10px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 7px;
  background: #135063;
  color: #FFF;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.profile-secondary-btn {
  background: #FEF9C3;
  color: #135063;
}
.profile-preference-list { margin-top: 8px; }
.profile-preference-row,
.profile-outlet-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid #EEF1F2;
  color: #135063;
  font-size: 12px;
}
.profile-preference-row > strong,
.profile-outlet-row > div {
  min-width: 0;
  flex: 1;
}
.profile-preference-row > strong { overflow-wrap: anywhere; }
.profile-preference-row small,
.profile-outlet-row small {
  display: block;
  color: #6A7D85;
  font-size: 10px;
}
.profile-preference-row input { width: 45px; }
.profile-preference-row select { width: 82px; }
.profile-preference-row button,
.profile-outlet-row button {
  min-width: 28px;
  padding: 5px 7px;
  background: #FEF9C3;
  color: #135063;
  font-size: 10px;
}
.profile-outlet-row button.selected {
  background: #135063;
  color: #FFF;
}
.profile-custom-unit {
  width: calc(100% - 25px);
  margin: -4px 0 2px 25px;
}
.profile-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 4px;
}
.profile-suggestion {
  padding: 6px 8px;
  border: 1px solid rgba(19,80,99,.14);
  border-radius: 999px;
  background: #FEF9C3;
  color: #135063;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.profile-suggestion span { color: #BC9A5F; font-weight: 800; }
.profile-feedback {
  min-height: 15px;
  margin: 7px 0 0;
  color: #2F7D58;
  font-size: 11px;
}
.profile-feedback.error { color: #A14B43; }

.planner-panel-tabs {
  display: flex;
  gap: 5px;
  margin: 8px 10px 0;
  padding: 3px;
  border: 1px solid rgba(19,80,99,.12);
  border-radius: 999px;
  background: #FEF08A;
}
.planner-panel-tab {
  flex: 1;
  padding: 7px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6A7D85;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.planner-panel-tab.active {
  background: #135063;
  color: #FFFFFF;
}
.planner-quick-intro {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 0 2px 16px;
  padding: 18px 12px;
  border: 1px dashed rgba(19,80,99,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.38);
  color: #5A6A75;
  text-align: center;
}
.planner-quick-intro-icon { color: #BC9A5F; font-size: 25px; line-height: 1; }
.planner-quick-intro strong { color: #135063; font-size: 14px; }
.planner-quick-intro span { font-size: 11px; }
.planner-quick-intro button {
  margin-top: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: #135063;
  color: #FFF;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.quick-basket-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  background: #FEF9C3;
  color: #135063;
}
.quick-basket-tabs {
  display: flex;
  gap: 5px;
  padding: 12px 12px 4px;
  background: #FEF9C3;
}
.quick-basket-tab {
  flex: 1;
  padding: 8px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6A7D85;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.quick-basket-tab.active { background: #135063; color: #FFFFFF; }
.quick-repeat-btn {
  align-self: flex-end;
  margin: 10px 14px 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #135063;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.quick-basket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 7px;
  border-bottom: 1px solid rgba(19,80,99,.15);
  color: #135063;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}
.quick-basket-heading span:last-child {
  color: #6A7D85;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}
.quick-basket-current-items { padding: 0 14px; }
.quick-empty {
  margin: 0;
  padding: 18px 4px;
  color: #6A7D85;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.quick-item {
  padding: 8px 8px;
  margin: 5px 0;
  border: 1px solid rgba(19,80,99,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.42);
  border-bottom: 1px solid rgba(19,80,99,.14);
}
.quick-item-row, .quick-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 82px 21px 21px;
  width: 100%;
  min-width: 0;
  gap: 6px;
}
.quick-item-name {
  min-width: 0;
  flex: 1;
  gap: 6px;
}
.quick-item-name strong {
  overflow: hidden;
  color: #1A1A1A;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-item-name input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  accent-color: #135063;
}
.quick-remove-btn, .quick-note-toggle {
  width: 21px;
  height: 26px;
  flex: 0 0 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #B91C1C;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.quick-note-toggle {
  display: grid;
  place-items: center;
  color: #6A7D85;
  font-size: 14px;
}
.quick-note-toggle.active { color: #135063; }
.quick-item-controls {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.quick-stepper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 74px;
  min-width: 74px;
  height: 32px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 6px;
  background: #FFF;
}
.quick-stepper button {
  width: 25px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #135063;
  font-size: 18px;
  cursor: pointer;
}
.quick-stepper span { min-width: 24px; color: #135063; font-size: 13px; text-align: center; }
.quick-item-row select {
  display: block !important;
  width: 82px;
  height: 32px;
  min-width: 0;
  padding: 5px 5px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 6px;
  background: #FFF;
  color: #135063;
  font: inherit;
  font-size: 11px;
}
.quick-item-controls select, .quick-item-controls input, .quick-custom-unit {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 6px;
  background: #FFF;
  color: #135063;
  font: inherit;
  font-size: 11px;
}
.quick-custom-unit { width: 100%; margin-top: 7px; }
.quick-note-field {
  padding: 6px 0 0 20px;
}
.quick-note-field input {
  width: 100%;
  padding: 6px 7px;
  border: 1px solid rgba(19,80,99,.18);
  border-radius: 6px;
  background: #FFF;
  color: #135063;
  font: inherit;
  font-size: 11px;
}
.quick-item:focus-within { border-color: rgba(188,154,95,.48); }
.quick-basket-add-row {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
}
.quick-basket-add-row input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(19,80,99,.2);
  border-radius: 7px;
  background: #FFF;
  color: #135063;
  font: inherit;
  font-size: 12px;
}
.quick-basket-add-row button, .quick-planner-btn, .quick-whatsapp-btn, .quick-clear-btn {
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.quick-basket-add-row button {
  padding: 8px 9px;
  background: #135063;
  color: #FFF;
}
.quick-basket-suggestions { padding: 0 14px 14px; }
.quick-picks {
  padding: 8px 0 4px;
}
.quick-picks-heading {
  display: block;
  margin-bottom: 6px;
  color: #6A7D85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quick-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-pick {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(19,80,99,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #135063;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.quick-pick:hover, .quick-pick:focus { background: #FFFFFF; outline: none; }
.quick-pick small { color: #6A7D85; font-size: 9px; }
.quick-category { margin-top: 6px; }
.quick-category h3 {
  margin: 9px 0 3px;
  color: #6A7D85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quick-suggestion-row, .quick-category-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(19,80,99,.1);
  background: transparent;
  color: #135063;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.quick-suggestion-row > span, .quick-category-row > span { color: #BC9A5F; font-size: 17px; }
.quick-suggestion-row strong, .quick-category-row strong { flex: 1; font-size: 12px; }
.quick-suggestion-row small { color: #6A7D85; font-size: 10px; }
.quick-suggestion-row b, .quick-category-row b { color: #135063; font-size: 17px; }
.quick-category-row-wrap { border-top: 1px solid rgba(19,80,99,.1); }
.quick-category-row-wrap .quick-category-row { border-top: 0; }
.quick-category-row.expanded { background: rgba(255,255,255,.28); }
.quick-category-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #FEF08A;
  color: #135063;
  font-size: 10px;
  text-align: center;
}
.quick-category-items {
  padding: 0 0 4px 25px;
}
.quick-category-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(19,80,99,.08);
  background: transparent;
  color: #135063;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.quick-category-item span { flex: 1; }
.quick-category-item small { color: #6A7D85; }
.quick-category-item b { color: #135063; font-size: 15px; }
.quick-category-empty { margin: 0; padding: 8px 0; color: #6A7D85; font-size: 10px; }
.quick-basket-actions {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(188,154,95,.45);
  background: #FEF08A;
}
.quick-planner-btn {
  padding: 10px;
  background: #135063;
  color: #FFF;
}
.quick-planner-btn small { display: block; margin-top: 3px; color: rgba(255,255,255,.75); font-size: 9px; font-weight: 500; }
.quick-whatsapp-btn { padding: 9px; background: #25D366; color: #FFF; }
.quick-clear-btn { padding: 5px; background: transparent; color: #7B8790; }
.quick-basket-status { min-height: 16px; margin: 0; padding: 0 14px 9px; background: #FEF08A; color: #135063; font-size: 11px; text-align: center; }
.quick-basket-status.error { color: #A33A31; }
.quick-basket-status.success { color: #236B46; }

@media (max-width: 380px) {
  .quick-item-row {
    grid-template-columns: minmax(0, 1fr) 64px 70px 18px 18px;
    gap: 4px;
  }
  .quick-stepper { width: 64px; min-width: 64px; }
  .quick-stepper button { width: 21px; }
  .quick-stepper span { min-width: 20px; }
  .quick-item-row select { width: 70px; padding-left: 3px; padding-right: 3px; }
  .quick-remove-btn, .quick-note-toggle { width: 18px; flex-basis: 18px; }
  .quick-item-name { gap: 4px; }
  .quick-item-name strong { font-size: 12px; }
}
.basket-view {
  width: min(92vw, 620px);
  margin: 0 auto;
  padding: 18px 0 40px;
  color: #135063;
}
.basket-intro {
  margin-bottom: 18px;
}
.basket-intro h1 {
  margin: 0 0 7px;
  color: #135063;
  font-size: 28px;
  line-height: 1.1;
}
.basket-intro > p:last-child {
  margin: 0;
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.5;
}
.basket-eyebrow {
  margin: 0 0 5px;
  color: #BC9A5F;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.basket-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.basket-tab {
  padding: 11px 12px;
  border: 1px solid #D3E1E6;
  border-radius: 10px;
  background: #FFFFFF;
  color: #135063;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.basket-tab.active {
  border-color: #135063;
  background: #135063;
  color: #FFFFFF;
}
.basket-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(188,154,95,0.28);
  border-radius: 4px 3px 5px 4px;
  background: #FEF9C3;
  box-shadow: 4px 5px 13px rgba(0,0,0,0.10);
}
.basket-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.basket-section-heading h2 {
  margin: 0;
  color: #135063;
  font-size: 18px;
}
.basket-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #FEF08A;
  color: #135063;
  font-size: 11px;
  font-weight: 750;
}
.basket-empty {
  margin: 0;
  padding: 16px 4px;
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.basket-item {
  padding: 12px 0;
  border-top: 1px solid rgba(19,80,99,0.12);
}
.basket-item:first-child { border-top: 0; padding-top: 0; }
.basket-item:last-child { padding-bottom: 0; }
.basket-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.basket-item-heading strong {
  display: block;
  color: #135063;
  font-size: 14px;
}
.basket-item-heading span {
  display: block;
  margin-top: 3px;
  color: #5A6A75;
  font-size: 11px;
}
.basket-remove-btn,
.basket-text-btn {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #8B2D2D;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.basket-item-controls {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.basket-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.basket-control-label {
  color: #5A6A75;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}
.basket-field input,
.basket-field select {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid rgba(19,80,99,0.22);
  border-radius: 7px;
  background: rgba(255,255,255,0.72);
  color: #135063;
  font: inherit;
  font-size: 12px;
}
.basket-field input:focus,
.basket-field select:focus {
  outline: 2px solid rgba(19,80,99,0.18);
  border-color: #135063;
}
.basket-stepper {
  display: grid;
  grid-template-columns: 31px 28px 31px;
  align-items: center;
  height: 34px;
}
.basket-stepper button {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #135063;
  border-radius: 6px;
  background: #FFFFFF;
  color: #135063;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.basket-stepper span {
  color: #135063;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.basket-note-field { margin-top: 9px; }
.basket-actions,
.basket-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.basket-primary-btn,
.basket-secondary-btn,
.basket-whatsapp-btn,
.basket-clear-btn {
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.basket-primary-btn {
  background: #135063;
  color: #FFFFFF;
}
.basket-secondary-btn {
  background: #EAF2F4;
  color: #135063;
}
.basket-clear-btn {
  background: #FCECEC;
  color: #8B2D2D;
}
.basket-whatsapp-btn {
  background: #2E8B57;
  color: #FFFFFF;
}
.basket-primary-btn:hover,
.basket-secondary-btn:hover,
.basket-clear-btn:hover,
.basket-whatsapp-btn:hover,
.basket-add-btn:hover {
  transform: translateY(-1px);
}
.basket-custom-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.basket-custom-field { justify-content: center; }
.basket-status {
  min-height: 17px;
  margin: 8px 0 0;
  color: #5A6A75;
  font-size: 11px;
}
.basket-status.success { color: #2E8B57; }
.basket-status.error { color: #8B2D2D; }
.basket-suggestions {
  display: grid;
  gap: 14px;
}
.basket-category h3 {
  margin: 0 0 7px;
  color: #135063;
  font-size: 13px;
}
.basket-suggestion-list {
  display: grid;
  gap: 6px;
}
.basket-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(19,80,99,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.58);
}
.basket-suggestion strong,
.basket-suggestion span {
  display: block;
}
.basket-suggestion strong {
  color: #135063;
  font-size: 12px;
}
.basket-suggestion span {
  margin-top: 2px;
  color: #5A6A75;
  font-size: 10px;
}
.basket-add-btn {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: #BC9A5F;
  color: #FFFFFF;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.basket-frequent-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.basket-frequent-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(19,80,99,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  color: #135063;
  font: inherit;
  cursor: pointer;
}
.basket-frequent-chip span { font-size: 12px; font-weight: 750; }
.basket-frequent-chip small { color: #5A6A75; font-size: 10px; }
.basket-helper {
  margin: 10px 0 0;
  color: #5A6A75;
  font-size: 11px;
  line-height: 1.45;
}
.basket-text-btn {
  display: block;
  margin: 12px 0 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.comparego-page-header .rs-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #135063;
  font-size: 16px;
  font-weight: 750;
}
.comparego-page-header .rs-brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}
.comparego-page-header .menu-btn,
.comparego-mode-header .menu-btn {
  position: static;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparego-page-header .menu-btn:hover,
.comparego-mode-header .menu-btn:hover { background: #F7F9FA; }
.comparego-page-header .menu-btn:active,
.comparego-mode-header .menu-btn:active { transform: scale(0.95); }
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: #135063;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.back-btn:hover { background: #F7F9FA; }
.back-btn:active { transform: scale(0.95); }

.page-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 16px 24px;
}
.page-title {
  font-size: 26px;
  font-weight: 800;
  color: #135063;
  text-align: center;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.page-title .icon {
  font-size: 28px;
  line-height: 1;
}

/* =====================================================
   Hero section
   ===================================================== */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}
.hero-logo {
  width: min(60vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto 20px;
}
.hero-tagline {
  font-size: 20px;
  font-weight: 800;
  color: #BC9A5F;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}
.hero-description {
  font-size: 16px;
  color: #5A6A75;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   Content cards
   ===================================================== */
.content-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.content-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #135063;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-card h2 .icon { font-size: 22px; line-height: 1; }
.content-card p {
  font-size: 15px;
  color: #5A6A75;
  line-height: 1.65;
  margin: 0;
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icon-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #5A6A75;
  line-height: 1.5;
}
.icon-item .check {
  font-size: 18px;
  flex-shrink: 0;
  color: #135063;
  margin-top: 1px;
}

/* =====================================================
   Feature card grid
   ===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #135063;
  margin: 0 0 8px 0;
}
.feature-card p {
  font-size: 14px;
  color: #5A6A75;
  line-height: 1.5;
  margin: 0;
}

/* =====================================================
   Highlighted and gold-accent cards
   ===================================================== */
.highlight-card {
  background: #135063;
  color: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(19,80,99,0.2);
}
.highlight-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #FEF08A;
  margin: 0 0 14px 0;
}
.highlight-card p {
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.65;
  margin: 0;
}

.gold-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 0;
}
.gold-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #135063;
  margin: 0 0 14px 0;
}
.gold-card ul {
  margin: 0 0 14px 0;
  padding-left: 18px;
  color: #5A6A75;
  font-size: 15px;
  line-height: 1.7;
}
.gold-card p {
  font-size: 15px;
  color: #5A6A75;
  line-height: 1.65;
  margin: 0;
}

/* =====================================================
   User guide steps
   ===================================================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #135063;
  color: #BC9A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #135063;
  margin: 0;
}
.step-card p {
  font-size: 15px;
  color: #5A6A75;
  line-height: 1.6;
  margin: 0 0 10px 0;
}
.step-card ul {
  margin: 0 0 10px 0;
  padding-left: 18px;
  color: #5A6A75;
  font-size: 15px;
  line-height: 1.6;
}
.step-card .example {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  border-left: 0;
}
.example-title {
  font-size: 14px;
  font-weight: 700;
  color: #135063;
  margin: 0 0 10px 0;
}
.example-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.example-list li {
  font-size: 14px;
  color: #5A6A75;
  padding: 6px 0;
  border-bottom: 1px solid #E5E7EB;
}
.example-list li:last-child { border-bottom: none; }

/* =====================================================
   Collapsible sections
   ===================================================== */
.collapsible {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.collapsible summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #135063;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary::after {
  content: '+';
  font-size: 22px;
  color: #BC9A5F;
  font-weight: 400;
  line-height: 1;
}
.collapsible[open] summary::after { content: '−'; }
.collapsible-content {
  padding: 0 20px 18px 20px;
  font-size: 15px;
  color: #5A6A75;
  line-height: 1.6;
}

/* =====================================================
   Page footer (text-based)
   ===================================================== */
.page-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 24px;
  text-align: center;
  background: #F3F3F3;
}
.page-footer .footer-logo {
  width: min(60vw, 260px);
  height: auto;
  margin: 0 auto 14px;
  display: block;
}
.page-footer .footer-tagline {
  font-size: 20px;
  font-weight: 700;
  color: #BC9A5F;
  margin: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =====================================================
   Scroll-to-top button
   ===================================================== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #135063;
  color: #BC9A5F;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: opacity 0.3s, transform 0.15s;
}
.scroll-top:hover { background: #0E3D4B; }
.scroll-top:active { transform: scale(0.95); }

/* Smooth page transitions */
.page-layout { animation: fadeIn 0.35s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar hiding for menu panel */
#menuPanel::-webkit-scrollbar { display: none; }
#menuPanel { -ms-overflow-style: none; scrollbar-width: none; }

/* =====================================================
   Order mode styles
   ===================================================== */

/* Mode toggle segmented control */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #DDE3E8;
  border-radius: 999px;
  padding: 3px;
  margin: 16px auto 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mode-tab {
  border: none;
  background: transparent;
  color: #135063;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.mode-tab:hover { background: rgba(19,80,99,0.06); }
.mode-tab.active {
  background: #135063;
  color: #FFFFFF;
}

/* Order mode content area */
.order-content {
  width: min(86vw, 420px);
  margin: 16px auto 0;
  padding-bottom: 16px;
}

.order-section {
  margin-bottom: 16px;
}
.order-section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5A6A75;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

/* Shop selector button */
.shop-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.shop-select-btn:hover { border-color: #BC9A5F; }
.shop-select-btn:active { transform: scale(0.99); }
.shop-select-placeholder { color: #9CA3AF; font-size: 14px; }
.shop-select-info { flex: 1; min-width: 0; }
.shop-select-name {
  font-weight: 700;
  font-size: 15px;
  color: #000000;
}
.shop-select-meta {
  font-size: 12px;
  color: #5A6A75;
  margin-top: 2px;
}
.shop-select-badges,
.shop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}
.badge-delivery {
  background: #E0F2F1;
  color: #135063;
}
.badge-status-open {
  background: #DCFCE7;
  color: #166534;
}
.badge-status-closed {
  background: #FEE2E2;
  color: #991B1B;
}
.badge-status-unknown {
  background: #F3F4F6;
  color: #5A6A75;
}
.badge-minimum {
  background: #FEF9C3;
  color: #713F12;
}

/* Quick chips */
.order-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.order-chip {
  padding: 7px 14px;
  background: #F8FAFB;
  color: #15576A;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #DDE3E8;
  cursor: pointer;
  font-family: inherit;
}
.order-chip:hover { background: #15576A; color: #FFFFFF; }
.order-chip:active { transform: scale(0.95); }

/* Order form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-form input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  color: #000000;
  outline: none;
  font-family: inherit;
}
.order-form input:focus { border-color: #BC9A5F; }
.order-form input::placeholder { color: #9CA3AF; }
#addOrderItemBtn {
  background: #135063;
  color: #BC9A5F;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}
#addOrderItemBtn:hover { background: #0E3D4B; }
#addOrderItemBtn:active { transform: scale(0.98); }

/* Quantity stepper + unit selector */
.order-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.order-form .qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper-btn {
  width: 40px;
  height: 44px;
  background: #F8FAFB;
  border: none;
  color: #135063;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.qty-stepper-btn:hover { background: #EDF1F3; }
.qty-stepper-btn:active { transform: scale(0.95); }
.qty-stepper-value {
  min-width: 42px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  padding: 0 8px;
}
.order-unit-select {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 15px;
  color: #000000;
  outline: none;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6A75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.order-unit-select:focus { border-color: #BC9A5F; }
#orderItemCustomUnit {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  color: #000000;
  outline: none;
  font-family: inherit;
}
#orderItemCustomUnit:focus { border-color: #BC9A5F; }

/* Order list — yellow Post-It style */
.order-list-card {
  background: #FEF9C3;
  border-radius: 3px 2px 4px 5px / 2px 4px 3px 5px;
  box-shadow: 6px 6px 18px rgba(0,0,0,0.18), 2px 2px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.order-list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0,0,0,0.05), transparent);
  pointer-events: none;
}
.order-list-header {
  padding: 12px 16px;
  background: #FEF08A;
  border-bottom: 1px dashed rgba(188,154,95,0.4);
  font-weight: 700;
  font-size: 16px;
  color: #000000;
}
.order-empty {
  font-size: 14px;
  color: #5A6A75;
  text-align: center;
  padding: 32px 16px;
  margin: 0;
}
.order-list-items {
  padding: 12px 16px;
}
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(19,80,99,0.08);
}
.order-item:last-child { border-bottom: none; }
.order-item-name {
  font-weight: 700;
  font-size: 15px;
  color: #000000;
}
.order-item-qty,
.order-item-note {
  font-size: 13px;
  color: #5A6A75;
  margin-top: 2px;
}
.order-item-note { font-style: italic; }
.order-item-remove {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.order-item-remove:hover { background: rgba(239,68,68,0.1); }
.order-item-remove:active { transform: scale(0.95); }

/* Order list actions */
.order-list-actions {
  padding: 12px 16px;
  border-top: 1px dashed rgba(188,154,95,0.4);
  background: #FEF08A;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-send-btn {
  width: 100%;
  background: #135063;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.order-send-btn:hover { background: #0E3D4B; }
.order-send-btn:active { transform: scale(0.98); }
.order-clear-btn {
  width: 100%;
  border: 1px solid #135063;
  color: #135063;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.order-clear-btn:hover { background: #135063; color: #BC9A5F; }
.order-clear-btn:active { transform: scale(0.98); }

/* Shop selection panel */
#shopOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.3s;
}
.shop-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 90%;
  max-width: 384px;
  z-index: 50;
  transition: transform 0.3s;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.shop-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}
.shop-panel-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #000000; }
#closeShopPanel {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#closeShopPanel:hover { background: #F3F4F6; }
.shop-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}
.shop-empty {
  font-size: 14px;
  color: #5A6A75;
  text-align: center;
  padding: 32px 0;
  margin: 0;
}
.shop-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.shop-option:last-child { border-bottom: none; }
.shop-option:hover { background: #F9FAFB; }
.shop-option-name {
  font-weight: 700;
  font-size: 15px;
  color: #000000;
}
.shop-option-meta {
  font-size: 13px;
  color: #5A6A75;
}
.shop-option-distance {
  font-size: 12px;
  color: #BC9A5F;
  font-weight: 600;
}

/* Compare mode content wrapper */
.compare-content {
  width: 100%;
}

/* Order mode: hide Compare results even if JS state is out of sync */
#app.order-mode-active #mainContent,
#app.order-mode-active .compare-content,
#app.order-mode-active #statusBar,
#app.order-mode-active #loading,
#app.order-mode-active #emptyState,
#app.order-mode-active #results {
  display: none !important;
}

/* My Spending view — uses the existing CompareGo visual language without
   changing the approved home, Compare, or Order layouts. */
.spending-view {
  width: min(92vw, 520px);
  margin: 0 auto;
  padding: 18px 0 40px;
  color: #135063;
}
.spending-mode .top-content,
.spending-mode #homeFooter,
.spending-mode #topControls {
  display: none;
}
.spending-mode {
  min-height: 100vh;
  padding-top: 82px;
}
.spending-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.spending-header .comparego-internal-intro {
  flex: 1;
  min-width: 0;
}
.spending-menu-btn {
  flex: 0 0 auto;
  margin-left: 0;
}
.spending-clear-btn { margin-left: auto; padding: 9px 0; color: #8B2D2D; }
.spending-danger-btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: #8B2D2D;
  color: #FFFFFF;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.clear-spending-card { width: min(100%, 400px); }
.clear-spending-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.spending-back-btn {
  border: none;
  background: #EAF2F4;
  color: #135063;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.spending-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: #135063;
}
.spending-header .comparego-internal-intro h1 {
  margin: 0 0 6px;
  font-size: 27px;
  font-weight: 700;
}
.spending-header .comparego-internal-intro > p:last-child {
  margin: 0;
}
.spending-eyebrow {
  margin: 0 0 4px;
  color: #BC9A5F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.spending-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.spending-summary-card,
.spending-card {
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(19,80,99,0.06);
}
.spending-summary-card {
  padding: 13px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spending-summary-card span {
  color: #5A6A75;
  font-size: 12px;
}
.spending-summary-card strong {
  color: #135063;
  font-size: 17px;
  line-height: 1.15;
}
.spending-card {
  padding: 16px;
  margin-bottom: 14px;
}
.spending-card h2 {
  margin: 0 0 12px;
  color: #135063;
  font-size: 16px;
}
.spending-form {
  display: grid;
  gap: 9px;
}
.spending-form label {
  display: grid;
  gap: 5px;
  color: #5A6A75;
  font-size: 12px;
  font-weight: 700;
}
.spending-form label span {
  font-weight: 400;
  color: #9CA3AF;
}
.spending-form input,
.budget-form input {
  width: 100%;
  border: 1px solid #E1E4E8;
  border-radius: 9px;
  padding: 10px 12px;
  background: #FFFFFF;
  color: #000000;
  font: inherit;
  outline: none;
}
.spending-form input:focus,
.budget-form input:focus {
  border-color: #BC9A5F;
}
.spending-primary-btn {
  border: none;
  border-radius: 9px;
  padding: 11px 14px;
  background: #135063;
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.spending-primary-btn:hover { background: #0E3D4B; }
.spending-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.spending-section-heading h2 { margin-bottom: 0; }
.spending-section-heading p {
  margin: 4px 0 0;
  color: #5A6A75;
  font-size: 12px;
}
.receipt-upload-btn {
  display: block;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px dashed #BC9A5F;
  border-radius: 9px;
  color: #135063;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.receipt-upload-btn input { display: none; }
.receipt-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #F7F9FA;
  color: #135063;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.receipt-pending-name { font-weight: 700; }
.receipt-status,
.spending-helper {
  margin: 9px 0 0;
  color: #5A6A75;
  font-size: 12px;
  line-height: 1.4;
}
.spending-link-btn {
  border: none;
  background: transparent;
  color: #135063;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.spending-budget-btn {
  flex: 0 0 auto;
  padding: 9px 13px;
  font-size: 12px;
}
.receipt-list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #F0F2F3;
}
.receipt-row-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #135063;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.receipt-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.receipt-delete-btn { color: #8B2D2D; }
.receipt-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .55);
}
.receipt-modal-card {
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}
.receipt-modal-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  margin-top: 12px;
  object-fit: contain;
  border-radius: 10px;
  background: #F7F9FA;
}
.budget-row {
  display: flex;
  justify-content: space-between;
  color: #5A6A75;
  font-size: 12px;
}
.budget-track {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #EAF2F4;
}
.budget-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #BC9A5F;
  transition: width 0.2s ease;
}
.budget-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.budget-form .spending-primary-btn { flex-shrink: 0; }
.recent-expense,
.top-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #F0F2F3;
}
.recent-expense:last-child,
.top-store:last-child { border-bottom: none; }
.recent-expense strong,
.top-store span {
  display: block;
  color: #135063;
  font-size: 14px;
}
.recent-expense span {
  display: block;
  margin-top: 3px;
  color: #5A6A75;
  font-size: 11px;
}
.recent-expense b,
.top-store b {
  color: #135063;
  font-size: 13px;
  white-space: nowrap;
}
.spending-empty {
  margin: 0;
  color: #5A6A75;
  font-size: 13px;
}
.spending-insights {
  padding-left: 20px;
  margin: 0;
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.7;
}

/* Fixed app navigation */
.bottom-nav {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #E1E4E8;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -3px 14px rgba(19,80,99,0.10);
}
.bottom-nav-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: #5A6A75;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}
.bottom-nav-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-item img {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  object-fit: contain;
}
.bottom-nav-item [hidden] {
  display: none !important;
}
.bottom-nav-item.active { color: #135063; }
.bottom-nav-item.active span { color: #BC9A5F; }
.page-layout { padding-bottom: max(128px, calc(104px + env(safe-area-inset-bottom))); }

/* Desktop-only refinements; mobile and tablet layouts remain unchanged. */
@media (min-width: 1024px) {
  #topControls {
    right: max(16px, calc((100vw - 1200px) / 2 + 16px));
  }

  #results {
    width: min(100%, 1200px);
    margin-left: auto;
    margin-right: auto;
  }

  #statusBar {
    width: min(100%, 1200px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Offers / Flyers — additive surface using the existing CompareGo palette. */
.home-flyers-section {
  width: min(86vw, 420px);
  margin: 22px auto 0;
}
.home-flyers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-flyers-heading .popular-title { margin-bottom: 0; }
.home-flyers-heading .popular-title { color: #135063; font-weight: 800; }
.view-all-flyers-btn {
  border: 0;
  background: transparent;
  color: #135063;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.home-flyer-chips {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.home-flyer-chip {
  border: 1px solid #DDE3E8;
  border-radius: 13px;
  background: #FFFFFF;
  color: #135063;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(19,80,99,0.05);
}
.home-flyer-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.home-flyer-thumb { width: 52px; height: 68px; overflow: hidden; border-radius: 8px; object-fit: cover; background: #EAF2F4; }
.home-flyer-thumb-placeholder { display: grid; place-items: center; color: #135063; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.home-flyer-copy { display: grid; min-width: 0; gap: 2px; }
.home-flyer-card strong { font-size: 13px; }
.home-flyer-card span,
.home-flyer-card small {
  overflow: hidden;
  color: #5A6A75;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-flyers-empty { color: #5A6A75; font-size: 12px; }

.offers-view {
  width: min(92vw, 760px);
  margin: 0 auto;
  padding: 18px 0 42px;
  color: #135063;
}
.offers-mode #mainContent,
.offers-mode #spendingView,
.offers-mode #homeFooter {
  display: none !important;
}
.offers-mode .compare-content,
.offers-mode .order-content { display: none !important; }
.offers-mode .mode-toggle { display: flex; }
.offers-mode {
  min-height: 100vh;
  padding-top: 82px;
}
.offers-header {
  margin-bottom: 16px;
}
.offers-header h1,
.flyer-detail-header h1 {
  margin: 0;
  color: #135063;
  font-size: 26px;
  line-height: 1.1;
}
.offers-header p:last-child {
  margin: 8px 0 0;
  color: #5A6A75;
  font-size: 13px;
}
.offers-eyebrow {
  margin: 0 0 5px;
  color: #BC9A5F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.offers-status {
  min-height: 18px;
  margin: 8px 0 12px;
  color: #5A6A75;
  font-size: 12px;
}
.offers-status[data-state="error"] { color: #B42318; }
.offers-status[data-state="success"] { color: #135063; }
.flyer-cards {
  display: grid;
  gap: 14px;
}
.flyer-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #E1E4E8;
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 0 3px 12px rgba(19,80,99,0.07);
}
.flyer-cover {
  width: 100px;
  height: 145px;
  object-fit: cover;
  background: #EAF2F4;
}
.flyer-cover-placeholder {
  display: grid;
  place-items: center;
  color: #135063;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.flyer-card-body {
  min-width: 0;
  padding: 14px;
}
.flyer-card-body h2 {
  margin: 0;
  color: #135063;
  font-size: 16px;
  line-height: 1.25;
}
.flyer-meta,
.flyer-detail-meta {
  margin: 7px 0 12px;
  color: #5A6A75;
  font-size: 12px;
  line-height: 1.45;
}
.flyer-primary-btn,
.flyer-back-btn,
.flyer-compare-btn,
.flyer-add-btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.flyer-primary-btn {
  background: #135063;
  color: #FFFFFF;
}
.flyer-detail-header {
  margin-bottom: 14px;
  padding-top: max(8px, env(safe-area-inset-top));
}
#flyerBackBtn {
  display: none !important;
}
.flyer-back-btn {
  margin-bottom: 16px;
  background: #EAF2F4;
  color: #135063;
}
.flyer-viewer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  min-height: 280px;
  margin-top: max(8px, env(safe-area-inset-top));
  border: 1px solid #E1E4E8;
  border-radius: 14px;
  background: #FFFFFF;
}
.flyer-viewer-card iframe {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
}
.flyer-pdf-viewer {
  width: 100%;
  height: min(72vh, 680px);
  max-height: min(72vh, 680px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: max(18px, calc(env(safe-area-inset-top) + 10px)) 12px max(18px, calc(env(safe-area-inset-bottom) + 10px));
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.flyer-pdf-viewer:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: max(28px, calc(env(safe-area-inset-top) + 14px)) max(18px, calc(env(safe-area-inset-right) + 12px)) max(24px, calc(env(safe-area-inset-bottom) + 12px)) max(18px, calc(env(safe-area-inset-left) + 12px));
  background: #FFF;
}
.flyer-pdf-viewer:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: max(28px, calc(env(safe-area-inset-top) + 14px)) max(18px, calc(env(safe-area-inset-right) + 12px)) max(24px, calc(env(safe-area-inset-bottom) + 12px)) max(18px, calc(env(safe-area-inset-left) + 12px));
  background: #FFF;
}
.flyer-pdf-viewer.is-ios-fullscreen {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: max(28px, calc(env(safe-area-inset-top) + 14px)) max(18px, calc(env(safe-area-inset-right) + 12px)) max(24px, calc(env(safe-area-inset-bottom) + 12px)) max(18px, calc(env(safe-area-inset-left) + 12px));
  background: #FFF;
}
@supports (height: 100dvh) {
  .flyer-pdf-viewer.is-ios-fullscreen {
    height: 100dvh;
  }
}
.flyer-pdf-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 10px;
  padding-top: 1px;
  background: #FFF;
  flex-wrap: wrap;
}
.flyer-pdf-toolbar button { border: 0; border-radius: 8px; padding: 7px 10px; background: #EAF2F4; color: #135063; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.flyer-pdf-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.flyer-pdf-toolbar span { color: #5A6A75; font-size: 11px; }
#flyerPdfCanvasStage {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: none;
}
#flyerPdfPageFrame {
  position: relative;
  display: grid;
  min-width: 100%;
  min-height: 100%;
  place-items: center;
}
#flyerPdfTapZones {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#flyerPdfTapZones.is-disabled { pointer-events: auto; }
.flyer-pdf-tap-zone {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.flyer-pdf-tap-zone:focus-visible {
  outline: 2px solid rgba(19,80,99,0.45);
  outline-offset: -2px;
}
#flyerPdfCanvas {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border: 1px solid #E5E7EB;
  margin: 0;
  touch-action: none;
  transform: none;
  transform-origin: center center;
}
.flyer-viewer-loading {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  color: #135063;
  font-size: 13px;
  font-weight: 700;
}
.flyer-pdf-fallback { display: block; margin-top: 10px; color: #135063; font-size: 12px; font-weight: 700; text-align: center; }
.flyer-pdf-fallback-viewer {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  background: #FFFFFF;
}
.flyer-viewer-empty,
.flyers-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: #5A6A75;
  text-align: center;
  font-size: 13px;
}
.flyer-products-section {
  margin-top: 22px;
}
.flyer-products-section h2 {
  margin: 0 0 12px;
  color: #135063;
  font-size: 19px;
}
.flyer-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flyer-product-chips button {
  border: 1px solid #DDE3E8;
  border-radius: 999px;
  padding: 8px 12px;
  background: #F8FAFB;
  color: #15576A;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.flyer-offer-cards {
  display: grid;
  gap: 10px;
}
.flyer-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid #E1E4E8;
  border-radius: 13px;
  background: #FFFFFF;
}
.flyer-offer-card h3 {
  margin: 2px 0 3px;
  color: #135063;
  font-size: 14px;
}
.flyer-offer-retailer,
.flyer-offer-meta {
  margin: 0;
  color: #5A6A75;
  font-size: 11px;
}
.flyer-offer-price {
  color: #135063;
  font-size: 14px;
  white-space: nowrap;
}
.flyer-offer-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}
.bottom-nav > svg:not([class]) {
  display: none;
}
.flyer-compare-btn {
  background: #EAF2F4;
  color: #135063;
}
.flyer-add-btn {
  background: #BC9A5F;
  color: #FFFFFF;
}
.home-flyers-heading .popular-title { color: #135063; }

@media (min-width: 700px) {
  .home-flyer-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flyer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================
   Retailer Studio — isolated local brochure builder
   ===================================================== */
.retailer-studio-page { background: #F3F3F3; color: #000; }
.rs-shell { min-height: 100vh; }
.rs-header {
  height: 70px; padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
  background: #FFF; border-bottom: 1px solid #E5E7EB; position: sticky; top: 0; z-index: 20;
}
.rs-back-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #135063; background: #F5F8F9; }
.rs-back-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-brand { display: flex; align-items: center; gap: 9px; color: #135063; font-size: 16px; font-weight: 750; }
.rs-brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #135063; color: #FFF; font-size: 12px; letter-spacing: .5px; }
.rs-header .menu-btn { position: static; width: 42px; height: 42px; }
.rs-main { width: min(1180px, 100%); margin: 0 auto; padding: 30px 16px 70px; }
.rs-hero { text-align: left; max-width: 760px; margin: 0 0 20px; }
.rs-eyebrow { margin: 0 0 6px; color: #BC9A5F; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.rs-hero h1 { margin: 0 0 6px; color: #135063; font-size: 27px; font-weight: 700; line-height: 1.1; }
.rs-hero > p:not(.rs-eyebrow) { margin: 0 0 14px; color: #5A6A75; font-size: 13px; line-height: 1.45; }
.rs-draft-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #F5EDDF; color: #8D6B36; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.rs-status { min-height: 0; width: min(680px, 100%); margin: 0 auto 14px; padding: 0; color: #135063; font-size: 13px; text-align: center; }
.rs-status:not(:empty) { padding: 10px 14px; border-radius: 10px; background: #EAF2F4; }
.rs-status.success { background: #EAF5EE; color: #20633A; }
.rs-status.error { background: #FCECEC; color: #8B2D2D; }
.rs-layout { display: grid; gap: 20px; align-items: start; }
.rs-editor { min-width: 0; }
.rs-card { margin-bottom: 16px; padding: 18px; border: 1px solid #E1E4E8; border-radius: 18px; background: #FFF; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.rs-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.rs-section-heading h2, .rs-preview-heading h2 { margin: 0; color: #135063; font-size: 20px; line-height: 1.15; }
.rs-step { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #135063; color: #FFF; font-size: 14px; font-weight: 800; }
.rs-label, .rs-field { display: block; color: #5A6A75; font-size: 12px; font-weight: 700; }
.rs-label { margin-bottom: 6px; }
.rs-input, .rs-field input, .rs-field textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #D7DEE2; border-radius: 10px;
  background: #FBFCFC; color: #000; font: inherit; font-size: 14px; outline: none;
}
.rs-field textarea { resize: vertical; min-height: 64px; }
.rs-input:focus, .rs-field input:focus, .rs-field textarea:focus { border-color: #135063; background: #FFF; box-shadow: 0 0 0 3px rgba(19,80,99,.08); }
.rs-field-grid { display: grid; gap: 11px; margin-top: 12px; }
.rs-field-wide { grid-column: 1 / -1; }
.rs-optional { color: #9CA3AF; font-weight: 500; }
.rs-help { margin: 7px 0 0; color: #7B8790; font-size: 11px; line-height: 1.45; }
.rs-product-editor { padding: 14px; border-radius: 13px; background: #F7F9FA; border: 1px solid #E5EAEC; }
.rs-product-editor .rs-field-grid { margin-top: 0; }
.rs-image-tools { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.rs-image-preview { flex: 0 0 78px; width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #EAF2F4; color: #6A7D85; text-align: center; font-size: 10px; font-weight: 700; }
.rs-image-preview img, .rs-image-preview > img { width: 100%; height: 100%; object-fit: contain; }
.rs-image-preview small { font-size: 9px; font-weight: 500; }
.rs-image-actions { min-width: 0; }
.rs-image-actions .rs-label { margin-bottom: 7px; }
.rs-button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-primary-btn, .rs-secondary-btn, .rs-danger-btn, .rs-whatsapp-btn, .rs-icon-btn {
  border: 0; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: transform .15s, background .15s;
}
.rs-primary-btn { background: #135063; color: #FFF; }
.rs-secondary-btn { background: #EAF2F4; color: #135063; }
.rs-danger-btn { background: #FCECEC; color: #8B2D2D; }
.rs-whatsapp-btn { width: 100%; margin-top: 12px; background: #2E8B57; color: #FFF; }
.rs-whatsapp-btn:disabled { background: #C8D1D4; color: #748187; cursor: not-allowed; }
.rs-primary-btn:hover, .rs-secondary-btn:hover, .rs-danger-btn:hover, .rs-whatsapp-btn:not(:disabled):hover { transform: translateY(-1px); }
.rs-small-btn { padding: 8px 10px; font-size: 11px; }
.rs-icon-btn { padding: 6px 8px; background: transparent; color: #135063; font-size: 11px; }
.rs-remove-btn { color: #8B2D2D; }
.rs-product-list { display: grid; gap: 8px; margin-top: 14px; }
.rs-product-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid #E5E7EB; border-radius: 12px; background: #FFF; }
.rs-product-thumb { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 9px; }
.rs-product-thumb.rs-placeholder { display: grid; place-items: center; background: #EAF2F4; color: #6A7D85; font-size: 8px; text-align: center; }
.rs-product-row-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.rs-product-row-copy strong { overflow: hidden; color: #135063; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rs-product-row-copy span { color: #7B8790; font-size: 11px; }
.rs-product-row-copy .rs-product-row-price { color: #135063; font-size: 12px; font-weight: 800; }
.rs-product-row-copy em { width: max-content; padding: 2px 5px; border-radius: 4px; background: #F5EDDF; color: #8D6B36; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.rs-product-row-actions { display: flex; flex-direction: column; align-items: flex-end; }
.rs-quantity-control { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.rs-quantity-control button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #EAF2F4; color: #135063; font-size: 18px; cursor: pointer; }
.rs-quantity-control input { width: 58px !important; margin-top: 0 !important; text-align: center; }
.rs-profile-autocomplete { position: relative; }
.rs-profile-suggestions { position: absolute; z-index: 50; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; max-height: 280px; border: 1px solid #D7DEE2; border-radius: 12px; background: #FFF; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.rs-profile-option { display: flex; width: 100%; flex-direction: column; gap: 3px; padding: 10px 12px; border: 0; border-bottom: 1px solid #EEF1F2; background: #FFF; color: #135063; font: inherit; text-align: left; cursor: pointer; }
.rs-profile-option:hover { background: #EAF2F4; }
.rs-profile-option strong { font-size: 13px; }
.rs-profile-option span, .rs-profile-empty { color: #5A6A75; font-size: 11px; }
.rs-profile-empty { margin: 0; padding: 12px; }
.rs-empty-products { margin: 14px 0 0; color: #7B8790; font-size: 12px; text-align: center; }
.rs-draft-note { margin: -4px 0 14px; color: #5A6A75; font-size: 12px; line-height: 1.45; }
.rs-wrap { gap: 7px; }
.rs-confirm { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: #5A6A75; font-size: 11px; line-height: 1.45; cursor: pointer; }
.rs-confirm input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #135063; }
.rs-saved-drafts { margin-top: 16px; padding-top: 14px; border-top: 1px solid #E5E7EB; }
.rs-saved-row { display: flex; gap: 7px; align-items: center; }
.rs-saved-row .rs-input { flex: 1; margin: 0; }
.rs-preview-column { min-width: 0; }
.rs-preview-sticky { position: sticky; top: 86px; }
.rs-preview-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.brochure-preview { position: relative; overflow: hidden; max-width: 500px; margin: 0 auto; border: 1px solid #E1E4E8; border-radius: 18px; background: #FFFFFF; box-shadow: 0 7px 22px rgba(0,0,0,.08); }
.brochure-draft-mark { padding: 8px 15px; background: #F5EDDF; color: #8D6B36; font-size: 9px; font-weight: 850; letter-spacing: 1.5px; text-align: right; }
.brochure-header { display: flex; gap: 11px; align-items: center; padding: 18px 18px 10px; }
.brochure-logo { flex: 0 0 50px; width: 50px; height: 50px; object-fit: contain; border-radius: 12px; }
.brochure-logo-placeholder { display: grid; place-items: center; background: #135063; color: #FFF; font-size: 14px; font-weight: 800; }
.brochure-shop-copy { min-width: 0; }
.brochure-shop-copy h3 { margin: 0 0 3px; color: #135063; font-size: 21px; overflow-wrap: anywhere; }
.brochure-shop-copy p { margin: 2px 0; color: #5A6A75; font-size: 11px; }
.brochure-contact { color: #135063 !important; font-size: 12px !important; font-weight: 700; }
.brochure-badges { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 18px 14px; }
.brochure-badges span, .brochure-discount { display: inline-flex; padding: 4px 6px; border-radius: 5px; background: #EAF2F4; color: #135063; font-size: 8px; font-weight: 800; letter-spacing: .3px; }
.brochure-campaign { padding: 18px; background: #135063; color: #FFF; }
.brochure-kicker { margin: 0 0 5px; color: #E8D5AD; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.brochure-campaign h2 { margin: 0; color: #FFF; font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; }
.brochure-valid { margin: 9px 0 0; color: #D8E6E9; font-size: 11px; font-weight: 700; }
.brochure-message { margin: 8px 0 0; color: #FFF; font-size: 12px; line-height: 1.4; }
.brochure-featured { display: grid; grid-template-columns: 42% 1fr; gap: 14px; margin: 15px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.brochure-product-image { min-width: 0; width: 100%; height: 150px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #FFFFFF; }
.brochure-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center center; }
.brochure-product-image .rs-placeholder, .brochure-grid-image .rs-placeholder { display: grid; place-items: center; color: #6A7D85; font-size: 11px; font-weight: 750; text-align: center; }
.brochure-deal-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.brochure-deal-label { color: #BC9A5F; font-size: 9px; font-weight: 850; letter-spacing: .8px; }
.brochure-deal-copy h3, .brochure-grid-card h3 { margin: 5px 0 2px; color: #135063; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.brochure-deal-copy p, .brochure-grid-card p { margin: 0 0 5px; color: #5A6A75; font-size: 11px; }
.brochure-deal-copy del, .brochure-grid-card del { color: #9CA3AF; font-size: 10px; }
.brochure-deal-copy strong, .brochure-grid-card strong { display: block; margin-top: 2px; color: #135063; font-size: 20px; line-height: 1.1; }
.brochure-discount { margin-top: 7px; background: #F5EDDF; color: #8D6B36; }
.brochure-deal-copy small, .brochure-grid-card small { margin-top: 7px; color: #5A6A75; font-size: 10px; line-height: 1.3; }
.brochure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 15px 15px; }
.brochure-grid-card { min-width: 0; padding: 9px; border: 1px solid #E5E7EB; border-radius: 12px; }
.brochure-grid-image { width: 100%; height: 100px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #FFFFFF; }
.brochure-grid-card h3 { font-size: 12px; }
.brochure-grid-card strong { font-size: 16px; }
.brochure-grid-card .brochure-discount { font-size: 7px; }
.brochure-empty { margin: 15px; padding: 45px 18px; border: 1px dashed #B7C6CB; border-radius: 13px; background: #FFFFFF; color: #6A7D85; font-size: 13px; text-align: center; }
.brochure-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 18px; background: #FFFFFF; color: #135063; text-align: center; }
.brochure-footer strong { font-size: 14px; }
.brochure-footer span { font-size: 12px; }
.brochure-footer small { margin-top: 8px; color: #7B8790; font-size: 10px; line-height: 1.4; }

@media (min-width: 560px) {
  .rs-main { padding-left: 24px; padding-right: 24px; }
  .rs-card { padding: 22px; }
  .rs-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .rs-main { padding-top: 42px; }
  .rs-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 500px); gap: 34px; }
  .rs-preview-column { order: 2; }
  .rs-editor { order: 1; }
}

/* Retailer Studio Sales Ledger — additive, local-only tool surface. */
.rs-tool-selector {
  width: min(760px, 100%);
  margin: 0 auto 20px;
  padding: 15px;
  border: 1px solid #E1E4E8;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.rs-tool-selector-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rs-tool-selector-heading h2 {
  margin: 0;
  color: #135063;
  font-size: 18px;
}
.rs-tool-selector-heading > p {
  margin: 0;
  color: #7B8790;
  font-size: 11px;
  text-align: right;
}
.rs-tool-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rs-tool-option {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #D7DEE2;
  border-radius: 11px;
  background: #FBFCFC;
  color: #135063;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rs-tool-option strong { font-size: 13px; }
.rs-tool-option span { color: #5A6A75; font-size: 11px; }
.rs-tool-option.active {
  border-color: #135063;
  background: #EAF2F4;
  box-shadow: 0 0 0 2px rgba(19,80,99,.08);
}
.rs-tool-option:focus-visible {
  outline: 2px solid #BC9A5F;
  outline-offset: 2px;
}
.rs-tool-panel { min-width: 0; }
.sales-ledger-workflow {
  width: min(760px, 100%);
  margin: 0 auto;
}
.sales-ledger-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.sales-ledger-heading h2 {
  margin: 0;
  color: #135063;
  font-size: clamp(24px, 5vw, 32px);
}
.sales-ledger-heading > div > p:last-child {
  margin: 8px 0 0;
  color: #5A6A75;
  font-size: 13px;
  line-height: 1.45;
}
.sales-clear-btn {
  flex: 0 0 auto;
  padding: 9px 11px;
  font-size: 11px;
}
.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.sales-summary-card,
.sales-card {
  border: 1px solid #E1E4E8;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 4px 14px rgba(19,80,99,.05);
}
.sales-summary-card {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
}
.sales-summary-card span {
  color: #5A6A75;
  font-size: 11px;
}
.sales-summary-card strong {
  color: #135063;
  font-size: 17px;
  line-height: 1.15;
}
.sales-card {
  margin-bottom: 14px;
  padding: 16px;
}
.sales-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sales-section-heading h3 {
  margin: 0;
  color: #135063;
  font-size: 18px;
}
.sales-section-heading .rs-eyebrow { margin-bottom: 4px; }
.sales-form {
  display: grid;
  gap: 10px;
}
.sales-form label {
  display: grid;
  gap: 5px;
  color: #5A6A75;
  font-size: 12px;
  font-weight: 700;
}
.sales-form label > span {
  color: #9CA3AF;
  font-weight: 400;
}
.sales-form input,
.sales-form select {
  width: 100%;
  margin-top: 1px;
  padding: 11px 12px;
  border: 1px solid #D7DEE2;
  border-radius: 10px;
  background: #FBFCFC;
  color: #000;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.sales-form input:focus,
.sales-form select:focus {
  border-color: #135063;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(19,80,99,.08);
}
.sales-target-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.sales-target-form button { white-space: nowrap; }
.sales-helper {
  margin: 9px 0 0;
  color: #5A6A75;
  font-size: 12px;
  line-height: 1.45;
}
.sales-target-progress-row { margin-top: 14px; }
.sales-target-progress-row + .budget-track { margin-top: 8px; }
.sales-target-progress-row + .budget-track div { background: #BC9A5F; }
.sales-receipt-upload {
  padding: 11px 14px;
  border: 1px dashed #BC9A5F;
  border-radius: 10px;
  color: #135063 !important;
  text-align: center;
  cursor: pointer;
}
.sales-receipt-upload input { display: none; }
.sales-receipt-preview {
  padding: 9px 11px;
  border-radius: 9px;
  background: #F7F9FA;
  color: #135063;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sales-transactions { display: grid; gap: 9px; }
.sales-date-group {
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FBFCFC;
}
.sales-date-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: #135063;
  cursor: pointer;
  list-style: none;
}
.sales-date-group summary::-webkit-details-marker { display: none; }
.sales-date-group summary > span { display: grid; gap: 3px; }
.sales-date-group summary strong { font-size: 13px; }
.sales-date-group summary small {
  color: #5A6A75;
  font-size: 11px;
}
.sales-date-group summary > b {
  color: #135063;
  font-size: 13px;
  white-space: nowrap;
}
.sales-date-entries { padding: 0 12px 4px; }
.sales-transaction {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #E5E7EB;
}
.sales-transaction-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.sales-transaction-copy strong {
  overflow-wrap: anywhere;
  color: #135063;
  font-size: 13px;
}
.sales-transaction-copy > span {
  color: #5A6A75;
  font-size: 11px;
  line-height: 1.4;
}
.sales-transaction > b {
  color: #135063;
  font-size: 13px;
  white-space: nowrap;
}
.sales-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sales-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.sales-receipt-name {
  min-width: 0;
  color: #5A6A75;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sales-receipt-link,
.sales-receipt-delete {
  padding: 0;
  border: 0;
  background: transparent;
  color: #135063;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sales-receipt-delete { color: #8B2D2D; }
.sales-empty {
  margin: 0;
  color: #5A6A75;
  font-size: 13px;
}
.sales-insight-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sales-insight-list li,
.sales-report-output li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #F0F2F3;
  color: #5A6A75;
  font-size: 12px;
}
.sales-insight-list li:last-child,
.sales-report-output li:last-child { border-bottom: 0; }
.sales-insight-list strong,
.sales-report-output li strong {
  color: #135063;
  text-align: right;
}
.sales-top-transactions-section {
  margin-top: 18px;
}
.sales-top-transactions-section h4 {
  margin: 0 0 8px;
  color: #135063;
  font-size: 14px;
}
.sales-top-transactions {
  margin: 0;
  padding-left: 24px;
}
.sales-top-transactions li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 8px 4px;
  border-bottom: 1px solid #F0F2F3;
  color: #5A6A75;
  font-size: 12px;
}
.sales-top-transactions li:last-child { border-bottom: 0; }
.sales-top-transactions strong { color: #135063; }
.sales-report-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.sales-report-form button { grid-column: 1 / -1; }
.sales-report-output {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #E5E7EB;
}
.sales-report-header h4 {
  margin: 0 0 12px;
  color: #135063;
  font-size: 15px;
}
.sales-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.sales-report-metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #F7F9FA;
}
.sales-report-metrics span { color: #5A6A75; font-size: 10px; }
.sales-report-metrics strong { color: #135063; font-size: 13px; }
.sales-report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sales-report-columns h5 {
  margin: 0 0 5px;
  color: #135063;
  font-size: 12px;
}
.sales-report-columns ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sales-report-actions { margin-top: 12px; }
.sales-privacy-note {
  margin: 4px 0 18px;
  color: #7B8790;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 480px) {
  .rs-tool-selector-heading,
  .sales-ledger-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .rs-tool-selector-heading > p { text-align: left; }
  .sales-clear-btn { align-self: flex-end; }
}

/* Shared common_products autocomplete */
.cg-autocomplete { position: relative; width: 100%; }
.cg-autocomplete-list {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 80;
  overflow-y: auto; max-height: min(300px, calc(100vh - 180px)); -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: pan-y; border: 1px solid #D7DEE2; border-radius: 12px;
  background: #FFF; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.cg-autocomplete-option {
  display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 13px; border: 0; border-bottom: 1px solid #EEF1F2; background: #FFF;
  color: #135063; font: inherit; text-align: left; cursor: pointer;
}
.cg-autocomplete-option:last-child { border-bottom: 0; }
.cg-autocomplete-option:hover, .cg-autocomplete-option:focus, .cg-autocomplete-option.is-active { background: #EAF2F4; outline: none; }
.cg-autocomplete-option strong { font-size: 13px; font-weight: 750; }
.cg-autocomplete-option span { color: #5A6A75; font-size: 11px; }
.cg-autocomplete-message { padding: 12px 13px; color: #5A6A75; font-size: 12px; }
.cg-autocomplete-message.is-loading { color: #135063; }
.cg-autocomplete-message.is-empty { color: #7B8790; }
.quick-basket-view .cg-autocomplete-option {
  background: #FFF !important;
  color: #135063 !important;
}
.quick-basket-view .cg-autocomplete-option:hover,
.quick-basket-view .cg-autocomplete-option:focus,
.quick-basket-view .cg-autocomplete-option.is-active {
  background: #FFF !important;
  color: #135063 !important;
}
.quick-basket-view .cg-autocomplete-option strong { color: #135063 !important; }
.quick-basket-view .cg-autocomplete-option span { color: #5A6A75 !important; }

