/* VenueOS — Modals styles */

    .allergy-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.6);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }
    .allergy-modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }
    .allergy-modal {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      max-width: 360px;
      width: 100%;
      max-height: 80vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,.3);
    }
    .allergy-modal-header {
      padding: 16px 20px;
      border-bottom: 1px solid var(--card-inner-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .allergy-modal-header h3 {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: var(--text-primary);
    }
    .allergy-modal-close {
      width: 32px;
      height: 32px;
      border: none;
      background: none;
      font-size: 24px;
      color: var(--text-muted);
      cursor: pointer;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .allergy-modal-close:hover {
      color: var(--text-primary);
      background: var(--input-bg);
    }
    .allergy-modal-body {
      padding: 16px 20px 20px;
      overflow-y: auto;
    }
    .allergy-modal-body p {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }
    .allergy-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .allergy-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--border-inactive);
      background: var(--input-bg);
      color: var(--text-primary);
      font-family: inherit;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    .allergy-chip:hover {
      border-color: var(--border-inactive-strong);
    }
    .allergy-chip.selected {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--sub-pill-active-fg, #fff);
    }
    body.dinner-mode .allergy-chip.selected {
      color: #1a1a1a;
    }
    .allergy-apply-btn {
      margin-top: 16px;
      width: 100%;
      padding: 12px 20px;
      border: none;
      border-radius: 10px;
      background: var(--accent);
      color: var(--sub-pill-active-fg, #fff);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    body.dinner-mode .allergy-apply-btn { color: #1a1a1a; }
    .allergy-apply-btn:hover { opacity: 0.9; }

    /* Item detail modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: rgba(0,0,0,.92);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.open {
      display: flex;
    }

    body.modal-open .nav-wrap {
      display: none;
    }

    .modal {
      position: relative;
      max-width: 480px;
      width: 100%;
      max-height: 90vh;
      background: var(--modal-card, var(--card));
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .modal-image-area {
      flex-shrink: 0;
      width: 100%;
      height: min(42vh, 360px);
      min-height: 200px;
      position: relative;
      overflow: hidden;
      background: transparent;
      box-shadow: 0 12px 28px -4px rgba(0,0,0,0.35);
    }
    .modal-image-area::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 24px;
      background: linear-gradient(to bottom, transparent, var(--modal-card, var(--card)));
      pointer-events: none;
    }

    .modal .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 10;
    }

    .modal-image-area img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .modal-image-area.is-wine {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
    }

    .modal-image-area.is-wine img {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      object-position: center;
    }

    /* Wine: full studio white — no fade into modal body (keeps bottle on pure white) */
    .modal-image-area.is-wine::after {
      display: none;
    }

    .modal-image-area.is-cocktail {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
    }

    .modal-image-area.is-cocktail img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .modal-image-area.is-classic {
      display: none;
    }

    .modal:has(.modal-image-area.is-standards) {
      max-width: 860px;
      max-height: 95vh;
    }

    .modal-image-area.is-standards {
      height: min(65vh, 580px);
      min-height: 380px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #1a1a1a;
    }

    .modal-image-area.is-standards img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .modal:has(.modal-image-area.is-standards) .modal-body {
      padding: 20px 24px;
      font-size: 15px;
    }

    .modal:has(.modal-image-area.is-standards) #modal-title {
      font-size: 1.25rem;
    }

    .standards-modal-body {
      padding-left: 16px;
      border-left: 4px solid var(--standards-color, #6b9470);
    }
    .standards-modal-step {
      margin-bottom: 14px;
      line-height: 1.5;
    }
    .standards-modal-step:last-child {
      margin-bottom: 0;
    }
    .standards-modal-step-num {
      font-weight: 700;
      color: var(--standards-color, #6b9470);
      display: block;
      margin-bottom: 4px;
      font-size: 0.95rem;
    }
    .standards-modal-desc {
      line-height: 1.6;
    }
    .standards-modal-para {
      margin-bottom: 10px;
      line-height: 1.5;
    }
    .standards-modal-para:last-child {
      margin-bottom: 0;
    }

    .standards-modal-color-swatch {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 8px;
      vertical-align: middle;
      flex-shrink: 0;
    }
    .standards-modal-timing {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--brass, #b8964e);
      margin-left: 6px;
    }

    .standards-modal-body--combined {
      border-left: none;
      padding-left: 0;
    }
    .standards-modal-combined-step {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--card-border, rgba(255,255,255,.08));
    }
    .standards-modal-combined-step:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    .standards-modal-combined-num {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 800;
      color: var(--standards-color, #6b9470);
      background: rgba(107, 148, 112, 0.15);
    }
    .standards-modal-combined-inner {
      flex: 1;
      min-width: 0;
    }
    .standards-modal-combined-head {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px 10px;
      margin-bottom: 6px;
    }
    .standards-modal-combined-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-primary, #fff);
    }
    .standards-modal-combined-desc {
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.55;
      color: var(--text-secondary, rgba(255,255,255,.82));
    }

    .modal:has(.modal-image-area.is-standards) .modal-category {
      display: flex;
      align-items: center;
    }

    /* Allergies procedure – 12-step flow in modal */
    .allergies-procedure-flow {
      --allergies-color: #6b9470;
    }
    .allergies-procedure-title {
      font-size: 1rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--allergies-color);
      margin: 0 0 1rem 0;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--allergies-color);
    }
    .allergies-procedure-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 14px;
      padding-left: 0;
    }
    .allergies-procedure-step:last-child {
      margin-bottom: 0;
    }
    .allergies-procedure-num {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--allergies-color);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 700;
      border-radius: 6px;
      line-height: 1;
    }
    .allergies-procedure-text {
      margin: 0;
      line-height: 1.5;
      font-size: 0.95rem;
      color: var(--text-primary, #1a1a1a);
    }

    .modal-price-overlay {
      position: absolute;
      bottom: 12px;
      right: 12px;
      font-family: 'Syne', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 2px 6px rgba(0,0,0,.6);
      background: rgba(0,0,0,.5);
      padding: 5px 10px;
      border-radius: 6px;
      letter-spacing: 0.02em;
    }
    @media (min-width: 769px) {
      .modal-price-overlay {
        font-size: 22px;
        padding: 6px 12px;
        bottom: 16px;
        right: 16px;
        color: #fff;
        background: rgba(0,0,0,.5);
        text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.6);
      }
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 50%;
      background: rgba(0,0,0,.5);
      border: none;
      color: white;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .modal-close:hover {
      background: rgba(0,0,0,.7);
    }

    .modal-close:focus-visible {
      outline: 2px solid var(--brass-light);
      outline-offset: 2px;
    }

    .modal-body-top {
      position: relative;
    }

    .modal-title-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-top: 4px;
      margin-bottom: 0;
    }
    .modal-title-row #modal-title {
      flex: 1 1 auto;
      min-width: 0;
      margin: 0;
      padding-right: 8px;
    }
    .modal-title-row .read-aloud-btn {
      flex: 0 0 auto;
      order: 2;
    }

    .read-aloud-btn {
      display: none;
      align-items: center;
      justify-content: center;
      padding: 4px 6px;
      width: auto;
      height: auto;
      border: none;
      border-radius: 0;
      background: transparent;
      color: inherit;
      font-family: inherit;
      cursor: pointer;
      box-shadow: none;
      opacity: 0.8;
    }
    .read-aloud-btn:hover {
      opacity: 1;
    }
    .read-aloud-btn.reading {
      opacity: 0.9;
    }
    body.dinner-mode .read-aloud-btn {
      background: transparent;
      box-shadow: none;
    }
    body.dinner-mode .read-aloud-btn:hover,
    body.dinner-mode .read-aloud-btn.reading {
      background: transparent;
      opacity: 1;
    }
    .read-aloud-icon {
      font-size: 1rem;
      line-height: 1;
      display: inline-block;
    }
    .modal-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 24px;
      font-family: 'Inter', sans-serif;
      color: var(--modal-text, var(--ink));
      background: var(--modal-card, var(--card));
      position: relative;
      border-top: 2px solid var(--card-border, rgba(0,0,0,.08));
    }

    .modal-body::-webkit-scrollbar {
      display: none;
    }

    /* Food modal header - mb-eye */
    .modal-header-eye {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .modal-header-food {
      color: rgba(212,184,114,.95);
    }
    body:not(.dinner-mode) .modal-header-food {
      color: #1a4a3d;
    }

    .modal-header-food-wrap {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .modal-crest-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      color: rgba(212,184,114,.9);
    }

    .modal-crest-img {
      width: 44px;
      height: auto;
      flex-shrink: 0;
      opacity: 0.9;
      background: transparent;
      object-fit: contain;
    }
    body:not(.dinner-mode) .modal-crest-img {
      filter: none;
      opacity: 0.9;
    }
    body.dinner-mode .modal-crest-img {
      filter: invert(1);
      opacity: 0.95;
    }

    .modal-header-food-text {
      letter-spacing: 2px;
    }

    .mb-v-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #2d7a5e;
      border: 1px solid rgba(45,122,94,.6);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 12px;
    }
    .mb-tag-gf {
      background: #b8860b !important;
      border-color: rgba(184,134,11,.5) !important;
      color: #fff !important;
    }

    .mb-section-label-food {
      color: rgba(221,156,86,.95);
      border-bottom-color: rgba(221,156,86,.4);
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .mb-mep {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      margin-bottom: 16px;
    }
    .mb-mep-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #fff;
      padding: 6px 10px;
      background: linear-gradient(135deg, rgba(107,148,112,.2), rgba(107,148,112,.1));
      border: 1px solid rgba(107,148,112,.4);
      border-radius: 8px;
    }
    body:not(.dinner-mode) .mb-mep-item {
      background: linear-gradient(135deg, rgba(107,148,112,.2), rgba(107,148,112,.1));
      border-color: rgba(107,148,112,.5);
      color: #1a1a1a;
    }
    .mb-mep-icon {
      font-size: 16px;
      line-height: 1;
    }

    .mb-story-food {
      font-style: italic;
    }

    .mb-als-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      max-height: 200px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .mb-div-allergens-food .allergen-chip-card {
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 14px 18px;
      min-width: 90px;
      background: rgba(68,48,41,.95);
      border: 1px solid rgba(235,120,94,.25);
      border-radius: 10px;
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .mb-div-allergens-food .allergen-chip-card:hover {
      background: rgba(78,55,48,.95);
      border-color: rgba(235,120,94,.4);
    }

    .mb-div-allergens-food .allergen-chip-card .allergen-card-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      line-height: 1;
    }
    body:not(.dinner-mode) .mb-div-allergens-food .allergen-chip-card {
      background: rgba(68,48,41,.12);
      border-color: rgba(194,92,46,.4);
      color: #1a1a1a;
    }
    body:not(.dinner-mode) .mb-div-allergens-food .allergen-chip-card:hover {
      background: rgba(68,48,41,.2);
    }


    .mb-pair-food {
      background: linear-gradient(135deg, rgba(107,148,112,.16), rgba(107,148,112,.06));
      border: 1px solid rgba(107,148,112,.4);
    }

    .mb-pair-food p {
      margin: 0;
      font-size: 14px;
      color: #fff;
      font-weight: 600;
    }
    body:not(.dinner-mode) .mb-pair-food p { color: #1a1a1a; }

    .mb-also-chip-food {
      background: rgba(50,46,35,.95);
      border: 1px solid rgba(221,156,86,.5);
      color: #fff;
    }

    .mb-also-chip-food:hover {
      background: rgba(60,55,42,.95);
      border-color: #dd9c56;
      color: #fff;
    }
    body:not(.dinner-mode) .mb-also-chip-food {
      background: rgba(221,156,86,.15);
      border-color: rgba(221,156,86,.5);
      color: #1a1a1a;
    }
    body:not(.dinner-mode) .mb-also-chip-food:hover {
      background: rgba(221,156,86,.25);
      color: #1a1a1a;
    }
    .mb-also-chip-food:focus-visible {
      outline: 2px solid var(--brass-light);
      outline-offset: 2px;
    }

    .mb-upsell-food {
      background: linear-gradient(135deg, rgba(184,150,78,.25), rgba(184,150,78,.12));
      border: 1px solid rgba(184,150,78,.45);
    }
    .mb-upsell-food p { color: #fff; font-weight: 600; }
    body:not(.dinner-mode) .mb-upsell-food p { color: #1a1a1a; }

    .mb-side-food {
      background: linear-gradient(135deg, rgba(107,148,112,.16), rgba(107,148,112,.06));
      border: 1px solid rgba(107,148,112,.4);
    }
    .mb-side-food p { color: #fff; font-weight: 600; }
    body:not(.dinner-mode) .mb-side-food p { color: #1a1a1a; }

    .modal-category {
      font-size: 0.75rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: rgba(240,235,226,.7);
      margin-bottom: 8px;
    }
    body:not(.dinner-mode) .modal-body .modal-category { color: #555; }

    .modal-body h2 {
      font-family: 'Syne', sans-serif;
      font-size: 30px;
      font-weight: 700;
      color: var(--modal-text, var(--ink));
      margin-bottom: 12px;
    }

    .mb-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 16px;
    }

    .mb-tags span {
      font-size: 12px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(26,74,61,.15);
      border: 1px solid rgba(26,74,61,.3);
      color: var(--green);
    }

    body.dinner-mode .mb-tags span {
      background: rgba(212,184,114,.15);
      border-color: rgba(212,184,114,.3);
      color: var(--brass-light);
    }
    body.dinner-mode .mb-tag-gf {
      background: rgba(201,154,26,.4) !important;
      border-color: rgba(201,154,26,.6) !important;
      color: #f5e6b3 !important;
    }

    .mb-section-label {
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--muted);
      margin: 20px 0 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255,255,255,.1);
    }
    body:not(.dinner-mode) .modal-body .mb-section-label {
      color: #444;
      border-bottom-color: rgba(0,0,0,.12);
    }
    body:not(.dinner-mode) .modal-body .mb-section-label-food {
      color: #5c4a32;
      border-bottom-color: rgba(92,74,50,.35);
    }
    body:not(.dinner-mode) .modal-body .mb-section-label-cocktail {
      color: #5c4a32;
      border-bottom-color: rgba(92,74,50,.35);
    }
    body:not(.dinner-mode) .modal-body .mb-section-label-wine {
      color: #5c4a32;
      border-bottom-color: rgba(92,74,50,.35);
    }

    .mb-section-label:first-child { margin-top: 0; }

    .mb-section-label-cocktail {
      color: var(--brass-light);
      border-bottom-color: rgba(184,150,78,.35);
    }

    .mb-section-label-wine {
      color: rgba(221,156,86,.95);
      border-bottom-color: rgba(221,156,86,.4);
    }

    /* Pop-up content blocks (mb-*) */
    .mb-desc {
      font-family: 'Inter', sans-serif;
      font-size: 17px;
      font-weight: 500;
      line-height: 1.6;
      color: var(--modal-text-soft, rgba(240,235,226,.88));
      margin-bottom: 16px;
    }
    body:not(.dinner-mode) .modal-body .mb-desc { color: #333; }

    .mb-story {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      line-height: 1.6;
      color: var(--modal-text-soft, rgba(240,235,226,.88));
      margin: 0 0 16px;
    }
    body:not(.dinner-mode) .modal-body .mb-story,
    body:not(.dinner-mode) .modal-body .mb-story-food { color: #444; }

    .mb-cocktail-price {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--brass-light);
      margin-bottom: 16px;
    }
    body:not(.dinner-mode) .modal-body .mb-cocktail-price { color: #1a4a3d; }

    .mb-div {
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid;
      margin-bottom: 12px;
    }

    /* Food pairing - sage */
    .mb-pair {
      background: linear-gradient(180deg, rgba(107,148,112,.08), rgba(107,148,112,.03));
      border: 1px solid rgba(107,148,112,.2);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }

    .mb-pair .bl {
      font-size: 0.7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #6b9470;
      font-weight: 600;
      display: block;
      margin-bottom: 6px;
    }

    /* Upsell - brass dashed */
    .mb-upsell {
      background: linear-gradient(180deg, rgba(184,150,78,.12), rgba(184,150,78,.05));
      border: 1px dashed rgba(184,150,78,.4);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }

    .mb-upsell .bl {
      font-size: 0.7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--brass);
      font-weight: 600;
      display: block;
      margin-bottom: 6px;
    }

    /* Allergens - mb-div-allergens */
    .mb-div-allergens .bl {
      font-size: 0.7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--rust);
      font-weight: 600;
      display: block;
      margin-bottom: 8px;
    }

    .mb-als {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mb-als .mat, .mb-als .allergen-chip-btn, .mat {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      padding: 6px 12px;
      background: rgba(194,92,46,.07);
      border: 1px solid rgba(194,92,46,.18);
      border-radius: 999px;
      color: var(--rust);
      cursor: pointer;
      position: relative;
      transition: background 0.2s, border-color 0.2s;
    }

    .mb-als .mat:hover, .mb-als .allergen-chip-btn:hover, .mat:hover {
      background: rgba(194,92,46,.12);
      border-color: rgba(194,92,46,.3);
    }

    .allergen-chip-btn { font-family: inherit; }
    .mat svg { width: 16px; height: 16px; flex-shrink: 0; }
    .mat .mn { color: var(--rust); font-weight: 500; }

    /* Allergen tooltip - modal: high-end bubble above the chip (fixed to avoid overflow glitch) */
    .allergen-tip {
      position: fixed;
      background: #0b0d0b;
      border: 1.5px solid #b87333;
      color: #fff;
      font-size: 12px;
      line-height: 1.35;
      padding: 8px 14px;
      border-radius: 10px;
      min-width: 220px;
      width: max-content;
      max-width: 320px;
      z-index: 9999;
      box-shadow: 0 4px 20px rgba(0,0,0,.5);
      pointer-events: none;
      white-space: normal;
      text-align: center;
      font-family: 'Inter', sans-serif;
      opacity: 0;
      animation: allergen-tip-fade 0.2s ease forwards;
    }

    .allergen-tip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: #b87333;
    }

    @keyframes allergen-tip-fade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* You might also like - chips */
    .mb-also {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .mb-also-chip {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      display: inline-block;
      padding: 8px 16px;
      background: rgba(26,74,61,.06);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-weight: 500;
      color: var(--modal-text, var(--ink));
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .mb-also-chip:hover {
      background: #1a4a3d;
      color: #ffffff;
      border-color: #1a4a3d;
    }

    .mb-also-chip:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .mb-div {
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid;
      margin-bottom: 12px;
    }

    .mb-div-allergens {
      background: transparent;
      border: none;
      padding: 0;
    }

    .mb-box-glass {
      background: rgba(40,40,40,.9);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }
    .mb-box-glass .bl { color: rgba(200,200,200,.8); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; display: block; margin-bottom: 6px; }
    .mb-box-glass p { color: #fff; font-weight: 600; margin: 0; }
    body:not(.dinner-mode) .modal-body .mb-box-glass .bl { color: #444; }
    body:not(.dinner-mode) .modal-body .mb-box-glass p { color: #1a1a1a; }

    .mb-box-grape {
      background: rgba(58,45,70,.95);
      border: 1px solid rgba(139,107,158,.25);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }
    .mb-box-grape .bl { color: rgba(200,200,200,.8); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; display: block; margin-bottom: 6px; }
    .mb-box-grape p { color: #fff; font-weight: 600; margin: 0; }
    body:not(.dinner-mode) .modal-body .mb-box-grape .bl { color: #444; }
    body:not(.dinner-mode) .modal-body .mb-box-grape p { color: #1a1a1a; }

    .mb-box-garnish {
      background: linear-gradient(135deg, rgba(107,148,112,.14), rgba(107,148,112,.06));
      border: 1px solid rgba(107,148,112,.3);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }

    .mb-box-garnish .bl { color: #6b9470; font-weight: 600; display: block; margin-bottom: 6px; }

    .mb-box-garnish pre {
      font-size: 13px;
      white-space: pre-wrap;
      margin: 0;
      color: inherit;
      line-height: 1.5;
    }

    .mb-box-bottle {
      background: rgba(40,40,40,.9);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }
    .mb-box-bottle .bl { color: rgba(200,200,200,.8); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; display: block; margin-bottom: 6px; }
    .mb-box-bottle p { font-family: 'Playfair Display', serif; font-size: 22px; color: #dd9c56; font-weight: 600; margin: 0; }

    .mb-box-abv {
      background: rgba(68,48,41,.95);
      border: 1px solid rgba(235,120,94,.25);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }
    .mb-box-abv .bl { color: rgba(200,200,200,.8); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; display: block; margin-bottom: 6px; }
    .mb-box-abv p { color: #eb785e; font-weight: 600; margin: 0; }

    /* Cocktail modal colored section boxes */
    .mb-box-ingredients {
      background: linear-gradient(135deg, rgba(230,162,60,.18), rgba(230,162,60,.06));
      border: 1px solid rgba(230,162,60,.4);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .mb-box-ingredients .bl { color: #e6a23c; font-weight: 600; display: block; margin-bottom: 6px; }
    .mb-box-ingredients pre { font-family: 'Playfair Display', serif; font-size: 14px; white-space: pre-wrap; margin: 0; color: inherit; line-height: 1.6; }
    body:not(.dinner-mode) .modal-body .mb-box-ingredients .bl { color: #b8860b; }
    body:not(.dinner-mode) .modal-body .mb-box-ingredients pre { color: #1a1a1a; }

    .mb-box-method {
      background: linear-gradient(135deg, rgba(90,115,140,.18), rgba(90,115,140,.06));
      border: 1px solid rgba(90,115,140,.35);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .mb-box-method .bl { color: #5a738c; font-weight: 600; display: block; margin-bottom: 6px; }
    body:not(.dinner-mode) .modal-body .mb-box-method .bl { color: #3d5a6e; }
    body:not(.dinner-mode) .modal-body .mb-box-method pre,
    body:not(.dinner-mode) .modal-body .mb-box-method p { color: #1a1a1a; }

    .mb-cocktail-glass-garnish {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 12px;
      margin-bottom: 16px;
    }

    .mb-cocktail-glass-garnish .mb-box-glass-type,
    .mb-cocktail-glass-garnish .mb-box-garnish {
      margin-bottom: 0;
    }

    .mb-box-glass-type {
      background: linear-gradient(135deg, rgba(70,120,160,.18), rgba(70,120,160,.08));
      border: 1px solid rgba(100,160,200,.4);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .mb-box-glass-type .bl { color: rgba(200,200,200,.8); font-weight: 600; display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
    .mb-box-glass-type p { margin: 0; color: #fff; font-weight: 600; }
    body:not(.dinner-mode) .modal-body .mb-box-glass-type .bl { color: #444; }
    body:not(.dinner-mode) .modal-body .mb-box-glass-type p { color: #1a1a1a; }
    .mb-glass-value { display: flex; align-items: center; gap: 10px; }
    .mb-glass-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--brass-light); }
    .mb-glass-icon svg { width: 100%; height: 100%; }

    .mb-cocktail-glass-garnish .mb-box-garnish {
      background: linear-gradient(135deg, rgba(107,148,112,.2), rgba(107,148,112,.1));
      border: 1px solid rgba(107,148,112,.5);
    }
    .mb-cocktail-glass-garnish .mb-box-garnish .bl { color: var(--sage); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
    .mb-cocktail-glass-garnish .mb-box-garnish p { color: #fff; font-weight: 600; margin: 0; }
    body:not(.dinner-mode) .modal-body .mb-cocktail-glass-garnish .mb-box-garnish .bl { color: #2d5a4a; }
    body:not(.dinner-mode) .modal-body .mb-cocktail-glass-garnish .mb-box-garnish p { color: #1a1a1a; }

    .mb-method-cocktail {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      line-height: 1.5;
      color: rgba(240,235,226,.7);
      font-style: italic;
      margin: 0 0 16px;
      padding-left: 2px;
    }
    body:not(.dinner-mode) .modal-body .mb-method-cocktail { color: #555; }

    .mb-variations { font-size: 14px; color: var(--modal-text-soft); margin: 0 0 16px; }
    body:not(.dinner-mode) .modal-body .mb-variations { color: #444; }

    .mb-upsell-cocktail {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 16px;
      background: linear-gradient(135deg, rgba(184,150,78,.25), rgba(184,150,78,.12));
      border: 1px solid rgba(184,150,78,.45);
    }
    .mb-upsell-cocktail-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--brass-light); }
    .mb-upsell-cocktail-icon svg { width: 100%; height: 100%; }
    .mb-upsell-cocktail p { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }
    body:not(.dinner-mode) .modal-body .mb-upsell-cocktail p { color: #1a1a1a; }

    .mb-also-like-btn-cocktail {
      background: linear-gradient(135deg, rgba(184,150,78,.3), rgba(184,150,78,.15));
      border: 1px solid rgba(184,150,78,.5);
      color: #fff;
    }
    .mb-also-like-btn-cocktail:hover {
      background: linear-gradient(135deg, rgba(184,150,78,.4), rgba(184,150,78,.25));
      border-color: var(--brass-light);
    }
    body:not(.dinner-mode) .modal-body .mb-also-like-btn-cocktail { color: #1a1a1a; }
    body:not(.dinner-mode) .modal-body .mb-also-like-btn-cocktail:hover { color: #1a1a1a; }

    .mb-pair-cocktail {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: linear-gradient(135deg, rgba(107,148,112,.16), rgba(107,148,112,.06));
      border: 1px solid rgba(107,148,112,.4);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .mb-pair-cocktail .mb-icon {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      color: var(--sage);
    }
    .mb-pair-cocktail p { margin: 0; }
    body:not(.dinner-mode) .modal-body .mb-pair-cocktail p { color: #1a1a1a; }

    .mb-wine-details-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .mb-pair-with-icon, .mb-upsell-with-icon {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 12px;
    }

    .mb-tasting-notes {
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      line-height: 1.6;
      color: var(--modal-text-soft, rgba(240,235,226,.9));
      margin: 0 0 16px;
    }

    .mb-pair-wine {
      background: rgba(47,60,59,.95);
      border: 1px solid rgba(142,199,146,.25);
      border-radius: 10px;
      padding: 14px 18px;
      margin-bottom: 16px;
    }
    .mb-pair-wine-label {
      display: block;
      font-size: 10px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #8ec792;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .mb-pair-wine-main {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin: 0 0 10px;
      line-height: 1.5;
    }
    .mb-pair-wine-sugg {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .mb-pair-wine-sugg .mb-icon {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      color: #8ec792;
    }
    .mb-pair-wine-sugg .mb-icon svg { width: 100%; height: 100%; }
    .mb-pair-wine-sugg-text,
    .mb-pair-wine-sugg-muted {
      font-size: 13px;
      color: #a5bfa6;
      line-height: 1.5;
    }
    .mb-pair-wine-sugg-bright {
      font-size: 13px;
      color: #8ec792;
      line-height: 1.5;
    }

    .mb-also-like-btn-wine {
      background: rgba(50,46,35,.95);
      border: 1px solid rgba(221,156,86,.5);
      color: #fff;
    }
    .mb-also-like-btn-wine:hover {
      background: rgba(60,55,42,.95);
      border-color: #dd9c56;
    }

    .mb-pair-with-icon {
      background: linear-gradient(135deg, rgba(107,148,112,.12), rgba(107,148,112,.05));
      border: 1px solid rgba(107,148,112,.35);
    }

    .mb-upsell-with-icon {
      background: linear-gradient(135deg, rgba(184,150,78,.18), rgba(184,150,78,.08));
      border: 1px solid rgba(184,150,78,.35);
    }

    .mb-pair-with-icon .mb-icon, .mb-upsell-with-icon .mb-icon {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      margin-top: 1px;
    }

    .mb-pair-with-icon .mb-icon { color: var(--sage); }
    .mb-upsell-with-icon .mb-icon { color: var(--brass-light); }

    .mb-also-like {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mb-also-like-btn {
      display: inline-block;
      padding: 10px 16px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 10px;
      color: var(--ink);
      font-size: 0.9rem;
      font-family: 'Syne', sans-serif;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    body:not(.dinner-mode) .modal-body .mb-also-like-btn {
      color: #1a1a1a;
      background: rgba(0,0,0,.06);
      border-color: rgba(0,0,0,.14);
    }

    .mb-also-like-btn:hover {
      border-color: var(--brass);
      background: rgba(184,150,78,.08);
    }
    body:not(.dinner-mode) .modal-body .mb-also-like-btn:hover {
      color: #1a1a1a;
      background: rgba(26,74,61,.12);
      border-color: #1a4a3d;
    }

    .mb-also-like-btn:focus-visible {
      outline: 2px solid var(--brass);
      outline-offset: 2px;
    }

    .mb-pair {
      background: linear-gradient(135deg, rgba(107,148,112,.12), rgba(107,148,112,.05));
      border: 1px solid rgba(107,148,112,.35);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }

    .mb-pair .bl { color: #6b9470; font-weight: 600; }

    .mb-upsell {
      background: linear-gradient(135deg, rgba(184,150,78,.18), rgba(184,150,78,.08));
      border: 1px solid rgba(184,150,78,.35);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }

    .mb-upsell .bl { color: var(--brass); font-weight: 600; }

    .mb-side {
      background: linear-gradient(135deg, rgba(107,148,112,.1), rgba(107,148,112,.04));
      border: 1px solid rgba(107,148,112,.35);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }

    .mb-side .bl { color: var(--sage); font-weight: 600; }

    .mb-div .bl, .mb-box-glass .bl, .mb-box-grape .bl, .mb-box-garnish .bl, .mb-pair .bl, .mb-upsell .bl, .mb-side .bl, .mb-story .bl {
      display: block;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .mb-story .bl { color: #6b9470; font-weight: 600; }

    .mb-div p, .mb-box-glass p, .mb-box-grape p, .mb-box-garnish p, .mb-pair p, .mb-upsell p, .mb-side p, .mb-story p {
      font-size: 16px;
      color: var(--modal-text, var(--ink));
      margin: 0;
      line-height: 1.5;
    }

    .mb-box-garnish pre,
    .mb-ing-step {
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 400;
      white-space: pre-wrap;
      margin: 0;
      color: var(--ink);
    }

    .mb-story.bl { color: var(--sage); }

    .mb-origin { margin-bottom: 16px; }
    .mb-origin .bl { color: var(--sage); font-weight: 600; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; display: block; }
    .mb-origin p { font-size: 0.95rem; color: rgba(240,235,226,.88); margin: 0; line-height: 1.6; }

    .modal-image-area.is-standards img {
      object-fit: contain;
    }

    .mb-pork-note { margin-top: 4px; font-size: 12px; color: #b0413e; font-weight: 500; }
    body.dinner-mode .mb-pork-note { color: #ffb3a8; }

    /* Mobile overrides for modals */
    @media (max-width: 768px) {
      /* Modal mobile */
      .modal-overlay {
        padding: 0;
        align-items: stretch;
      }

      .modal-overlay.open .modal {
        max-width: none;
        width: 100%;
        max-height: none;
        flex: 1;
        border-radius: 0;
        border: none;
      }

      .modal-image-area {
        width: 100%;
        height: 280px;
        min-height: 280px;
        background: transparent;
      }

      .modal-image-area img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }

      .modal-image-area.is-standards {
        height: 55vh;
        min-height: 320px;
        background: #1a1a1a;
      }

      .modal-image-area.is-standards img {
        object-fit: contain;
      }

      .modal-image-area.is-wine {
        background: #fff;
      }

      .modal-image-area.is-wine .modal-price-overlay {
        color: #1a4a3d;
        background: rgba(255,255,255,.85);
        text-shadow: none;
      }

      .modal-body {
        padding: 16px;
        font-size: 15px;
      }

      .modal-body .mb-desc,
      .modal-body .mb-story p,
      .modal-body .mb-div p {
        font-size: 14px;
      }

      .modal-body .mb-section-label {
        font-size: 11px;
        margin-top: 16px;
        margin-bottom: 8px;
      }

      #modal-title {
        font-size: 1.3rem;
      }

      .modal-close {
        width: 48px;
        height: 48px;
        font-size: 24px;
        top: 16px;
        right: 16px;
        background: rgba(0,0,0,.7);
      }

      .modal-body .mb-also,
      .modal-body .mb-als {
        flex-wrap: wrap;
        gap: 6px;
      }

      .modal-body .mb-also-chip,
      .modal-body .allergen-chip-btn {
        font-size: 12px;
        padding: 6px 12px;
      }

      .modal-body .mb-div-allergens-food .allergen-chip-card {
        min-width: 0;
      }

      .read-aloud-btn {
        display: inline-flex !important;
        position: static !important;
        align-items: center;
        justify-content: center;
        padding: 4px 6px !important;
        width: auto !important;
        height: auto !important;
        min-width: 28px;
        min-height: 28px;
      }

      .read-aloud-icon {
        font-size: 1rem !important;
        line-height: 1;
        display: inline-block !important;
      }

      .modal-header-eye .modal-crest-img {
        width: 72px;
      }
      .modal-header-eye .modal-crest-icon {
        width: 36px;
        height: 36px;
      }
    }
