/* --- PWA SHELL STYLES --- */
:root {
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --yolk-blue: #2f2f86;
  --yolk-yellow: #fdd52d;
  --yolk-off-white: #fbf7ea;
  --yolk-blue-light: #3c3c9a;
  --yolk-gray: #808080;
  --yolk-blue-rgb: 47, 47, 134;
  --yolk-yellow-rgb: 253, 213, 45;
  --yolk-gray-rgb: 128, 128, 128;
  --header-height: 58px;
  
  --rewards-bar-height: 48px;
  --vh: 1vh;
  --marker-stroke-width: 3px;
  --bubble-ring-width: 2px;
  --marker-ring-diameter: 28px;
}

/* Yolk inline vector icons - cross-platform emoji replacements */
i.yi {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
i.yi-egg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M12 3C8.68 3 6 7.58 6 13c0 3.31 2.69 6 6 6s6-2.69 6-6c0-5.42-2.68-10-6-10z'/%3E%3C/svg%3E"); }
i.yi-sparkle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM11.5 9.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z'/%3E%3C/svg%3E"); }
i.yi-gift { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-.86 0-1.64.37-2.18.97L12 3.88l-.82-.91C10.64 2.37 9.86 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 12 7.4l3.38 4.6L17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E"); }
i.yi-cake { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12c.01-1.66-1.33-3-2.99-3z'/%3E%3C/svg%3E"); }
i.yi-truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E"); }
i.yi-calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); }
i.yi-clipboard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E"); }
i.yi-map { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdd52d'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E"); }

/* --- Live UI Layering Styles --- */

/* This makes the main container a layout reference */
.combined-view-container {
    position: relative;
}

/* The map sits in the background, filling the whole space */
.map-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Sits behind the cards */
}

/* --- BASE & DOCUMENT LAYOUT --- */
html {
  font-size: 16px;
  height: 100%;
  background-color: var(--yolk-blue); /* Sets the overscroll/bounce color and bottom address bar to blue */
  scrollbar-width: none; /* Hide scrollbar but allow scrolling */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for webkit browsers while preserving scroll functionality */
html::-webkit-scrollbar {
  display: none;
}

/* --- REWARDS VIEW STYLES --- */
#rewards-view {
  width: 100vw;
  /* Full viewport height so SilverPay's fixed footer positions correctly */
  height: 100vh;
  height: 100dvh;
  background: white !important;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Iframe content will be padded to start below header */
  padding-top: calc(var(--header-height) + var(--safe-area-inset-top));
  box-sizing: border-box;
  z-index: 900;
}

/* Ensure header stays fixed on top when rewards view is active */
body.rewards-view-active header.tab-container {
  position: fixed;
  z-index: 1000;
}

/* --- ORDERING VIEW STYLES --- */
#ordering-view {
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--safe-area-inset-top));
  background: white !important; /* Force white background */
  overflow: hidden;
  position: relative;
  min-height: 400px; /* Ensure minimum height */
}

/* Force body background to white and hide overflow when rewards view is active */
body:has(#rewards-view[style*="display: block"]) {
  background-color: white !important;
  overflow: hidden !important;
  padding-top: 0 !important;
}

/* Force body background to white when ordering view is active */
body:has(#ordering-view[style*="display: block"]) {
  background-color: white !important;
}

/* Fallback for browsers that don't support :has() */
.rewards-view-active {
  background-color: white !important;
}

.ordering-view-active {
  background-color: white !important;
}

.rewards-container {
  width: 100%;
  height: 100%;
  background: white;
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.ordering-container {
  width: 100%;
  height: 100%;
  background: white;
  position: relative;
}

.rewards-iframe-full {
  width: 100% !important;
  height: 100% !important;
  border: none;
  background: white;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: auto;
  /* Iframe fills the padded container space below header */
}

/* In standalone mode, reduce iframe height so SilverPay's footer positions higher */
@media (display-mode: standalone) {
  .rewards-iframe-full {
    height: calc(100% - 80px) !important;
  }
}

/* Loading state for rewards iframe */
.rewards-iframe-full:not([src]) {
  background: white;
}

/* Ensure the iframe shows immediately when loaded */
.rewards-iframe-full[src] {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.ordering-iframe-full {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  display: block;
}

/* Loading state for ordering iframe */
.ordering-iframe-full:not([src]) {
  background: white;
}

/* Ensure the iframe shows immediately when loaded */
.ordering-iframe-full[src] {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}


.rewards-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 24px;
  text-align: center;
  z-index: 10;
}

.rewards-error .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.rewards-error h3 {
  color: var(--yolk-blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0 0 12px 0;
  font-size: 20px;
}

.rewards-error p {
  color: var(--yolk-gray);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  margin: 0 0 24px 0;
  max-width: 300px;
}

.rewards-external-btn {
  background: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rewards-external-btn:hover {
  background: #f0c41d;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* JavaScript will add .top-address-bar class for browsers with address bar at top */
html.top-address-bar {
  background-color: var(--yolk-yellow); /* Yellow for top address bar (matches header) */
}
/* --- Scrollbar Styles --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--yolk-blue-light); }
::-webkit-scrollbar-thumb { background-color: var(--yolk-yellow); border-radius: 4px; }

/* Enhanced scrollbar visibility for menu dropdowns */
.menu-dropdown-list::-webkit-scrollbar { width: 12px; }
.menu-dropdown-list::-webkit-scrollbar-track { 
  background: rgba(47, 47, 134, 0.3); 
  border-radius: 6px;
  border: 1px solid rgba(253, 213, 45, 0.2);
}
.menu-dropdown-list::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--yolk-yellow) 0%, #e6c040 100%); 
  border-radius: 6px;
  border: 1px solid rgba(47, 47, 134, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.menu-dropdown-list::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(180deg, #fff4a3 0%, var(--yolk-yellow) 100%); 
}

/* Firefox scrollbar styling will be added to existing .menu-dropdown-list rule */

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  background-color: var(--yolk-yellow); /* CORRECT: Fills the top notch/safe-area with yellow */
  padding-top: calc(var(--header-height) + var(--safe-area-inset-top));
  box-sizing: border-box;
  height: 100vh; /* ADDED: Ensures body uses full viewport height */
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for body while preserving scroll functionality */
body::-webkit-scrollbar {
  display: none;
}

/* Prevent background scrolling when dropdown is active */
body.dropdown-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

.app-wrapper {
    /* MODIFIED: Ensures this container uses the full screen height */
    height: calc(100vh - (var(--header-height) + var(--safe-area-inset-top)));
    display: flex;
    flex-direction: column;

    /* Original Properties */
    overflow: visible; /* Allow content to expand, but sections handle their own scrolling */
    position: relative;
    z-index: 1;
    background-color: var(--yolk-blue); /* Fixed: main background to dark blue */
}

body.promo-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.promo-active header.tab-container {
  display: none;
}


/* --- HEADER STYLES --- */
header.tab-container {
    background-color: var(--yolk-yellow);
    width: 100%;
    height: calc(var(--header-height) + var(--safe-area-inset-top));
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: box-shadow 0.2s ease-in-out, visibility 0.1s;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#app-menu-container,
#rewards-logo-button,
#scan-bill-button {
  pointer-events: auto;
}

.header-content-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    height: var(--header-height);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

.tab-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}
.tab-side.left { 
    left: calc(10px + env(safe-area-inset-left)); 
}
.tab-side.right { 
    right: calc(10px + env(safe-area-inset-right)); 
}

.center-logo-container {
    position: relative;
    top: 2px;
    z-index: 1001;
    pointer-events: none;
    grid-column: 2;
}

#rewards-logo-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}
#rewards-logo-button .rewards-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--yolk-yellow);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: -10px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}
#rewards-logo-button img {
    max-width: 80px;
    max-height: 68px;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease-in-out;
    margin-left: 4px;
}
#rewards-logo-button:active img { transform: scale(0.95); }

#app-menu-container, #scan-bill-button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--yolk-blue);
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

#app-menu-container { text-align: left; }
#scan-bill-button { text-align: right; }
/* Removed container-wide active animation to allow individual element animations */
#scan-bill-button svg { width: 22px; height: 22px; fill: currentColor; }

@keyframes jiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

#scan-bill-button svg.icon-animating { animation: jiggle 0.4s ease-in-out; }

/* --- VIEW CONTAINERS --- */
.view { 
  display: none; 
  box-sizing: border-box; 
  height: 100%; 
  width: 100%; 
}
.menu-state { display: none; }

.combined-view-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* --- Consolidated Locations Section --- */
.locations-section {
    position: relative;
    z-index: 2; /* Sits on top of the map */
    background-color: var(--yolk-blue-light);
    padding: 12px 4px; /* Tighter horizontal padding */
    box-sizing: border-box;
    transition: opacity 1.5s ease-in-out;
}

.locations-section.is-fading-out {
    opacity: 0;
    pointer-events: none;
}

/* Default Portrait/Mobile styles */
.locations-section {
    flex: 1;
    width: 100%;
    overflow-y: auto; /* Allow scrolling within the locations section only */
    -webkit-overflow-scrolling: touch;
}

/* --- FIX: Mobile Portrait Menu Full Width (ZERO PADDING) --- */
@media screen and (max-width: 767px) and (orientation: portrait) {

  /* This removes the padding from the main view container. */
  #menu-view {
    padding: 0;
  }

  /* This removes horizontal padding from the inner menu block
     while keeping the vertical padding and removing rounded corners. */
  #menu-illinois,
  #menu-indiana,
  #menu-texas,
  #menu-florida {
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Wider Desktop styles */
@media screen and (min-width: 1024px) {
    .locations-section {
        width: 40%;
    }
}

.map-section {
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
    background: #ddd;
    flex-shrink: 0;
    border-bottom: 2px solid var(--yolk-yellow);
    z-index: 900;
}

.map-controls {
    position: absolute;
    bottom: 25px;
    right: 10px;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    background: rgba(var(--yolk-yellow-rgb), 0.7);
    border: 2px solid var(--yolk-blue);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    opacity: 0.8;
}
.map-control-btn:hover { 
    background: rgba(var(--yolk-blue-rgb), 0.9); 
    transform: translateY(-1px); 
    box-shadow: 0 3px 6px rgba(0,0,0,0.3); 
    opacity: 1;
    border-color: var(--yolk-yellow);
}
.map-control-btn:hover svg { fill: var(--yolk-yellow); }
.map-control-btn:active { 
    transform: translateY(0); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.2); 
    background: rgba(var(--yolk-blue-rgb), 0.9);
    border-color: var(--yolk-yellow); 
}
.map-control-btn:active svg { fill: var(--yolk-yellow); }
.map-control-btn:not(:active):not(:hover) { 
    background: rgba(var(--yolk-yellow-rgb), 0.7) !important; 
}
.map-control-btn:not(:active):not(:hover) svg { 
    fill: var(--yolk-blue) !important; 
}
.map-control-btn svg { width: 18px; height: 18px; fill: var(--yolk-blue); transition: fill 0.2s ease; }
.map-control-btn.loading { background: rgba(var(--yolk-gray-rgb), 0.7); cursor: not-allowed; opacity: 0.6; }
.map-control-btn.loading svg { animation: spin 1s linear infinite; }
.map-control-btn:disabled { background-color: rgba(var(--yolk-gray-rgb), 0.5); border-color: #666; cursor: not-allowed; opacity: 0.4; }
.map-control-btn:disabled:hover { transform: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); background-color: rgba(var(--yolk-gray-rgb), 0.5); opacity: 0.4; }
.map-control-btn:disabled:hover svg { fill: var(--yolk-blue); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.map-control-btn.catering-zones-active { background: rgba(var(--yolk-blue-rgb), 0.85) !important; border-color: var(--yolk-yellow) !important; opacity: 1 !important; }
.map-control-btn.catering-zones-active svg { fill: var(--yolk-yellow) !important; }

/* --- Locations View Card Styles --- */
.market-area-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--yolk-yellow);
    margin: 20px 0 10px 0;
    text-align: center;
}
.location-card {
    background-color: var(--yolk-blue);
    border-radius: 8px;
    margin: 0 4px 8px 4px; /* Tighter spacing */
    padding: 16px;
    position: relative;
    overflow: hidden;
    color: var(--yolk-off-white);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
/* Order grid spans full card width below the info/actions row */
.location-card > .order-grid {
    flex-basis: 100%;
    margin-top: 4px;
}
.location-card.active {
    border-color: var(--yolk-yellow);
    box-shadow: 0 0 25px rgba(253, 213, 45, 0.7);
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.location-card, .il-menu-section { animation: fadeInUp 0.4s ease-out forwards; opacity: 0; }

/* Menu Section Layout */
.il-menu-section {
    margin-bottom: 16px;
    background-color: var(--yolk-blue-light);
    border-radius: 8px;
    padding: 0; /* No padding to ensure headers are flush */
}
.il-menu-section:last-child {
    margin-bottom: 0;
}
#status { text-align: center; color: var(--yolk-blue); padding: 20px; font-weight: 500; }

.il-menu-container,
.imgbox {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px 10px 10px; /* Remove top padding */
    box-sizing: border-box;
}

/* Menu view background should match main background */
#menu-view {
    background-color: var(--yolk-blue) !important;
    padding: 10px !important; /* Add padding back to show consistent background */
    margin: 0; /* Remove any margins */
    position: relative; /* Ensure proper stacking context for sticky headers */
    min-height: 100vh; /* Force menu to take full viewport height */
    z-index: 1; /* Ensure menu is above other elements */
}

#menu-texas, #menu-illinois, #menu-indiana, #menu-florida {
    min-height: 100vh;
    background: var(--yolk-blue);
    position: relative;
    z-index: 2;
}

.pdf-menu-container {
    background: var(--yolk-blue);
    min-height: 100vh;
    position: relative;
    z-index: 3;
}

.pdf-menu-container canvas {
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 4;
    touch-action: pinch-zoom; /* Allow pinch-to-zoom on PDFs */
}

/* Prevent zooming on app UI elements, allow only on menu view */
body, header, .tab-container, #locations-view {
    touch-action: pan-y pan-x;
}

/* Allow full touch interactions in rewards view for iframe buttons */
body.rewards-view-active,
body.rewards-view-active #rewards-view,
body.rewards-view-active .rewards-iframe-full,
body.rewards-view-active iframe {
    touch-action: auto !important;
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

/* Allow zooming on menu containers */
#menu-view {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    touch-action: pinch-zoom pan-y pan-x;
}

#menu-texas, #menu-illinois, #menu-indiana, #menu-florida, #menu-oakpark {
    position: relative;
    touch-action: pinch-zoom pan-y pan-x;
    min-width: 100%;
    display: inline-block;
}

/* On mobile, PDFs should take full width */
@media (max-width: 768px) {
    /* Remove ALL padding and margins to allow full-width PDFs */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .app-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    #menu-view {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
    }

    #menu-texas, #menu-illinois, #menu-indiana, #menu-florida, #menu-oakpark {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #menu-texas, #menu-illinois, #menu-indiana, #menu-florida, #menu-oakpark {
        background: transparent !important; /* Remove blue background on mobile */
    }

    .pdf-menu-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: transparent !important; /* Remove blue background on mobile */
    }

    .pdf-menu-container canvas {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Force full width for all PDF container children */
    .pdf-menu-container > div {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* PDF.js text layer for selectable text */
.textLayer {
    position: absolute;
    text-align: initial;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 1;
    line-height: 1.0;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
    forced-color-adjust: none;
    transform-origin: 0% 0%;
    z-index: 5;
    pointer-events: auto;
}

.textLayer span,
.textLayer br {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

.textLayer span.markedContent {
    top: 0;
    height: 0;
}

.textLayer .highlight {
    margin: -1px;
    padding: 1px;
    background-color: rgba(180, 0, 170, 1);
    border-radius: 4px;
}

.textLayer .highlight.appended {
    position: initial;
}

.textLayer .highlight.begin {
    border-radius: 4px 0 0 4px;
}

.textLayer .highlight.end {
    border-radius: 0 4px 4px 0;
}

.textLayer .highlight.middle {
    border-radius: 0;
}

.textLayer .highlight.selected {
    background-color: rgba(0, 100, 0, 1);
}

.textLayer ::selection {
    background: rgba(0, 100, 255, 0.3);
}

.textLayer br::selection {
    background: transparent;
}

.textLayer .endOfContent {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    right: 0;
    bottom: 0;
    z-index: -1;
    cursor: default;
    user-select: none;
}

.textLayer .endOfContent.active {
    top: 0;
}


.card-main-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    min-width: 0;
}
.card-main-info h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--yolk-off-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-main-info .address-text,
.card-main-info .location-status-line,
.card-main-info .location-phone-number {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.9;
}
.location-phone-number a {
    color: var(--yolk-yellow);
    text-decoration: none;
}
.location-phone-number a:hover {
    text-decoration: underline;
}
.phone-anim-target .anim-char {
    display: inline-block;
    transition: color 0.2s ease;
}
.phone-anim-target .anim-char.pop {
    animation: pop-char 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes pop-char {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6) rotate(-10deg); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.card-actions-and-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}
.card-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.fav-star-container, .info-icon-button {
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-star-container:active, .info-icon-button:active {
    transform: scale(0.9);
}
.fav-star {
    font-size: 28px;
    line-height: 1;
    color: transparent;
    opacity: 0.6;
    text-shadow: 0 0 0 rgba(251, 247, 234, 0.7);
    transition: all 0.2s ease-in-out;
}
.fav-star-container:hover .fav-star {
    opacity: 1;
    text-shadow: 0 0 0 white;
}
.fav-star.is-favorite {
    color: var(--yolk-yellow);
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--yolk-yellow));
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.info-icon-button svg {
    width: 28px;
    height: 28px;
    fill: var(--yolk-yellow);
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: opacity 0.2s ease;
}
.info-icon-button:hover svg {
    opacity: 1;
}
.estimates-wrapper {
    position: relative;
    min-height: 50px;
    width: 130px;
}
.waitlist-estimates-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.estimate-value { font-weight: 800; color: var(--yolk-yellow); font-size: 1rem; line-height: 1.2; }
.estimate-label { font-size: 0.75rem; font-weight: 500; opacity: 0.9; margin-top: 4px; line-height: 1.2; }
.card-bottom-actions {
    margin-top: 8px;
}
.action-button.primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
    border: 2px solid var(--yolk-yellow);
}
.action-button.primary:active { transform: scale(0.95); box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Secondary (outline) style for catering buttons */
.action-button.secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    background-color: transparent;
    color: var(--yolk-yellow);
    border: 2px solid var(--yolk-yellow);
}
.action-button.secondary:active { transform: scale(0.95); box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* 2x2 order button grid */
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}
.order-grid .action-button {
    font-size: 0.75rem;
    padding: 6px 8px;
    height: 34px;
    white-space: nowrap;
}

/* Modal order grid */
.modal-order-grid {
    width: 100%;
}
.modal-order-grid .modal-button {
    font-size: 0.8rem;
    padding: 8px 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.styled-modal-overlay .modal-button.secondary {
    background-color: transparent;
    color: var(--yolk-yellow);
    border: 2px solid var(--yolk-yellow);
}

.locations-list-footer {
    text-align: center;
    padding: 24px 16px 16px;
    color: var(--yolk-off-white);
    opacity: 0.8;
}
.locations-list-footer p {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 16px 0;
}
.back-to-top-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--yolk-blue);
    background-color: var(--yolk-yellow);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}
.back-to-top-button:active {
    transform: scale(0.95);
}


/* --- MENUS, MODALS, DRAWER, etc. --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

#app-menu-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--yolk-blue);
    max-width: calc(50vw - 80px); /* Leave more space for dropdown arrow and REWARDS button */
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: opacity 0.3s ease;
}


.hamburger-icon-wrapper { display: flex; align-items: center; height: 100%; width: 20px; transition: transform 0.15s ease-out; }
.hamburger-icon { display: inline-flex; flex-direction: column; gap: 4px; transition: transform 0.3s ease; }
.hamburger-icon span { background: var(--yolk-blue); height: 2px; width: 18px; border-radius: 1px; }

#app-menu-label { transition: transform 0.15s ease-out; }

/* Click scale animations - smoother and less abrupt */
.hamburger-icon-wrapper:active { transform: scale(0.95); }
#app-menu-label:active { transform: scale(0.97); }

/* Hamburger animation */
.hamburger-icon-wrapper.active .hamburger-icon { transform: rotate(180deg); }

.menu-dropdown-list {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-area-inset-top) + 2px);
    left: 8px; /* Align to left edge near hamburger icon */
    background-color: rgba(47, 47, 134, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--yolk-yellow);
    border-radius: 12px;
    padding: 10px;
    z-index: 999; /* Above map but below logo (1001) */
    width: fit-content;
    max-width: 300px;
    min-width: 250px;
    max-height: calc(100vh - var(--header-height, 58px) - var(--rewards-bar-height, 48px) - var(--safe-area-inset-top, 0px) - var(--safe-area-inset-bottom, 0px) - 80px);
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.2s ease-out, visibility 0s 0.2s, transform 0.2s ease-out;
    touch-action: pan-y;
    pointer-events: none; /* No interaction when hidden */
    /* Enhanced Firefox scrollbar visibility */
    scrollbar-width: auto;
    scrollbar-color: var(--yolk-yellow) rgba(47, 47, 134, 0.3);
    /* Force vertical stacking */
    display: flex !important;
    flex-direction: column !important;
}

@media screen and (min-width: 768px) {
    .menu-dropdown-list {
        max-width: none;
    }
}

.menu-dropdown-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when shown */
    transition: opacity 0.2s ease-out, visibility 0s 0s, transform 0.2s ease-out;
}

/* Force category dropdown to have exact same styling as main menu */
#category-dropdown {
    position: fixed !important;
    top: calc(var(--header-height) + var(--safe-area-inset-top) + 2px) !important;
    background-color: rgba(47, 47, 134, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 2px solid var(--yolk-yellow) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    z-index: 999 !important;
    width: fit-content !important;
    max-width: 300px !important;
    max-height: calc((var(--vh, 1vh) * 100) - var(--header-height) - var(--rewards-bar-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom) - 20px) !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-20px) !important;
    transition: all 0.2s ease-out, visibility 0s 0.2s !important;
    touch-action: pan-y !important;
    pointer-events: auto !important;
    scrollbar-width: auto !important;
    scrollbar-color: var(--yolk-yellow) rgba(47, 47, 134, 0.3) !important;
}

#category-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.2s ease-out, visibility 0s 0s !important;
}
.menu-dropdown-item {
    display: flex; align-items: center; justify-content: space-between; padding: 14px; color: var(--yolk-off-white);
    text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1.1rem;
    border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease; cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    width: 100%; /* Take full width of container */
    box-sizing: border-box;
    min-height: 50px; /* Minimum height for touch targets */
}
.menu-item-text { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

/* Make install app icon consistent with emoji size */
.install-app-icon { 
  width: 24px; 
  height: 24px; 
  margin: 0; 
  flex-shrink: 0;
}

/* Style bullet points in category dropdown */
.category-bullet {
    color: var(--yolk-yellow);
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 8px;
}

/* Separator between categories and regular menu items */
.menu-dropdown-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 14px;
    border: none;
}
.menu-dropdown-item:hover { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
body.is-pwa #menu-item-install, #menu-item-install:not(.show-install-button):not(.prompt-available) { display: none !important; }
.menu-dropdown-list #menu-item-install.prompt-available,
.menu-dropdown-list #menu-item-install.show-install-button {
    display: flex !important; background-color: var(--yolk-yellow); color: var(--yolk-blue);
    filter: drop-shadow(0 0 6px var(--yolk-yellow));
}
#app-version-display { font-size: 0.75rem; color: var(--yolk-gray); text-align: center; padding-top: 8px; padding-bottom: 8px; cursor: default; }
.app-icon-style { border-radius: 15%; box-shadow: 0 0 5px var(--yolk-yellow), 0 3px 6px rgba(0,0,0,0.4); border: 1px solid rgba(253, 213, 45, 0.7); }
.install-app-icon { 
  width: 24px; 
  height: 24px; 
  margin: 0; 
  vertical-align: middle; 
}

/* Menu View Styles */
.menu-content-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 10px;
}
.menu-market-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--yolk-yellow);
    text-align: center;
    padding: 0 0 20px 0; /* Remove top padding completely */
    margin-top: 20px; /* Push down to clear the hanging logo */
}
.il-section-header {
    position: relative;
    z-index: 100;
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
    padding: 12px 16px 12px 24px;
    margin-bottom: 0; /* Remove margin to reduce total height */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color .2s ease-in-out;
    /* Ensure headers stack properly and don't overlap */
    border-bottom: 1px solid var(--yolk-blue-light);
}

/* Clean spacing - removed excessive margins */
.il-section-header.active-tutorial { background-color: #ffe066; }
.category-dropdown-icon { transition: transform 0.3s ease; transform: rotate(0deg); width: 24px; height: 24px; fill: var(--yolk-blue); }

/* CORRECTED/DE-MINIFIED MENU STYLES */
.il-section-content {
    padding: 16px; /* Normal padding */
    background-color: var(--yolk-blue-light);
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    color: var(--yolk-off-white);
}

/* Make original category headers sticky */
.il-subcategory-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-yellow);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--yolk-blue-light);
    margin: 16px 0;
}
.il-section-options {
    font-size: .875rem;
    font-style: italic;
    opacity: .8;
    padding: 5px 0;
    line-height: 1.5;
}
.il-section-options-bold {
    font-size: .875rem;
    font-weight: 400;
    font-style: normal;
    color: var(--yolk-off-white);
    opacity: .8;
    padding: 5px 0;
    line-height: 1.5;
}
.il-build-your-own-options {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    line-height: 1.5;
    margin-top: 16px;
}
.il-build-your-own-options strong {
    font-weight: 700;
}
.il-menu-item {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    user-select: text;
    -webkit-user-select: text;
}
.il-menu-item-details {
    flex-grow: 1;
}
.il-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-off-white);
    display: inline;
}
.il-item-price {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    font-weight: 400;
    flex-shrink: 0;
    text-align: right;
}
.il-item-desc {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    margin-top: 5px;
    line-height: 1.5;
}
.il-item-name::before {
    font-size: 1em;
    margin-right: 8px;
    color: var(--yolk-off-white);
}
.coffee-dish::before { content:'☕'; }
.tea-dish::before { content:'🍵'; }
.juice-dish::before { content:'🍹'; }
.egg-dish::before { content:'🥚'; }
.sweet-dish::before { content:'🥞'; }
.healthy-dish::before { content:'🥗'; }
.kids-dish::before { content:'👦👧'; }
.burger-dish::before { content:'🍔'; }
.sandwich-dish::before { content:'🥪'; }
.hotdog-dish::before { content:'🌭'; }
.burrito-dish::before { content:'🌯'; }
.poultry-dish::before { content:'🍗'; }
.french-fries-dish::before { content:'🍟'; }
.bagel-dish::before { content:'🥯'; }
.bread-dish::before { content:'🍞'; }
.fruit-dish::before { content:'🍊'; }
.bacon-dish::before { content:'🥓'; }
.pastry-dish::before { content:'🥐'; }
.pasta-dish::before { content:'🍝'; }
.avocado-dish::before { content:'🥑'; }
.meat-dish::before { content:'🥩'; }
.waffle-dish::before { content:'🧇'; }
.bowl-dish::before { content:'🥣'; }
.sparkle-dish::before { content:'✨'; }
.juice-box-dish::before { content:'🧃'; }
.lemon-dish::before { content:'🍋'; }
.milk-dish::before { content:'🥛'; }
.chocolate-dish::before { content:'🍫'; }
.cup-straw-dish::before { content:'🥤'; }
.apple-dish::before { content:'🍎'; }
.blueberry-dish::before { content:'🫐'; }
.maple-leaf-dish::before { content:'🍁'; }
.il-footer-note {
    font-size: .8rem;
    color: var(--yolk-off-white);
    text-align: center;
    padding: 15px;
    line-height: 1.4;
    background-color: var(--yolk-blue-light);
    margin-top: 20px;
    border-radius: 8px;
}
.imgbox {
    display: grid;
    padding: 12px;
    gap: 12px;
    box-sizing: border-box;
}
.center-fit {
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
}
.menu-selector-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 300px;
    margin: 20px auto;
    background-color: var(--yolk-blue-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.menu-state-button {
    font-family: 'Montserrat',sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--yolk-yellow);
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
    cursor: pointer;
    transition: all .2s ease-in-out;
}
.menu-state-button:hover {
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
}
.menu-state-button:active {
    transform: scale(.98);
}
.menu-state-button.menu-subgroup {
    margin-left: 24px;
    font-size: 0.9rem;
    padding: 10px 18px;
}

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: calc(var(--vh, 1vh) * 100); background: rgba(0, 0, 0, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; padding: 10px; box-sizing: border-box; }

/* Override for promo modal to have solid yolk-blue background */
#promo-modal.modal-overlay { background: var(--yolk-blue) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important; }
/* QR scanner modal should fill entire viewport */
#qr-scanner-modal.modal-overlay { padding: 0 !important; align-items: stretch !important; justify-content: stretch !important; }
#favorite-confirmation-modal { background: rgba(0, 0, 0, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
#favoriteModal .modal-content strong,
#favorite-confirmation-modal .modal-content strong {
  color: var(--yolk-yellow);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { position: relative; background: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); padding: clamp(16px, 3vw, 24px); border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, .3); text-align: center; width: min(700px, 90vw); max-height: calc(var(--vh, 1vh) * 85); overflow-y: auto; box-sizing: border-box; transition: width 0.3s ease, height 0.3s ease; }
.modal-overlay.styled-modal-overlay .modal-content { background-color: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .modal-close-x { color: var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .modal-button.primary { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
.modal-overlay.styled-modal-overlay .modal-button.secondary { background-color: transparent; color: var(--yolk-yellow); border-color: var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .map-choice-button { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
.modal-overlay.styled-modal-overlay hr { border-color: rgba(253, 213, 45, 0.3); }
.modal-overlay.styled-modal-overlay b, .modal-overlay.styled-modal-overlay strong { color: var(--yolk-yellow); }

/* CORRECTED/DE-MINIFIED MODAL STYLES */
.modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    font-size: 1.25rem;
}
.modal-content p {
    margin: 16px 0;
    line-height: 1.5;
    font-size: .95rem;
}
.modal-content strong {
    color: var(--yolk-blue-light);
}
.modal-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.modal-button {
    font-family: 'Montserrat', sans-serif;
    font-size: .875rem;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    transition: all .2s ease-in-out;
    border: 2px solid var(--yolk-blue);
    cursor: pointer;
}
.modal-button.primary {
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
}
.modal-button.secondary {
    background-color: transparent;
    color: var(--yolk-blue);
}
.modal-button:active {
    transform: scale(.95);
}
.modal-close-x {
    position: fixed !important;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yolk-yellow);
    opacity: .9;
    cursor: pointer;
    z-index: 10001;
    transition: opacity .2s, transform .2s;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    background: rgba(47, 47, 134, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(253, 213, 45, 0.3);
}
.modal-close-x:hover {
    opacity: 1;
    transform: scale(1.1);
}
#location-update-modal p:last-of-type {
    font-size: .8rem;
    opacity: .8;
    margin-top: 20px;
}
.map-choice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--yolk-blue);
    cursor: pointer;
    transition: all .2s ease-in-out;
    text-decoration: none;
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
}
.map-choice-button:active {
    transform: scale(.98);
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
}
.map-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
    transition: all 0.2s ease-in-out;
}
.map-choice-button:hover .map-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--yolk-yellow));
}
.modal-actions.horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

#location-info-modal .modal-content { text-align: left; }
#location-info-modal .modal-scroll-content { padding: 0 16px 24px 16px; }
#location-info-modal h3 { text-align: center; padding: 24px 0 0 0; }
#location-info-modal .modal-info-detail { padding: 4px 0; }
#location-info-modal #modal-info-phone a { color: var(--yolk-yellow); text-decoration: underline; }
#location-info-modal hr { border: 0; height: 1px; margin: 16px 0; background-color: rgba(253, 213, 45, 0.3); }
.modal-info-waitlist-title { font-family: 'Montserrat', sans-serif; font-weight: 600; text-align: center; margin-bottom: 12px; font-size: 1rem; }
/* Removed old modal-info-waitlist-estimates definition - see updated version below */
.modal-waitlist-item { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.modal-waitlist-label { font-size: 0.8rem; opacity: 0.8; }
.modal-waitlist-value { font-weight: 700; font-size: 1.1rem; color: var(--yolk-yellow); }
#hours-details { border: 1px solid rgba(253, 213, 45, 0.3); border-radius: 8px; margin: 8px 0; }
.hours-details { border: 1px solid rgba(253, 213, 45, 0.3); border-radius: 8px; margin: 8px 0; position: relative; }
.hours-summary { padding: 12px; font-weight: 600; cursor: pointer; position: relative; list-style: none; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.hours-summary::-webkit-details-marker { display: none; }
.hours-details[open] .hours-summary::after { transform: translateY(-50%) rotate(180deg); }
/* Removed conflicting hours-dropdown-content definition - using the animated version below */
.hours-dropdown-content div { display: flex; justify-content: space-between; padding: 2px 0; }
#modal-info-patio { display: flex; align-items: center; }
#modal-info-patio .patio-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }

/* Delivery Address Modal */
#delivery-address-modal .modal-content { text-align: left; max-width: 420px; }
#delivery-address-modal h3 { text-align: center; }
#delivery-address-modal .modal-info-detail { text-align: center; font-size: 0.85rem; opacity: 0.8; }
.delivery-address-form { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.delivery-address-form input {
  width: 100%; box-sizing: border-box;
  font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
  padding: 12px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); color: var(--yolk-off-white);
  border: 1.5px solid rgba(253, 213, 45, 0.4);
  outline: none; transition: border-color 0.2s;
}
.delivery-address-form input:focus { border-color: var(--yolk-yellow); }
.delivery-address-form input::placeholder { color: rgba(255, 250, 237, 0.4); }
.delivery-datetime-row { display: flex; gap: 10px; }
.delivery-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.delivery-field label {
  font-size: 0.75rem; font-weight: 600; color: var(--yolk-yellow); opacity: 0.8;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.delivery-field input[type="date"],
.delivery-field select {
  width: 100%; box-sizing: border-box;
  font-family: 'Montserrat', sans-serif; font-size: 0.85rem;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); color: var(--yolk-off-white);
  border: 1.5px solid rgba(253, 213, 45, 0.4);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
}
.delivery-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fdd52d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px;
  padding-right: 32px; cursor: pointer;
}
.delivery-field select option { background: #1a2744; color: var(--yolk-off-white); }
.delivery-field input[type="date"]:focus,
.delivery-field select:focus { border-color: var(--yolk-yellow); }
.delivery-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(5deg); cursor: pointer; opacity: 0.8;
}
.delivery-field input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: var(--yolk-off-white); }
.delivery-field input[type="date"]::-webkit-datetime-edit-day-field:focus,
.delivery-field input[type="date"]::-webkit-datetime-edit-month-field:focus,
.delivery-field input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: var(--yolk-yellow); color: var(--yolk-blue); border-radius: 2px;
}
.delivery-field select:disabled { opacity: 0.4; cursor: not-allowed; }
#delivery-address-preview { margin: 4px 0 8px; padding: 10px 14px; border-radius: 8px; background: rgba(253, 213, 45, 0.1); border: 1px solid rgba(253, 213, 45, 0.25); }
#delivery-address-display { font-size: 0.85rem; margin: 0; color: var(--yolk-yellow); line-height: 1.4; }
#delivery-address-submit:disabled { opacity: 0.4; cursor: not-allowed; }
/* Google Places Autocomplete dropdown override */
.delivery-schedule-hint { font-size: 0.75rem; margin: 2px 0 0; text-align: center; transition: color 0.2s; }

.pac-container { z-index: 100000 !important; background: rgba(26, 26, 74, 0.4) !important; backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important; border: 1.5px solid rgba(253, 213, 45, 0.35) !important; border-radius: 8px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important; margin-top: 4px !important; font-family: 'Montserrat', sans-serif !important; }
.pac-item { color: #ddd !important; border-top: 1px solid rgba(253,213,45,0.1) !important; padding: 8px 12px !important; cursor: pointer !important; font-size: 0.85rem !important; background: transparent !important; }
.pac-item:first-child { border-top: none !important; }
.pac-item:hover, .pac-item-selected { background: rgba(253,213,45,0.12) !important; }
.pac-item-query { color: var(--yolk-off-white) !important; font-weight: 600 !important; }
.pac-icon { display: none !important; }
.pac-matched { color: var(--yolk-yellow) !important; }

/* QR Scanner Modal */
body.qr-scanner-active #rewards-location-bar,
body.qr-scanner-active header.tab-container { display: none; }
#qr-scanner-modal { background: black; top: 0; left: 0; width: 100vw; height: 100vh; height: calc(var(--vh) * 100); padding: 0; }
#qr-scanner-modal .modal-content { all: unset; position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100vw !important; height: 100vh !important; height: calc(var(--vh, 1vh) * 100) !important; max-width: 100vw !important; display: flex; flex-direction: column; }
#qr-scanner-modal .qr-scanner-content { display: flex; flex-direction: column; gap: 0; width: 100%; height: 100%; box-sizing: border-box; position: relative; }

#qr-scanner-modal .qr-left-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    overflow: hidden;
    z-index: 1;
}

/* QR Scanner overlay with corner indicators */
#qr-scanner-modal .qr-scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

#qr-scanner-modal .qr-scanner-viewfinder {
    width: min(50vmin, 200px);
    height: min(50vmin, 200px);
    position: relative;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Four corner indicators */
#qr-scanner-modal .qr-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--yolk-yellow);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(253, 213, 45, 0.4);
}

#qr-scanner-modal .qr-corner.top-left {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 12px;
}

#qr-scanner-modal .qr-corner.top-right {
    top: -4px;
    right: -4px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 12px;
}

#qr-scanner-modal .qr-corner.bottom-left {
    bottom: -4px;
    left: -4px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 12px;
}

#qr-scanner-modal .qr-corner.bottom-right {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 12px;
}

/* QR code detected highlight effect */
#qr-scanner-modal .qr-scanner-viewfinder.qr-detected {
    box-shadow: 0 0 0 4px var(--yolk-yellow), 0 0 20px rgba(253, 213, 45, 0.6);
    transform: scale(1.05);
}

#qr-scanner-modal .qr-scanner-viewfinder.qr-detected .qr-corner {
    border-color: #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
}

#qr-scanner-modal .qr-right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.75);
    padding-bottom: calc(var(--safe-area-inset-bottom) + 20px);
    min-height: 160px;
    z-index: 10;
    backdrop-filter: blur(4px);
}
#qr-scanner-modal #qr-reader { width: 100%; height: 100%; overflow: hidden; }
#qr-scanner-modal #qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
#qr-scanner-modal .modal-close-x { color: var(--yolk-yellow); position: absolute; top: calc(var(--safe-area-inset-top) + 10px); right: 15px; font-size: 2.5rem; text-shadow: 0 0 5px black; z-index: 20; }
#qr-scanner-modal h3 { color: var(--yolk-off-white); font-size: 1rem; margin: 0; line-height: 1.4; }
#qr-scanner-modal .modal-actions { margin-top: 16px; }
#qr-scanner-modal #modal-qr-cancel { background-color: var(--yolk-off-white); color: var(--yolk-blue); border-color: var(--yolk-off-white); }

/* Landscape mode layout */
@media screen and (orientation: landscape) and (min-height: 300px) {
    #qr-scanner-modal .qr-scanner-viewfinder {
        /* Move viewfinder to the left to avoid overlap */
        margin-left: -100px;
    }

    #qr-scanner-modal .qr-right-panel {
        position: absolute;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
        left: auto;
        width: 240px;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(4px);
        border-radius: 12px;
        padding: 12px;
        min-height: auto;
        gap: 12px;
    }

    #qr-scanner-modal .qr-right-panel h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 0;
    }

    #qr-scanner-modal .qr-right-panel .modal-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Hide HTML5QrCode visual overlay corners only - keep detection functional */
#qr-scanner-modal #qr-reader div[style*="position: absolute"][style*="border"] {
    border: none !important;
    background: transparent !important;
}

/* Ensure video stream is properly displayed */
#qr-scanner-modal #qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 1501;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    -webkit-mask-image: linear-gradient(to top, transparent 0, transparent var(--rewards-bar-height), black var(--rewards-bar-height));
    mask-image: linear-gradient(to top, transparent 0, transparent var(--rewards-bar-height), black var(--rewards-bar-height));
}
.drawer-overlay.show{opacity:1;visibility:visible}
#drawer-container { position: fixed; top: calc(var(--header-height) + var(--safe-area-inset-top) + 20px); bottom: var(--rewards-bar-height); left: 0; right: 0; z-index: 1502; max-width: 860px; margin: 0 auto; height: auto; overflow: hidden; pointer-events: none; }
#location-selector-drawer{ position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background-color:var(--yolk-off-white); color:var(--yolk-blue); border-top-left-radius:16px; border-top-right-radius:16px; display:flex; flex-direction:column; transform: translateY(100%); transition:transform .4s ease-out; pointer-events: auto; }
#location-selector-drawer.show{ transform: translateY(0); }
.drawer-header {
    padding:16px;
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:1.1rem;
    text-align:center;
    border-bottom:1px solid #ddd;
    flex-shrink: 0;
}
.drawer-location-list {
    overflow-y:auto;
    padding:8px;
}
.drawer-location-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border-radius:8px;
    cursor:pointer;
    transition:background-color .2s ease;
}
.drawer-location-item:hover {
    background-color:#e0e0e0;
}
.drawer-item-state {
    flex:0 0 25px;
    font-weight:700;
    color:var(--yolk-gray);
}
.drawer-item-name {
    flex-grow:1;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.drawer-item-distance {
    font-size:.8rem;
    opacity:.8;
    padding-left:10px;
}
.active-checkmark {
    font-weight:700;
    color:var(--yolk-yellow);
}
.drawer-location-item.active {
    background-color:var(--yolk-blue-light);
    color:var(--yolk-off-white);
}
.drawer-location-item.active .drawer-item-state {
    color:var(--yolk-yellow);
}

/* Special Modal Styles */
.modal-app-icon { width: 60px; height: 60px; }
#rewards-info-modal.modal-overlay, #member-promos-modal.modal-overlay, #install-instructions-modal.modal-overlay { align-items: flex-start; padding-top: calc(var(--header-height) + var(--safe-area-inset-top) + 20px); padding-bottom: calc(var(--rewards-bar-height) + var(--safe-area-inset-bottom) + 20px); background: rgba(0, 0, 0, 0.3) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Ensure all modal overlays have dark transparent background - EXCEPT promo modal */
#location-info-modal.modal-overlay,
#directions-modal.modal-overlay,
.modal-overlay.show:not(#promo-modal) { background: rgba(0, 0, 0, 0.3) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Promo modal overlay with neutral background - favicon backgrounds are handled in ::before elements */
#promo-modal.modal-overlay {
  background: var(--yolk-blue) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Promo modal content should be transparent to allow child elements to control their own backgrounds */
#promo-modal .modal-content {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#rewards-info-modal .modal-content { background-color: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); text-align: left; max-height: calc((var(--vh, 1vh) * 100) - (var(--header-height) + var(--safe-area-inset-top)) - (var(--rewards-bar-height) + var(--safe-area-inset-bottom)) - 40px); width: min(700px, 90vw); padding: 0; display: flex; flex-direction: column; }
#rewards-info-modal .modal-close-x { color: var(--yolk-yellow); z-index: 1; }
#rewards-info-modal .modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
#rewards-info-modal h3 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#rewards-info-modal hr { border: 0; height: 1px; background-color: rgba(253, 213, 45, 0.3); margin: 16px 0; }
#rewards-info-modal b { font-weight: 800; color: var(--yolk-yellow); }
#rewards-info-modal p { color: var(--yolk-off-white); }
#rewards-info-modal .rewards-tier { display: flex; align-items: flex-start; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(253, 213, 45, 0.2); }
#rewards-info-modal .rewards-tier:last-child { border-bottom: none; }
#rewards-info-modal .rewards-tier-content { flex-grow: 1; }
#rewards-info-modal .rewards-tier-star { flex-shrink: 0; width: 24px; height: 24px; fill: var(--yolk-yellow); filter: drop-shadow(0 0 5px var(--yolk-yellow)); margin-top: 4px; }
#rewards-info-modal .modal-button.primary { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
#rewards-info-modal .fine-print { font-size: 0.8rem; opacity: 0.8; font-style: italic; margin-top: 8px; }
#member-promos-modal .modal-content { background-color: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); text-align: left; max-height: calc((var(--vh, 1vh) * 100) - (var(--header-height) + var(--safe-area-inset-top)) - (var(--rewards-bar-height) + var(--safe-area-inset-bottom)) - 40px); width: min(700px, 90vw); padding: 0; display: flex; flex-direction: column; }
#member-promos-modal .modal-close-x { color: var(--yolk-yellow); z-index: 1; }
#member-promos-modal .modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
#member-promos-modal h3 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#member-promos-modal hr { border: 0; height: 1px; background-color: rgba(253, 213, 45, 0.3); margin: 16px 0; }
#member-promos-modal b { font-weight: 800; color: var(--yolk-yellow); }
#member-promos-modal p { color: var(--yolk-off-white); }
#member-promos-modal .modal-button.primary { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
#member-promos-modal .fine-print { font-size: 0.8rem; opacity: 0.8; font-style: italic; margin-top: 8px; }
#member-promos-modal .promo-icon { vertical-align: middle; margin: 0 8px; width: 40px; height: 40px; }
#install-instructions-modal .modal-content { background: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); max-height: calc((var(--vh, 1vh) * 100) - (var(--header-height) + var(--safe-area-inset-top)) - (var(--rewards-bar-height) + var(--safe-area-inset-bottom)) - 40px); width: min(700px, 90vw); padding: 0; display: flex; flex-direction: column; }
#install-instructions-modal .modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
#install-instructions-modal .modal-close-x { color: var(--yolk-yellow); }
#install-instructions-modal h3 { color: var(--yolk-off-white); text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
#install-instructions-modal p { color: var(--yolk-off-white); text-align: left; margin-bottom: 12px; }
#install-instructions-modal strong { color: var(--yolk-yellow); }
#install-instructions-modal .ios-share-icon { width: 20px; height: 26px; vertical-align: middle; margin: 0 4px; }
#install-instructions-modal ol { color: var(--yolk-off-white); text-align: left; margin: 12px 0; padding-left: 24px; }
#install-instructions-modal ol li { margin-bottom: 8px; line-height: 1.5; }
#install-instructions-modal ul { color: var(--yolk-off-white); text-align: left; margin: 12px 0; padding-left: 24px; }
#install-instructions-modal ul li { margin-bottom: 6px; line-height: 1.5; }
#install-instructions-modal code { background-color: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; font-family: monospace; color: var(--yolk-yellow); }
#modal-install-ok { background-color: var(--yolk-yellow); color: var(--yolk-blue); }

/* Landscape mode - wider modals to use horizontal space better - 80vw (10% margin on each side) */
@media screen and (orientation: landscape) {
    /* Default: modals should have reasonable max width in landscape */
    .modal-overlay .modal-content {
        width: min(700px, 90vw) !important;
    }

    /* Content-heavy modals should also have reasonable max width */
    #rewards-info-modal .modal-content,
    #member-promos-modal .modal-content {
        width: min(700px, 90vw) !important;
    }
}

/* --- PROMO SPLASH --- */
#promo-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--yolk-blue);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#promo-splash.hidden {
  opacity: 0;
  pointer-events: none;
}
#promo-splash img {
  max-width: 394px;
  opacity: 0;
  animation: fadeInLogo 2.5s ease-in-out forwards;
  animation-delay: 0.5s;
}
@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- PROMO MODAL --- */
#promo-modal {
  /* Added flex properties to correctly center the content */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Original properties */
  z-index: 10000; 
  background: var(--yolk-blue) !important; 
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer; 
  transition: background-color 0.3s ease; 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  height: 100%; 
  width: 100%; 
}

/* Second promo modal with blurred favicon + yolk-blue background */
#promo-modal.phase-two { 
  background: var(--yolk-blue) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Default favicon background for all promo modals */
#promo-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(47, 47, 134, 0.6) 0%, rgba(47, 47, 134, 0.6) 100%),
    url('/favicon.png');
  background-size:
    100% 100%,
    100% auto;
  background-position:
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat;
  opacity: 0.6;
  filter: blur(26px);
  z-index: -1;
  transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}


/* Responsive favicon sizing - always fill width for all orientations */
@media screen and (orientation: portrait) {
  #promo-modal::before {
    background-size:
      100% 100%,    /* yolk-blue gradient fills entire area */
      100% auto;    /* favicon fills width, height auto */
  }
}

@media screen and (orientation: landscape) {
  #promo-modal::before {
    background-size:
      100% 100%,    /* yolk-blue gradient fills entire area */
      100% auto;    /* favicon fills width, height auto */
  }
}
.promo-content { text-align: center; color: var(--yolk-yellow); font-family: 'Montserrat', sans-serif; opacity: 0; transition: opacity 1.8s ease; cursor: default; }
#promo-modal.show .promo-content { opacity: 1; }
.promo-content-phase1 {
  background-color: transparent;
  border-radius: 12px;
  padding: 24px;
  margin: 20px;
}
.promo-content-phase1 h1 { font-size: 14vw; font-weight: 800; text-shadow: 0 3px 8px rgba(0,0,0,0.5); margin: 0; line-height: 1; }
.promo-content-phase2 { position: relative; display: flex; flex-direction: column; justify-content: space-between; background-color: rgba(47, 47, 134, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--yolk-yellow); border-radius: 12px; padding: clamp(16px, 3vw, 24px); width: min(700px, 90vw); min-height: clamp(250px, 40vh, 400px); max-height: calc(var(--vh, 1vh) * 85); overflow-y: auto; box-sizing: border-box; transition: width 0.3s ease, height 0.3s ease; }
.promo-content-phase2 .modal-close-x { position: absolute; top: 8px; right: 12px; color: var(--yolk-yellow); }
.promo-content-phase2 p { color: var(--yolk-off-white); font-family: 'Open Sans', sans-serif; font-size: 1rem; line-height: 1.5; }
.promo-content-phase2 .promo-icon { vertical-align: middle; margin: 0 8px; width: 40px; height: 40px; }
.promo-content-phase2 .promo-reward-details { padding: 12px 0; margin: 16px 0; }
.promo-content-phase2 b { font-weight: 800; color: var(--yolk-yellow); }
.promo-content-phase2 .fine-print { font-size: 0.7rem; opacity: 0.9; color: var(--yolk-off-white); font-style: italic; margin-top: 10px; }
.promo-opt-out { margin-top: 12px; text-align: center; }
.promo-opt-out label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--yolk-off-white);
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  opacity: 0.9;
}
.promo-opt-out input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yolk-blue);
  cursor: pointer;
}

.promo-join-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 24px;
  margin-bottom: 15px;
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.promo-join-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.promo-join-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-details-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 24px;
  margin-bottom: 10px;
  background-color: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.promo-details-button:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* --- CATERING PROMO MODAL --- */
/* Phase 1: Full-screen splash — matches #promo-modal exactly */
.catering-promo-phase1-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: var(--yolk-blue) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}
.catering-promo-phase1-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(47, 47, 134, 0.6) 0%, rgba(47, 47, 134, 0.6) 100%),
    url('/favicon.png');
  background-size:
    100% 100%,
    100% auto;
  background-position:
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat;
  opacity: 0.6;
  filter: blur(26px);
  z-index: -1;
  transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}
@media screen and (orientation: portrait) {
  .catering-promo-phase1-overlay::before {
    background-size: 100% 100%, 100% auto;
  }
}
@media screen and (orientation: landscape) {
  .catering-promo-phase1-overlay::before {
    background-size: 100% 100%, 100% auto;
  }
}
.catering-promo-phase1-content {
  text-align: center;
  color: var(--yolk-yellow);
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transition: opacity 1.8s ease;
  cursor: default;
  padding: 24px;
  margin: 20px;
}
.catering-promo-phase1-overlay.show .catering-promo-phase1-content {
  opacity: 1;
}
/* Phase 2: Details card — matches #promo-modal.phase-two exactly */
.catering-promo-phase2-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: var(--yolk-blue);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}
.catering-promo-phase2-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(47, 47, 134, 0.6) 0%, rgba(47, 47, 134, 0.6) 100%),
    url('/favicon.png');
  background-size:
    100% 100%,
    100% auto;
  background-position:
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat;
  opacity: 0.6;
  filter: blur(26px);
  z-index: -1;
  transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}
.catering-promo-card {
  position: relative;
  background-color: rgba(47, 47, 134, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--yolk-yellow);
  border-radius: 12px;
  width: min(420px, 88vw);
  padding: 32px 28px 20px;
  cursor: default;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: var(--yolk-off-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.catering-promo-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.6rem;
  color: var(--yolk-yellow);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.catering-promo-close:hover { opacity: 1; }
.catering-promo-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yolk-blue);
  background: var(--yolk-yellow);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.catering-promo-code {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--yolk-yellow);
  margin: 8px 0 4px;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.catering-promo-headline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--yolk-off-white);
  margin: 8px 0 0;
}
.catering-promo-headline b { color: var(--yolk-yellow); font-weight: 800; }
.catering-promo-equals {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--yolk-off-white);
  margin: 6px 0;
  line-height: 1;
}
.catering-promo-divider {
  border: 0;
  height: 1px;
  background: rgba(253, 213, 45, 0.3);
  margin: 16px 0;
}
.catering-promo-details {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--yolk-off-white);
  margin: 0;
}
.catering-promo-details b { color: var(--yolk-yellow); font-weight: 700; }
.catering-promo-fine-print {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.7;
  color: var(--yolk-off-white);
  margin: 14px 0 4px;
}
.catering-copy-code-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 24px;
  margin-top: 16px;
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.catering-copy-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.catering-copy-code-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Rewards action modal buttons */
.rewards-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
}
.rewards-action-btn {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 25px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.rewards-action-join {
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
}
.rewards-action-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.rewards-action-login {
  background-color: transparent;
  color: var(--yolk-off-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.rewards-action-login:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.rewards-action-details-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.rewards-action-details-link:hover {
  color: var(--yolk-yellow);
}

/* Order method interstitial (app vs website) */
.order-method-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
}
.order-method-btn {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 25px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.order-method-app-btn {
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
}
.order-method-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.order-method-website-btn {
  background-color: transparent;
  color: var(--yolk-off-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.order-method-website-btn:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* Transition animations for promo modal closing */
#promo-modal.closing .promo-content-phase1 {
  transition: opacity 2.5s ease-out;
  opacity: 0;
}

#promo-modal.closing .promo-content-phase2 {
  transition: opacity 1s ease-out;
  opacity: 0;
}

/* Keep promo modal visible during all transition states */
#promo-modal.closing,
#promo-modal.unblurring,
#promo-modal.fading {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Favicon background transitions during closing */
#promo-modal.closing::before {
  transition: filter 1s ease-out, opacity 1s ease-out;
  filter: blur(20px);
  opacity: 0.4;
}

#promo-modal.unblurring::before {
  transition: filter 1.5s ease-out, opacity 1.5s ease-out;
  filter: blur(14px);
  opacity: 0.3;
}

#promo-modal.fading::before {
  transition: opacity 2s ease-out, filter 2s ease-out;
  opacity: 0;
  filter: blur(22px);
}

/* Enhanced animations for phase transitions */
#promo-modal.phase-one.transitioning::before {
  transition: filter 1s ease-out, opacity 1s ease-out;
  filter: blur(10px);
  opacity: 0.4;
}

#promo-modal.phase-one.reducing-blur::before {
  transition: filter 1.2s ease-out, opacity 1.2s ease-out;
  filter: blur(4px);
  opacity: 0.2;
}

#promo-modal.phase-two.entering::before {
  transition: filter 0.8s ease-in, opacity 0.8s ease-in;
  filter: blur(26px);
  opacity: 0.6;
}

#promo-modal.fading {
  background: transparent !important;
  transition: background 2s ease-out;
}

/* Content visibility is now controlled by body classes (initial-load, no-promos, etc.) */

/* During initial load, show cards but hide them behind promos */
/* The cinematic animation is controlled by JavaScript timing, not CSS */
body.initial-load .app-wrapper,
body.initial-load .combined-view-container,
body.initial-load #locations-view,
body.initial-load #menu-view {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Keep map container ready but don't start cinematic yet */
body.initial-load #map-container {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fade in map and location cards quickly to show cinematic animation */
body.promo-fading .app-wrapper {
  display: block !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  transition: opacity 0.4s ease-out, filter 0.4s ease-out, transform 0.4s ease-out !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading .combined-view-container {
  display: flex !important; /* Use flex to maintain layout */
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  transition: opacity 0.4s ease-out, filter 0.4s ease-out, transform 0.4s ease-out !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading-complete .app-wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading-complete .combined-view-container {
  display: flex !important; /* Use flex to maintain layout */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

/* Show app content immediately if no promos are active */
body.no-promos .app-wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.no-promos .combined-view-container {
  display: flex !important; /* Use flex instead of block to maintain layout */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}


/* --- COMPASS CONTROL (Native Google Maps compass styling) --- */
/* Style the native Google Maps compass to match our design */
.gm-style .gm-style-cc,
.gm-style-cc,
[data-control-width] button[data-value="rotate"],
button[data-value="rotate"],
.gm-style button[data-value="rotate"] {
  background: rgba(var(--yolk-yellow-rgb), 0.7) !important;
  border: 2px solid var(--yolk-blue) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
  opacity: 0.8 !important;
}

.gm-style .gm-style-cc:hover,
.gm-style-cc:hover,
[data-control-width] button[data-value="rotate"]:hover,
button[data-value="rotate"]:hover,
.gm-style button[data-value="rotate"]:hover {
  background: rgba(var(--yolk-blue-rgb), 0.9) !important;
  border: 2px solid var(--yolk-yellow) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
  opacity: 1 !important;
}

.gm-style .gm-style-cc:active,
.gm-style-cc:active,
[data-control-width] button[data-value="rotate"]:active,
button[data-value="rotate"]:active,
.gm-style button[data-value="rotate"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  background: rgba(var(--yolk-blue-rgb), 0.9) !important;
  border: 2px solid var(--yolk-yellow) !important;
}

/* Legacy compass control styles (kept for reference) */
.compass-control {
  display: none; /* Hidden in favor of native Google Maps compass */
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(var(--yolk-yellow-rgb), 0.7);
  border: 2px solid var(--yolk-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compass-control:hover {
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.compass-control:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
}

.compass-control.locked {
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
}

.compass-svg {
  width: 36px;
  height: 36px;
  transform-origin: 50% 50%;
  transition: transform 0.3s ease-in-out;
}

.compass-label {
  fill: var(--yolk-blue);
  font-family: 'Montserrat', sans-serif;
  transition: fill 0.2s ease-in-out;
}

.compass-control:hover .compass-label {
  fill: var(--yolk-yellow);
}

.compass-control.locked .compass-label {
  fill: var(--yolk-yellow);
}

/* --- MAP MARKER AND BUBBLE STYLES --- */
.custom-marker { position: relative; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.custom-marker-dot { width: 20px; height: 20px; background-color: var(--yolk-yellow); border: 3px solid var(--yolk-blue); border-radius: 50%; transition: all 0.3s ease-in-out; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); opacity: 1; }
.custom-marker.active .custom-marker-dot, 
.yNHHyP-marker-view.active .custom-marker-dot { transform: scale(0) !important; opacity: 0 !important; visibility: hidden !important; }
.custom-marker-logo-container { position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; transition: all 0.3s ease-in-out; opacity: 0; visibility: hidden; }
.custom-marker.active .custom-marker-logo-container,
.yNHHyP-marker-view.active .custom-marker-logo-container { display: flex !important; transform: translate(-50%, -50%); opacity: 1 !important; visibility: visible !important; }
.marker-location-text { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 600; background-color: var(--yolk-blue); color: var(--yolk-off-white); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--yolk-yellow); box-shadow: 0 2px 4px rgba(0,0,0,0.3); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); margin-bottom: -8px; position: relative; z-index: 1; text-transform: uppercase; white-space: nowrap; }
.custom-marker-logo-container img { max-width: 56px; max-height: 48px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)); transition: transform 0.2s ease-in-out; }
.custom-marker.boynton-beach .marker-location-text { margin-bottom: -1px; }
.custom-marker.oak-park .marker-location-text { margin-bottom: -1px; }
.user-marker-container { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: none; border: none; }
.user-marker-dot { width: 32px; height: 32px; border-radius: 50%; background-color: var(--yolk-blue); border: 2px solid var(--yolk-yellow); box-shadow: 0 0 0 2px var(--yolk-blue); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
.user-marker-egg { position: absolute; width: 32px; height: 32px; transition: transform 0.4s ease-in-out; pointer-events: none; }
.user-marker-egg.flipped { transform: scaleX(-1); }
.gm-style-iw + div, .gm-ui-hover-effect, .gm-style-iw button[aria-label="Close"] { display: none !important; }
.gm-style-iw { background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; border: 0 !important; }
.bubble-cloud { position: absolute; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; line-height: 1; padding: 8px 12px; border-radius: 16px; white-space: nowrap; pointer-events: none; z-index: 1; --arrow-size: 12px; opacity: 0; transform: scale(0.95) translateY(-5px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; will-change: opacity, transform; background: var(--bubble-bg); color: var(--bubble-fg); border: 2px solid var(--bubble-outline); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35); }
.bubble-cloud.visible { opacity: 1; transform: scale(1) translateY(0); }
.bubble-cloud.location-default { --bubble-bg: var(--yolk-yellow); --bubble-fg: var(--yolk-blue); --bubble-outline: var(--yolk-blue); }
.bubble-cloud.location-active { --bubble-bg: var(--yolk-blue); --bubble-fg: var(--yolk-off-white); --bubble-outline: var(--yolk-yellow); box-shadow: 0 0 0 2px var(--yolk-blue), 0 4px 8px rgba(0, 0, 0, 0.35); }
.bubble-cloud .bubble-arrow { position: absolute; width: var(--arrow-size); height: var(--arrow-size); z-index: -1; }
.bubble-cloud .bubble-arrow::before, .bubble-cloud .bubble-arrow::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotate(45deg); border-radius: 2px; }
.bubble-cloud .bubble-arrow::before { background-color: var(--bubble-outline); }
.bubble-cloud.location-active .bubble-arrow::before { background-color: var(--yolk-blue); }
.bubble-cloud.location-active .bubble-arrow::after { background-color: var(--yolk-yellow); transform: scale(0.7) rotate(45deg); box-shadow: 0 0 0 2px var(--yolk-blue); }
.bubble-cloud[data-pos="above"] .bubble-arrow { bottom: -7px; left: 50%; transform: translateX(-50%); }
.market-cluster-overlay { background-color: var(--yolk-blue); color: var(--yolk-yellow); border: 2px solid var(--yolk-yellow); border-radius: 8px; padding: 8px 12px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.3); transition: all 0.2s ease-in-out; transform: translate(-50%, -50%); }
.market-cluster-overlay:hover { background-color: var(--yolk-yellow); color: var(--yolk-blue); transform: translate(-50%, -50%) scale(1.05); }


/* --- RESPONSIVE & MEDIA QUERIES --- */
/* --- CONSOLIDATED: Wide Screen & Landscape Layout --- */
@media screen and (orientation: landscape) and (max-height: 600px), screen and (min-width: 768px) {

    /* --- Base Layout: Split View --- */
    .combined-view-container {
        flex-direction: row;
        height: auto;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }

    .map-section {
        width: 50%;
        height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
        min-height: unset;
        max-height: unset;
        border-bottom: none;
        border-right: 2px solid var(--yolk-yellow);
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px));
        z-index: 900;
    }

    .map-section::after {
        display: none; /* Hide shadow gradient in landscape */
    }

    .locations-section {
        width: 50%;
        flex: 1;
        overflow-y: auto;
        height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }

    /* --- FIX: Edge-to-Edge for Locations View ONLY --- */
    /*
      This highly specific rule ensures that ONLY the main locations view breaks out of the
      default content constraints to fill the full width of the screen.
    */
    body.home-view-active .app-wrapper {
        max-width: none;
    }

    /*
      This rule specifically removes the side padding from the locations list itself,
      but does NOT affect the padding on the menu pages.
    */
    body.home-view-active .locations-section {
        padding-left: 0;
        padding-right: 0;
    }

    /* --- Constrained Layout for Menu Pages --- */
    /*
      This rule ensures that when the menu view is active in landscape,
      its content remains comfortably constrained in the center.
    */
    .il-menu-container,
    .imgbox {
        max-width: 1400px;
    }
}

/* Further adjustments for very large screens */
@media screen and (min-width: 1024px) {
    .map-section {
        width: 60%;
    }
}

/* For mobile devices in portrait mode */
@media screen and (orientation: portrait) and (max-width: 767px) {
    .combined-view-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }
    .map-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
        width: 100%;
        flex-shrink: 0;
        border-bottom: 2px solid var(--yolk-yellow);
        border-right: none;
        position: sticky;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px));
        z-index: 900;
    }
    .map-section::after {
        content: '';
        position: absolute;
        bottom: -16px;
        left: 0;
        right: 0;
        height: 16px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent);
        z-index: 899;
        pointer-events: none;
    }
}

/* CRITICAL: iPads in portrait mode - MUST override landscape rules above */
@media screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    html.is-ipad .combined-view-container,
    body html.is-ipad .combined-view-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px)) !important;
    }
    html.is-ipad .map-section,
    body html.is-ipad .map-section {
        height: 40vh !important;
        min-height: 250px !important;
        max-height: 350px !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        border-bottom: 2px solid var(--yolk-yellow) !important;
        border-right: none !important;
        position: sticky !important;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px)) !important;
        z-index: 900 !important;
    }
    html.is-ipad .map-section::after,
    body html.is-ipad .map-section::after {
        content: '' !important;
        position: absolute !important;
        bottom: -16px !important;
        left: 0 !important;
        right: 0 !important;
        height: 16px !important;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent) !important;
        z-index: 899 !important;
        pointer-events: none !important;
    }
    html.is-ipad .locations-section,
    body html.is-ipad .locations-section {
        width: 100% !important;
        flex: 1 !important;
    }
}

/* --- DEBUG --- */
#debug-badge{
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 99999;
    background: rgba(0,0,0,0.65);
    color: #fdd52d;
    border: 1px solid #fdd52d;
    border-radius: 8px;
    padding: 6px 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}
/* Extra UI classes for waitlist/inline/hours */
.waitlist-status.closed-text { color: #e74c3c; }
.no-underline { text-decoration: none; }
.inline-sep { margin: 0 4px; }
.hours-inline { white-space: nowrap; }

/* ==== Card alignment refinements ==== */
/* Right column: make CLOSED state align exactly like waitlist/placeholder */
.estimates-wrapper { display: flex; align-items: center; justify-content: center; }
.waitlist-estimates-container { display: block; position: relative; text-align: center; }
.waitlist-estimates-container .waitlist-status { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Left column: keep top rows at top-left; push address+phone to bottom-left */
.card-main-info { min-height: 120px; }
.card-main-info .address-text { margin-top: auto; }
.card-main-info .location-phone-number { margin-top: 4px; }

/* ==== TRANSLUCENT BACKGROUNDS FOR ALL MODALS ==== */
/* Modal backgrounds are now translucent via .modal-overlay backdrop-filter */
/* Content remains fully opaque for readability */

/* ==== FAVORITE MODAL — unify theme with other modals ==== */
/* Apply the styled theme even if the overlay doesn't carry .styled-modal-overlay */
#favoriteModal .modal-content,
#favorite-confirmation-modal .modal-content {
  background-color: rgba(47, 47, 134, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yolk-off-white);
  border: 2px solid var(--yolk-yellow);
}
#favoriteModal .modal-close-x,
#favorite-confirmation-modal .modal-close-x {
  color: var(--yolk-yellow);
}
/* Keep content spacing consistent with other modals */
#favoriteModal .modal-content .modal-actions .modal-button.primary,
#favorite-confirmation-modal .modal-content .modal-actions .modal-button.primary {
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border-color: var(--yolk-yellow);
}
#favoriteModal .modal-content .modal-actions .modal-button.secondary,
#favorite-confirmation-modal .modal-content .modal-actions .modal-button.secondary {
  background-color: transparent;
  color: var(--yolk-yellow);
  border-color: var(--yolk-yellow);
}
/* --- FINAL ACCORDION MENU STYLES (v2) --- */

/* 1. Style the section header for clicks and layout */
.il-section-header {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text */
  cursor: pointer;
  position: relative; /* For a cleaner tap target */
  padding: 12px 16px 12px 24px; /* Increased left padding for better indentation */
}

/* 2. Style the content body for the expand/collapse animation */
.il-section-body {
  /* This hides the content by default */
  max-height: 0;
  overflow: hidden;
  /* Smooth transition for hiding */
  transition: max-height 0.4s ease-out; 
}

/* 3. This is the key: When the parent section has the .open class, expand the body */
.il-menu-section.open .il-section-body {
  /* Set a large max-height to reveal the content */
  max-height: 3000px; /* Adjust if you have extremely long sections */
  /* A slightly slower, smoother transition for the opening animation */
  transition: max-height 0.7s ease-in-out; 
}

/* 4. Style the interactive arrow icon */
.category-dropdown-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Smooth rotation for the arrow */
  transition: transform 0.3s ease-in-out;
}

/* 5. Rotate the arrow when the section is open */
.il-menu-section.open .category-dropdown-icon-wrapper {
  transform: rotate(180deg);
}

.category-title-text {
  flex-grow: 1; /* Ensures text takes available space */
}
/* --- FIX: Consistent Dropdown Styling & Animations (v2) --- */

/* 1. Apply the transparent, blurred style to menu dropdowns (excluding hours dropdown) */
#app-menu-dropdown {
  background: rgba(16, 22, 78, 0.6); /* Further increased transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 213, 45, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Desktop hover support for main menu - only applies to non-touch devices */
@media (hover: hover) and (pointer: fine) {
  #app-menu-container:hover #app-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #app-menu-container:hover .hamburger-icon {
    transform: rotate(180deg);
  }

  /* Also style the dropdown when hovering directly on it to keep it open */
  #app-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* 2. Style the hours summary line to include the chevron icon */
.hours-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px;
  cursor: pointer;
}

.hours-chevron {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease-in-out;
}

/* Rotate the chevron when the dropdown is open */
.hours-details.open .hours-chevron {
  transform: rotate(180deg);
}

/* 3. Style the hours dropdown for a fade-in animation */
.hours-details .hours-dropdown-content {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 2px);
  z-index: 9999;
  padding: 10px 12px;
  background: rgba(16, 22, 78, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 213, 45, 0.3);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

  /* Animation initial state: hidden */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.95) translateY(-10px);
  transform-origin: top center;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
}

/* 4. Animation final state: visible */
.hours-details .hours-dropdown-content.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) translateY(0);
  pointer-events: auto !important;
}

/* 5. Styling for the rows inside the dropdown */
.hours-menu-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

/* 6. Desktop hover support for hours dropdown */
@media (hover: hover) and (pointer: fine) {
  .hours-details:hover .hours-dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateY(0);
    pointer-events: auto !important;
  }

  .hours-details:hover .hours-chevron {
    transform: rotate(180deg);
  }

  .hours-details:hover {
    border-color: var(--yolk-yellow);
  }
}
/* --- FINAL: Waitlist Layout for Cards & Modals (v8) --- */

/* 1. CARD: Container styles to support the animation */
.waitlist-estimates-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 2. CARD: Styles for the individual animated items */
.waitlist-estimates-container .estimate-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.waitlist-estimates-container .estimate-item.visible {
    opacity: 1; /* Toggled by JS to show the item */
}
.waitlist-estimates-container .estimate-label {
    order: 1; font-size: 0.75rem; margin-bottom: 4px;
}
.waitlist-estimates-container .estimate-value {
    order: 2; font-size: 1rem;
}

/* 3. MODAL: Widen the modal content area to prevent waitlist cutoff */
#location-info-modal .modal-content {
    width: 95%;
    max-width: 500px;
}

/* 4. MODAL: Reset and simplify waitlist container */
#modal-info-waitlist-estimates {
    display: block !important;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center !important;
}

.modal-waitlist-header {
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* 5. MODAL: Simple 4-column grid */
#modal-info-waitlist-estimates .modal-waitlist-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

/* 6. MODAL: Styles for the cells and dividers */
.modal-waitlist-grid .party-size,
.modal-waitlist-grid .wait-time {
    text-align: center;
    padding: 6px 4px;
}

/* Add left border to create dividers (except first column) */
.modal-waitlist-grid .party-size:nth-child(2),
.modal-waitlist-grid .party-size:nth-child(3),
.modal-waitlist-grid .party-size:nth-child(4),
.modal-waitlist-grid .wait-time:nth-child(6),
.modal-waitlist-grid .wait-time:nth-child(7),
.modal-waitlist-grid .wait-time:nth-child(8) {
    border-left: 1px solid rgba(251, 247, 234, 0.3);
}
.modal-waitlist-grid .party-size {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.8;
    padding-bottom: 10px;
    padding-top: 2px;
}
.modal-waitlist-grid .wait-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-yellow);
    white-space: nowrap;
    padding-top: 2px;
    padding-bottom: 6px;
}

/* 7. MODAL: Handle single message states like "No Wait!" */
#modal-info-waitlist-estimates .modal-waitlist-single-item {
    text-align: center;
    width: 100%;
}

/* Iframe Error Fallback Styles */
.iframe-error-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60vh;
    padding: 2rem;
    background: linear-gradient(135deg, #fdd52d, #f9c23c);
    border-radius: 8px;
}

.iframe-error-fallback .error-content {
    text-align: center;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.iframe-error-fallback h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.iframe-error-fallback p {
    margin: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.5;
}

.iframe-error-fallback .error-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.iframe-error-fallback .btn-primary,
.iframe-error-fallback .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.iframe-error-fallback .btn-primary {
    background-color: #fdd52d;
    color: #333;
}

.iframe-error-fallback .btn-primary:hover {
    background-color: #f9c23c;
}

.iframe-error-fallback .btn-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.iframe-error-fallback .btn-secondary:hover {
    background-color: #e5e5e5;
}

.iframe-error-fallback .error-note {
    font-size: 0.875rem;
    color: #888;
    font-style: italic;
}

/* ============================== */
/* PWA & PORTRAIT MODE ENFORCEMENT */
/* ============================== */

/* v5.233: Allow landscape mode for rewards view - only when rewards view is active */
@media screen and (orientation: landscape) and (max-width: 768px) {
    /* Remove body padding and hide overflow when rewards view is in landscape */
    body.rewards-view-active {
        padding-top: 0 !important;
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    body.rewards-view-active #rewards-view {
        /* Use fixed positioning only when rewards view is active - match header height exactly */
        position: fixed !important;
        top: calc(var(--header-height) + var(--safe-area-inset-top)) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh - var(--header-height) - var(--safe-area-inset-top)) !important;
        height: calc(100dvh - var(--header-height) - var(--safe-area-inset-top)) !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.rewards-view-active #rewards-view .rewards-container {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.rewards-view-active #rewards-view iframe,
    body.rewards-view-active #rewards-view .rewards-iframe-full {
        /* Ensure iframe fills properly in landscape - but don't override bottom positioning */
        width: 100% !important;
        /* Don't set height - let top/bottom positioning control it */
        min-height: 0 !important;
        max-height: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        /* Don't override bottom - let browser/PWA mode rules handle it */
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Override PWA-specific iframe height rules in landscape */
    body.rewards-view-active.is-pwa #rewards-view .rewards-iframe-full {
        /* Don't set height - let top/bottom positioning control it */
        min-height: 0 !important;
    }
}

/* PWA-specific footer adjustments to prevent overlap */
.is-pwa .tab-bar {
    /* Minimal adjustment for PWA mode */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
}

/* PWA-specific ordering iframe adjustments */
.is-pwa .ordering-iframe-full {
    height: calc(100vh - env(safe-area-inset-bottom) - 68px) !important;
    height: calc(100dvh - env(safe-area-inset-bottom) - 68px) !important;
    height: calc(var(--dynamic-vh, 100vh) - env(safe-area-inset-bottom, 0px) - 68px) !important;
}

/* Additional ordering iframe fix with media query */
@media (display-mode: standalone) {
  .ordering-iframe-full {
    height: calc(100vh - env(safe-area-inset-bottom) - 68px) !important;
    height: calc(100dvh - env(safe-area-inset-bottom) - 68px) !important;
    height: calc(var(--dynamic-vh, 100vh) - env(safe-area-inset-bottom, 0px) - 68px) !important;
  }
}

