/* Allergen badge, Nov 9 (Opus): three premium refinements of keeper C "Bonbon says".
   Variants 4 Velvet panel, 5 Letterpress card, 6 Glaze drip. Same words, same six allergens.
   Scoped to html[data-v-ldallergy="4|5|6"]; A, B and C are untouched. Motion is transform and
   opacity only and runs once; html.glz-static and prefers-reduced-motion get the final state.
   The outer card never clips (no overflow: hidden) so the switcher pill can sit in a band above it;
   decoration lives in .ldo-deco, which clips itself. */

/* ---------- Shared frame for 4, 5, 6 ---------- */
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) #menu .unified-allergy.ld-allergy {
  max-width: 720px !important;
  isolation: isolate;
}
/* Reserve the pill band above the card (lane-d's !important margin otherwise wins over the shared fix). */
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) #menu .unified-allergy.ld-allergy:has(> .glzv) { margin-top: 3.5rem !important; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ldo-deco {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
html .ldo-drip, html .ldo-sheen { display: none; }
html[data-v-ldallergy="6"] .ldo-sheen { display: block; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy > :is(.ld-allergy-btn, .ld-allergy-panel) { position: relative; z-index: 1; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-btn {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "bon copy cta" "bon icons icons";
  align-items: center;
  gap: .9rem 1.25rem;
  padding: 1.25rem 1.5rem 1.35rem;
  border-radius: inherit;
}
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-avatar { display: block; position: relative; width: 5rem; height: 5rem; align-self: center; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-avatar img { position: relative; z-index: 1; filter: drop-shadow(0 6px 8px rgba(45, 25, 40, .22)); }
/* Bubble with a tail pointing back at Bonbon. */
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-copy {
  position: relative; gap: .2rem; padding: .85rem 1.15rem .95rem; border-radius: 6px 18px 18px 18px;
}
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-copy::before {
  content: ""; position: absolute; left: -7px; top: 14px; width: 14px; height: 14px; transform: rotate(45deg);
  background: inherit; border: inherit; border-top-color: transparent; border-right-color: transparent; border-radius: 0 0 0 3px;
}
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-kicker { font-size: .66rem; letter-spacing: .22em; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-main { font-size: 1.16rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-sub { font-size: .95rem; line-height: 1.45; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-cta { min-height: 2.5rem; padding: .6rem 1rem; align-self: start; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]):not(.glz-static) .ld-allergy-cta { transition: transform .25s ease-out, background-color .25s ease-out; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]):not(.glz-static) .ld-allergy-btn:hover .ld-allergy-cta { transform: translate3d(0, -1px, 0); }

/* Icons: real names for screen readers (the row is no longer aria-hidden in these variants). */
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico { position: relative; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico svg { position: relative; z-index: 1; width: 34px; height: 34px; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico::before {
  content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 64, 48, .34), rgba(226, 64, 48, 0));
  opacity: .9; pointer-events: none;
}
html:is([data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico::before { top: 20px; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]):not(.glz-static) .ld-allergy:not(.is-lit) .ld-ico::before { opacity: 0; transform: scale(.6); }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]):not(.glz-static) .ld-ico::before { transition: opacity .9s ease-out calc(var(--i, 0) * 120ms + 200ms), transform .9s ease-out calc(var(--i, 0) * 120ms + 200ms); }
html[data-v-ldallergy="4"] .ld-ico-name {
  display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-panel { padding: 0 1.5rem 1.4rem; }
html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-bonbon-say img { display: none; }

/* ---------- 4 · Velvet panel: deep plum velvet, cream bubble, gold hairline, red glow on a dark tray ---------- */
html[data-v-ldallergy="4"] #menu .unified-allergy.ld-allergy {
  border: 1px solid rgba(212, 168, 67, .5) !important;
  border-radius: 26px !important;
  background: radial-gradient(130% 160% at 0% 0%, #6A2A5F 0%, #4A1942 42%, #2D1928 100%) !important;
  color: var(--cream, #FDF8F0) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px -2px rgba(45, 25, 40, .35), 0 28px 56px -30px rgba(45, 25, 40, .75);
}
html[data-v-ldallergy="4"] .ldo-deco::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(212, 168, 67, .28); border-radius: 20px;
}
html[data-v-ldallergy="4"] .ldo-deco::after {
  content: ""; position: absolute; left: -40px; top: 50%; width: 220px; height: 220px; margin-top: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 168, 67, .30), rgba(212, 168, 67, 0));
}
html[data-v-ldallergy="4"] .ld-allergy-avatar { width: 5.5rem; height: 5.5rem; }
html[data-v-ldallergy="4"] .ld-allergy-copy { background: var(--cream, #FDF8F0); border: 1px solid rgba(212, 168, 67, .55); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
html[data-v-ldallergy="4"] .ld-allergy-kicker { color: var(--gold-text, #8A6514); }
html[data-v-ldallergy="4"] .ld-allergy-main { color: var(--plum, #4A1942); }
html[data-v-ldallergy="4"] .ld-allergy-sub { color: var(--ink, #2D1928); }
html[data-v-ldallergy="4"] .ld-allergy-icons {
  justify-self: start; display: flex; gap: .55rem; padding: .5rem .7rem; border-radius: 999px;
  background: rgba(20, 8, 18, .38); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06);
}
html[data-v-ldallergy="4"] .ld-ico { color: #6B3A2C; }
html[data-v-ldallergy="4"] .ld-ico svg { background: var(--cream, #FDF8F0); filter: drop-shadow(0 0 2px rgba(255, 86, 66, .95)) drop-shadow(0 0 9px rgba(240, 70, 52, .6)); }
html[data-v-ldallergy="4"] .ld-ico-ring, html[data-v-ldallergy="4"] .ld-ico-slash { stroke: #D93A2E; }
html[data-v-ldallergy="4"] .ld-ico::before { background: radial-gradient(closest-side, rgba(255, 80, 60, .42), rgba(255, 80, 60, 0)); }
html[data-v-ldallergy="4"] .ld-allergy-cta { background: var(--honey-gold, #D4A843); color: var(--ink, #2D1928); box-shadow: 0 6px 16px -8px rgba(212, 168, 67, .8); }
html[data-v-ldallergy="4"] .ld-allergy-btn:hover .ld-allergy-cta { background: #E2BA5C; }
html[data-v-ldallergy="4"] .ld-allergy-btn:focus-visible { outline-color: var(--honey-gold, #D4A843); }
html[data-v-ldallergy="4"] .ld-bonbon-say { background: var(--cream, #FDF8F0); border-color: rgba(212, 168, 67, .55); }
html[data-v-ldallergy="4"] .ld-allergy-full { color: rgba(253, 248, 240, .86) !important; }
html[data-v-ldallergy="4"] .ld-allergy-full strong { color: #F3D58A !important; }
html[data-v-ldallergy="4"] .ld-allergy-full a { color: #E8C46A !important; }
html[data-v-ldallergy="4"] .ld-allergy-full a:focus-visible { outline: 2px solid #E8C46A; outline-offset: 2px; }

/* ---------- 5 · Letterpress card: cream paper, double gold rule, Bonbon steps out, porcelain medallions ---------- */
html[data-v-ldallergy="5"] #menu .unified-allergy.ld-allergy {
  border: 1px solid rgba(184, 144, 45, .55) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #FFFCF6 0%, #FBF3E4 100%) !important;
  box-shadow: 0 0 0 5px #FDF8F0, 0 0 0 6px rgba(184, 144, 45, .32), 0 22px 44px -28px rgba(74, 25, 66, .5);
}
html[data-v-ldallergy="5"] .ldo-deco {
  background-image: repeating-linear-gradient(0deg, rgba(138, 101, 20, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(138, 101, 20, .03) 0 1px, transparent 1px 4px);
}
html[data-v-ldallergy="5"] .ld-allergy-btn { grid-template-areas: "bon copy cta" "bon icons icons"; padding-top: 1.4rem; }
html[data-v-ldallergy="5"] .ld-allergy-avatar { width: 6.5rem; height: 6.5rem; align-self: start; margin-top: -2.4rem; }
html[data-v-ldallergy="5"] .ld-allergy-avatar img { filter: drop-shadow(0 10px 10px rgba(74, 25, 66, .22)); }
html[data-v-ldallergy="5"] .ld-allergy-avatar::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -2px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74, 25, 66, .22), rgba(74, 25, 66, 0));
}
html[data-v-ldallergy="5"] .ld-allergy-copy { background: #FFFDF9; border: 1px solid var(--linen, #EADFCB); box-shadow: inset 0 1px 2px rgba(74, 25, 66, .07), 0 1px 0 #fff; }
html[data-v-ldallergy="5"] .ld-allergy-kicker { display: flex; align-items: center; gap: .55rem; }
html[data-v-ldallergy="5"] .ld-allergy-kicker::after { content: ""; flex: 0 1 3rem; height: 1px; background: linear-gradient(90deg, rgba(184, 144, 45, .7), rgba(184, 144, 45, 0)); }
html[data-v-ldallergy="5"] .ld-allergy-main { font: 500 1.42rem/1.15 'Glaze Display', Georgia, serif; letter-spacing: -.015em; color: var(--plum, #4A1942); }
html[data-v-ldallergy="5"] .ld-allergy-sub { color: var(--ink, #2D1928); }
html[data-v-ldallergy="5"] .ld-allergy-icons {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; padding-top: .95rem;
  border-top: 1px dashed rgba(184, 144, 45, .5);
}
html[data-v-ldallergy="5"] .ld-ico { gap: .4rem; color: #6B3A2C; }
html[data-v-ldallergy="5"] .ld-ico svg {
  width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #fff 0%, #F8F0E3 70%, #EFE3CF 100%);
  box-shadow: inset 0 -2px 3px rgba(138, 101, 20, .14), 0 3px 6px -3px rgba(74, 25, 66, .35);
}
html[data-v-ldallergy="5"] .ld-ico-name { display: block; text-align: center; font: 800 .6rem/1.15 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8E2A22; }
html[data-v-ldallergy="5"] .ld-allergy-cta { box-shadow: 0 0 0 1px rgba(212, 168, 67, .55) inset; }
html[data-v-ldallergy="5"] .ld-bonbon-say { background: #FFFDF9; }

/* ---------- 6 · Glaze drip: honey card with a cream icing drip, Bonbon medallion, red warning rail ---------- */
html[data-v-ldallergy="6"] #menu .unified-allergy.ld-allergy {
  border: 1px solid rgba(184, 144, 45, .6) !important;
  border-radius: 24px !important;
  background: linear-gradient(172deg, #F7E6BC 0%, #F0D394 55%, #E6C072 100%) !important;
  box-shadow: inset 0 -10px 24px -14px rgba(138, 101, 20, .45), 0 24px 48px -30px rgba(138, 101, 20, .8), 0 2px 6px -3px rgba(74, 25, 66, .25);
}
html[data-v-ldallergy="6"] .ldo-drip { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 34px; display: block; filter: drop-shadow(0 3px 2px rgba(138, 101, 20, .22)); }
html[data-v-ldallergy="6"] .ldo-drip path { fill: #FFF8EC; }
html[data-v-ldallergy="6"] .ldo-sheen {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 235, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translate3d(-120%, 0, 0) skewX(-12deg); opacity: 0;
}
html[data-v-ldallergy="6"]:not(.glz-static) .ld-allergy.is-lit .ldo-sheen { animation: ldo-sheen 1.8s ease-out .35s 1 both; }
@keyframes ldo-sheen {
  0% { transform: translate3d(-120%, 0, 0) skewX(-12deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate3d(320%, 0, 0) skewX(-12deg); opacity: 0; }
}
html[data-v-ldallergy="6"] .ld-allergy-btn { padding-top: 2.1rem; }
html[data-v-ldallergy="6"] .ld-allergy-avatar {
  width: 5.25rem; height: 5.25rem; padding: .35rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFDF8, #FBF1DC);
  box-shadow: 0 0 0 3px #FFF8EC, 0 0 0 4.5px var(--honey-gold-dark, #B8902D), 0 12px 22px -12px rgba(74, 25, 66, .55);
}
html[data-v-ldallergy="6"] .ld-allergy-avatar img { filter: none; }
html[data-v-ldallergy="6"] .ld-allergy-copy { background: #fff; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 12px 26px -16px rgba(74, 25, 66, .5); }
html[data-v-ldallergy="6"] .ld-allergy-main { color: var(--plum, #4A1942); }
html[data-v-ldallergy="6"] .ld-allergy-sub { color: var(--ink, #2D1928); }
html[data-v-ldallergy="6"] .ld-allergy-icons {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: .55rem .3rem .5rem; border-radius: 18px;
  background: #FFF5F1; border: 1px solid rgba(200, 55, 45, .3); box-shadow: 0 0 0 4px rgba(255, 245, 241, .45), 0 8px 18px -12px rgba(200, 55, 45, .55);
}
html[data-v-ldallergy="6"] .ld-ico { gap: .3rem; padding: 0 .2rem; color: #6B3A2C; }
html[data-v-ldallergy="6"] .ld-ico + .ld-ico { border-left: 1px solid rgba(200, 55, 45, .16); }
html[data-v-ldallergy="6"] .ld-ico svg { background: #fff; }
html[data-v-ldallergy="6"] .ld-ico-name { display: block; text-align: center; font: 700 .64rem/1.15 'DM Sans', sans-serif; letter-spacing: .03em; color: #7A2620; }
html[data-v-ldallergy="6"] .ld-bonbon-say { background: #FFFDF8; border-color: rgba(184, 144, 45, .4); }
html[data-v-ldallergy="6"] .ld-allergy-full { color: var(--ink, #2D1928) !important; }

/* ---------- Tablet down ---------- */
@media (max-width: 639.98px) {
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-btn {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bon copy" "icons icons" "cta cta"; gap: .85rem .9rem; padding: 1.1rem 1.1rem 1.15rem;
  }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-cta { justify-self: start; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-panel { padding: 0 1.1rem 1.1rem; }
  html[data-v-ldallergy="4"] .ld-allergy-icons { justify-self: stretch; justify-content: space-between; }
  html[data-v-ldallergy="5"] .ld-allergy-btn { padding-top: 1.3rem; }
  html[data-v-ldallergy="6"] .ld-allergy-btn { padding-top: 1.9rem; }
}
/* ---------- Phones ---------- */
@media (max-width: 479.98px) {
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) #menu .unified-allergy.ld-allergy:has(> .glzv) { margin-top: 6.75rem !important; }
  html[data-v-ldallergy="4"] .ldo-deco::after { top: 18%; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-avatar { width: 3.75rem; height: 3.75rem; align-self: start; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-copy { padding: .7rem .85rem .8rem; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-copy::before { top: 12px; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-main { font-size: 1.02rem; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-sub { font-size: .88rem; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico svg { width: 32px; height: 32px; }
  html[data-v-ldallergy="4"] .ld-allergy-icons { gap: .3rem; padding: .45rem .55rem; }
  html[data-v-ldallergy="4"] .ld-ico::before { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  html[data-v-ldallergy="5"] .ld-allergy-avatar { width: 4.5rem; height: 4.5rem; margin-top: -1.9rem; }
  html[data-v-ldallergy="5"] .ld-allergy-main { font-size: 1.22rem; }
  html:is([data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .7rem; }
  html[data-v-ldallergy="5"] .ld-ico svg { width: 38px; height: 38px; }
  html[data-v-ldallergy="6"] .ld-ico + .ld-ico { border-left: 0; }
  html[data-v-ldallergy="6"] .ld-ico:not(:nth-child(3n + 1)) { border-left: 1px solid rgba(200, 55, 45, .16); }
  html[data-v-ldallergy="6"] .ld-ico:nth-child(n + 4) { padding-top: .55rem; border-top: 1px solid rgba(200, 55, 45, .16); }
  html:is([data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico::before { top: 16px; }
  html[data-v-ldallergy="6"] .ld-ico:nth-child(n + 4)::before { top: calc(16px + .55rem); }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-cta { min-height: 44px; }
}
@media (max-width: 359.98px) {
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-btn { padding-inline: .85rem; }
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico svg { width: 28px; height: 28px; }
  html[data-v-ldallergy="4"] .ld-allergy-icons { padding-inline: .4rem; }
}
/* Reduced motion: final state, no sheen, no fades (html.glz-static already covers this; belt and braces). */
@media (prefers-reduced-motion: reduce) {
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-ico::before,
  html:is([data-v-ldallergy="4"], [data-v-ldallergy="5"], [data-v-ldallergy="6"]) .ld-allergy-cta { transition: none !important; }
  html[data-v-ldallergy="6"] .ldo-sheen { display: none; }
}
