/* =========================================================
   WDY Round (mobile-first) — Alpine version (tokenized)
   - No quicksets / no toast UI
   - Modal via x-show/x-cloak + simple transitions
   - Actions pinned at card bottom
   ========================================================= */

/* ---------- Root / variables (plugin scope) ---------- */
#wdy-round {
  /* Fluid base type (gentle across phones) */
  font-size: clamp(14px, 1.1vw + 12px, 16px);
  line-height: 1.35;

  /* Type scale tokens (relative to base) */
  --fs-0: .65em;   /* small annotations, chips, price pill */
  --fs-1: .75em;   /* buttons/labels */
  --fs-2: 0.85em;  /* default text */

  /* Layout tokens (plugin only) */
  --gap: 0.75rem;
  --radius: 12px;
  --tap: 34px;     /* round button size used across controls */
  --hdr-h: 56px;

  /* Colors read from your global :root; with safe fallbacks */
  --black: #141414;

  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

/* Map components to tokens */
.price-pill         { font-size: var(--fs-0); }
.pay                { font-size: var(--fs-2); }
.seat .seat-input,
.modal-header .close { font-size: var(--fs-2); }

.woocommerce-Price-amount { font-size: 1.5em !important; }

/* Hide elements until Alpine hydrates them */
[x-cloak] { display: none !important; }

/* iOS paint stability for fixed elements (modal) */
.modal-backdrop,
.modal-panel { will-change: opacity, transform; transform: translateZ(0); }

/* Reduce accidental pull-to-refresh horizontal grabs */
#wdy-round, #wdy-round * { touch-action: manipulation; }
#wdy-round button { -webkit-tap-highlight-color: transparent; user-select: none; }

/* Keyboard/a11y */
#wdy-round button:focus-visible {
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

/* =========================================================
   Header & Filters
   ========================================================= */

/* Sticky header contains both rows */
.br-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: visible; /* keep search overlay visible */
}

/* Top row (seat/status/search) keeps the original height/padding */
.br-top__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--hdr-h);
  padding: 0 1rem calc(0.25rem + env(safe-area-inset-top, 0px));
}

/* Filters now inside header — no sticky here */
.br-top .filters {
  position: static;
  top: auto;
  margin: 0;
  z-index: auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border); /* divider from top row */
  overflow-x: auto;
  scrollbar-width: none;
}
.br-top .filters::-webkit-scrollbar { display: none; }

.br-top .filters button {
  font-family: inherit;
  font-size: 0.95em;
  height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface, #fff);
  white-space: nowrap;
  font-weight: 600;
  color: var(--black);
}
.br-top .filters button.on { border-color: #000; }


.seat .seat-input {
  width: 5.2ch; height: var(--tap);
  border-radius: 10px; border: 1px solid var(--border);
  padding: 0 0.4rem;
  font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; text-align: center;
  background: #fafafa;
}

.status {
  font-weight: 700;
  color: var(--muted);
  font-size: var(--fs-2);
  font-family: inherit;
}


/* =========================================================
   Product Grid & Cards
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* phone-like layout always */
  gap: var(--gap);
  padding: 0.5rem 1rem calc(7.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}

.card {
  display: flex; flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface, #fff);
  -webkit-tap-highlight-color: transparent;
}

/* Image wrapper with price pill */
.card .media {
  position: relative;
  overflow: hidden; /* keeps overlay shadows tidy */
}
.card .media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}

.price-pill {
  position: absolute; top: 8px; left: 8px;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  font-weight: 800; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Meta / title */
.meta {
  display: flex;
  flex-direction: column;        /* stack name + button */
  align-items: flex-start;       /* left aligned */
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9em;
}
.meta .name {
  font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em; /* reserve space for 2 lines */
}

/* Small “Details” pill inside product card */
#wdy-round .meta .info-btn {
  margin-top: 2px;
  margin-left: 0;
  font-size: 0.8em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;                    /* minimal padding */
  line-height: 1;
}

#wdy-round .meta .info-btn:hover {
  filter: brightness(0.97);
}

/* Badges */
.badges { padding: 0 0.75rem 0.25rem; }
.badges .pickup {
  font-size: var(--fs-0);
  border: 1px solid var(--pill);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  color: #333; background: var(--surface, #fff);
}

/* Old row actions (hidden because we overlay on the image) */
.card > .actions { display: none !important; }

/* =========================================================
   Bottom Dock (summary + pay)
   ========================================================= */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface, #fff);
  border-top: 1px solid #eee;
}

.summary {
  width: 100%;
  display: flex; align-items: center; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none;
  padding: 0.5em 0;
}
.summary::-webkit-scrollbar { display: none; }
.hint { color: var(--muted); }

.sumline { display: flex; gap: .5rem; align-items: center; }
.sumline .count { font-weight: 700; }
.viewlist {
  font-family: inherit;
  color: var(--black);
  height: 36px; padding: 0 .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  font-weight: 700;
}

.pay {
  width: 100%; height: 56px;
  border-radius: 14px; border: none;
  font-weight: 900;
  font-size: 1.15em;
  background: var(--primary-color);
  color: var(--color);
}
.pay[disabled] { background: #c9c9c9; color: #fff; }

/* =========================================================
   Modal Bottom Sheet (Alpine x-show / x-cloak)
   ========================================================= */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.25);
}

.modal-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--surface, #fff);
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.15);
  max-height: calc(80vh - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column;
}

/* Alpine transition utilities */
.sheet-enter { transition: transform .24s ease; }
.sheet-leave { transition: transform .18s ease; }
.sheet-from  { transform: translateY(100%); }
.sheet-to    { transform: translateY(0%); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 1rem; border-bottom: 1px solid var(--border);
}
.modal-header .close {
  color: var(--black);
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface, #fff);
  line-height: 1;
}

.modal-body {
  overflow: auto; padding: .5rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.modal-body .muted { color: var(--muted); }

.line { padding: .25rem 0; border-bottom: 1px dashed var(--border); }
.title { display: flex; align-items: center; gap: .5rem; }
.title .nm { font-weight: 700; flex: 1; font-size: 1em; }
.title .qtychip {
  background: var(--surface, #fff);
  font-weight: 700;
  font-size: 0.9em;
}
.edit-btn {
  font-size: 1.55em;
  color: var(--black);
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  display: grid; place-items: center;
}

.inline-editor {
  display: flex; gap: .5rem; align-items: center; padding-top: .5rem;
}
.inline-editor .minus, .inline-editor .plus {
  color: var(--black);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface, #fff);
  font-size: 1.25em; font-weight: 800;
}
.inline-editor .qtyin {
  width: 74px; height: 44px; text-align: center; font-weight: 800;
  border-radius: 10px; border: 1px solid var(--border); background: #fafafa;
}

/* Prevent background scroll when modal open (body class toggled by JS) */
body.wdy-noscroll { overflow: hidden !important; overscroll-behavior: contain; }

/* =========================================================
   Filter-change animations
   ========================================================= */
.grid.filtering .card {
  animation: wdyFadeSlide .24s ease both;
  will-change: transform, opacity;
}
@keyframes wdyFadeSlide {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Tiny three-dot loader in the filters row */
.loader-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: .25rem;
  opacity: .7;
}
.loader-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  animation: wdyDot 1s infinite ease-in-out;
}
.loader-dots i:nth-child(2) { animation-delay: .12s; }
.loader-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes wdyDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .grid.filtering .card { animation: none !important; }
  .loader-dots i { animation: none !important; }
}

/* =========================================================
   Last-call fullscreen alert
   ========================================================= */
.wdy-lastcall-alert {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  background: rgba(220, 38, 38, .14);
  backdrop-filter: saturate(120%) blur(1px);
}
.wdy-lastcall-panel {
  position: relative;
  max-width: 560px; width: calc(100% - 2rem);
  background: #fff;
  border: 1px solid rgba(220, 38, 38, .35);
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem;
  box-shadow: 0 12px 40px rgba(220, 38, 38, .18), 0 4px 10px rgba(0,0,0,.08);
  text-align: center;
  animation: wdyLCScale .18s ease-out both;
}
@keyframes wdyLCScale {
  from { transform: scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.wdy-lastcall-title {
  margin: 0 0 .35rem 0;
  font-weight: 900;
  font-size: 1.25rem;
  color: #b91c1c;
}
.wdy-lastcall-text {
  margin: 0;
  color: #7a2b2b;
  font-size: .95rem;
}
.wdy-lastcall-close {
  position: absolute; right: .5rem; top: .5rem;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  font-weight: 800; line-height: 1;
  cursor: pointer;
}
.wdy-lastcall-close:focus-visible {
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

/* =========================================================
   Stock / Pills
   ========================================================= */
.oos-pill {
  position: absolute; top: 8px; left: 8px;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, .10);
  border: 1px solid rgba(220, 38, 38, .25);
  font-weight: 900; line-height: 1; font-size: var(--fs-0);
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.actions button[disabled] {
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(100%);
  pointer-events: none;
}
.card .oos-pill { display: none; }
.card.is-oos .price-pill { display: none; }
.card.is-oos .oos-pill   { display: inline-block; }

/* =========================================================
   Search (overlay input anchored to the icon)
   ========================================================= */

.wdy-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.wdy-search__toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wdy-search__icon {
  width: 18px;
  height: 18px;
  fill: #111827;
}

/* The expanding overlay: sits to the LEFT of the icon */
.wdy-search__overlay {
  position: absolute;
  top: 50%;
  right: 44px;                 /* leave icon space free */
  transform: translateY(-50%) scaleX(0.001);
  transform-origin: right center;
  height: 40px;
  width: 260px;
  max-width: min(92vw, 340px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  padding: 0 42px 0 10px;
  z-index: 5;
  transition: transform .22s ease, opacity .18s ease, border-color .18s ease;
}
.wdy-search__overlay.is-open {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
  width: 260px;
  max-width: min(92vw, 340px);
  padding: 0 42px 0 10px;
  border-color: #e5e7eb;
  pointer-events: auto;
}
.wdy-search__input {
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0; outline: none;
  color: #111827;
  padding: 0 8px 2px 6px;
  font: 500 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.wdy-search__input::placeholder { color: #6b7280; }
.wdy-search__input::-webkit-search-decoration,
.wdy-search__input::-webkit-search-cancel-button,
.wdy-search__input::-webkit-search-results-button,
.wdy-search__input::-webkit-search-results-decoration { display: none; }
.wdy-search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: #6b7280;
}

/* Extra click space on very narrow screens */
@media (max-width: 520px) {
  .br-top { padding-right: 12px; }
}

/* =========================================================
   Qtybar — centered trio on image (plus/qty/minus)
   ========================================================= */

.qtybar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  /* Grid keeps the whole trio centered as one unit */
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: center;
  column-gap: 8px;          /* space between items */
  padding: 4px 6px;         /* touch padding around items */
  border-radius: 9999px;
  box-sizing: border-box;
  max-width: calc(100% - 16px); /* never spill past image edges */
  contain: layout paint;
  will-change: transform, opacity;
}
.qtybar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.qtybar > * { position: relative; z-index: 1; }
.qtybar.is-open::before { opacity: 1; transform: none; }

/* Buttons */
.qtybar .plus,
.qtybar .minus {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--black);
  font-size: 20px; font-weight: 900; line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, border-color .18s ease, background-color .18s ease;
}
.qtybar .plus:active,
.qtybar .minus:active { transform: scale(.96); }
.qtybar .plus:disabled { opacity: .45; cursor: not-allowed; }

/* Merge look when open (let the bg pill draw the edge) */
.qtybar.is-open .plus,
.qtybar.is-open .minus {
  background: transparent;
  border-color: transparent;
}

/* Qty chip */
.qtybar .qty {
  min-width: 44px;
  height: var(--tap);
  line-height: var(--tap);
  text-align: center;
  font-weight: 800;
  color: var(--black);
}

/* Don’t show overlay on OOS cards */
.card.is-oos .qtybar { display: none !important; }

/* Small phones */
@media (max-width: 420px) {
  .qtybar { bottom: 6px; }
  #wdy-round { --tap: 32px; }
  .qtybar .qty { min-width: 40px; }
}
@media (max-width: 360px) {
  #wdy-round { --tap: 30px; }
  .qtybar .qty { min-width: 36px; }
}

/* Min order amount block */
/* Minimum-order sheet: primary action button */
.wdy-min-sheet .wdy-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  border-radius: 10px;
  background: var(--accent, #111);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition:
    background-color .2s ease,
    filter .2s ease,
    box-shadow .2s ease,
    transform .06s ease;
}

.wdy-min-sheet .wdy-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.wdy-min-sheet .wdy-btn-primary:active {
  transform: translateY(1px);
}

.wdy-min-sheet .wdy-btn-primary:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0,0,0,.06),
    0 2px 8px rgba(0,0,0,.12);
}

.wdy-min-sheet .wdy-btn-primary:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

/* --- Stacked list layout (no images) --- */
#wdy-round main.list {
  display: block;
  padding: 8px 0 calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

#wdy-round .list .row {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-bottom:1px solid var(--line, #eee);
  background:var(--bg, #fff);
}
#wdy-round .list .row.is-oos { opacity:.6; }

#wdy-round .list .row-main { flex:1 1 auto; min-width:0; }
#wdy-round .list .title { font-weight:700; line-height:1.2; }
#wdy-round .list .price { font-size:13px; opacity:.85; margin-top:2px; }
#wdy-round .list .price.oos { opacity:.7; }

#wdy-round .list .row-qty { flex:0 0 auto; margin-left:8px; }

#wdy-round .list .qtywrap {
  display:flex; align-items:center; justify-content:flex-end; gap:8px;
  min-width:40px; /* space for the + alone */
}

/* Buttons look like the grid’s controls */
#wdy-round .list .qtywrap .plus,
#wdy-round .list .qtywrap .minus {
  width:36px; height:36px; border-radius:999px;
  display:inline-grid; place-items:center;
  border:1px solid var(--line, #e6e6e6);
  background:var(--bg-elev, #fafafa);
  font-size:18px; line-height:1; cursor:pointer;
}

#wdy-round .list .qtywrap .plus:disabled { opacity:.5; cursor:not-allowed; }

#wdy-round .list .qtywrap .qty {
  min-width:24px; text-align:center; font-weight:800;
}

/* Optional: subtle slide-in from right for - and qty */
#wdy-round .list .qtywrap .minus[x-cloak],
#wdy-round .list .qtywrap .qty[x-cloak] { display:none !important; }


/* --- Generic buttons (shared) --- */
.wdy-btn,
.wdy-btn-primary {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
  height: 40px;
}

/* Neutral button */
.wdy-btn {
  background: var(--btn-bg, #f3f4f6);
  color: var(--btn-fg, #111);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.06);
}
.wdy-btn:hover         { filter: brightness(0.98); }
.wdy-btn:active        { transform: translateY(1px); }
.wdy-btn[disabled]     { opacity: .6; cursor: not-allowed; }

/* Primary button */
.wdy-btn-primary {
  background: var(--btn-primary-bg, #111);
  color: var(--btn-primary-fg, #fff);
}
.wdy-btn-primary:hover  { filter: brightness(1.05); }
.wdy-btn-primary:active { transform: translateY(1px); }
.wdy-btn-primary[disabled] { opacity: .6; cursor: not-allowed; }

/* Focus visibility */
.wdy-btn:focus-visible,
.wdy-btn-primary:focus-visible {
  outline: 2px solid var(--focus, #2563eb);
  outline-offset: 2px;
}

/* Confirm sheet actions row */
.wdy-confirm-sheet .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .wdy-btn, .wdy-btn-primary { transition: none; }
}

/* Inline loader for confirm actions */
.wdy-loader {
  width: 36px;
  height: 32px;
  color: #111; /* uses currentColor for bars */
  background:
    linear-gradient(#0000 calc(1*100%/6), currentColor 0 calc(3*100%/6), #0000 0),
    linear-gradient(#0000 calc(2*100%/6), currentColor 0 calc(4*100%/6), #0000 0),
    linear-gradient(#0000 calc(3*100%/6), currentColor 0 calc(5*100%/6), #0000 0);
  background-size: 10px 400%;
  background-repeat: no-repeat;
  background-position: 0% 100%, 50% 100%, 100% 100%;
  animation: wdy-matrix 1s infinite linear;
}

/* Keep the loader aligned nicely with the buttons row */
.wdy-confirm-sheet .modal-actions { display:flex; gap:8px; justify-content:flex-end; }
.wdy-confirm-sheet .wdy-loader { align-self:center; }

@keyframes wdy-matrix {
  0%   { background-position: 0% 100%, 50% 100%, 100% 100%; }
  100% { background-position: 0% 0%,   50% 0%,   100% 0%; }
}

/* a11y helper */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

#wdy-round nav.filters .nav-icon{
	height: 24px;           /* feel free to tweak */
	max-height: 28px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}
@media (min-width: 600px){
	#wdy-round nav.filters .nav-icon{ height: 28px; }
}

/* Header layout: seat on the left, languages + search on the right */
#wdy-round .br-top__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
#wdy-round .br-top__bar .seat {
  flex: 1 1 auto;
  min-width: 0;
}

/* Right cluster */
#wdy-round .br-right {
  display: flex;
  align-items: center;
  gap: 10px; /* space between flags and search button */
}

/* Inline language flags */
#wdy-round .wdy-lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
#wdy-round .wdy-lang-inline button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  opacity: .8;
}
#wdy-round .wdy-lang-inline button.on { opacity: 1; }
#wdy-round .wdy-lang-inline svg {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
}

/* (Optional) If you kept the old rail, hide it */
#wdy-round .wdy-lang-rail { display: none !important; }

/* Product info sheet: labels */
.wdy-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6b7280;
  margin: 20px 0 10px;
}

/* “Real write” style list for ingredients / allergens */
.wdy-info-list {
  list-style-position: inside;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0.1rem 0.1rem 0.4rem rgb(0 0 0 / 0.12);
  overflow: hidden;
}

.wdy-info-list li {
  padding: 6px 0 6px 0.8rem;
  font-size: 0.9rem;
}

/* soft separators */
.wdy-info-list li:not(:last-child) {
  border-bottom: 1px solid #e0f2fe;
}

/* Fun markers (adapted from your example) */
.wdy-info-list li::marker {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='14' viewBox='0 0 50 50'%3E%3Cpath d='M46.4 16.2c-2.3-2.3-5.4-3.5-8.4-4.5-.5-.2-1.1-.3-1.6-.5-1.6-1.6-3.7-2.8-6.2-3.2-1-.2-1.9.1-2.5.6-.9-.3-1.8-.6-2.7-.8-3.2-1-6.4-1.8-9.5-.1-1 .5-1.9 1.2-2.7 2-6.4 1.4-11.7 5-12.4 12.7C0 27 1.9 31.5 4.9 34.9c.1.6.2 1.1.4 1.7 1 3.2 3.3 5.7 6.7 6.5 2.7.6 5.4-.2 7.9-1.2 3.3.4 6.7.3 9.9 0 6.5-.7 13.3-2.8 17.1-8.5 3.6-5.2 4-12.6-.5-17.2zm-17.3.9c2.1.4 4 1.7 4.7 3.8 0 .5-.1 1.1-.2 1.6-.3 1.4-.8 2.6-1.6 3.7-.7.2-1.5.1-2.3-.4-.8-.4-1.6-1-2.2-1.6-.4-.4-1.2-1.7-1.6-1.9 3.4 1.3 5.1-3 3.2-5.2zm-11.6 9.7c.2-1.9 1.1-3.9 2.3-5.5-.4 2.1.3 4.2 1.7 6 1.3 1.7 3.1 3.2 5 4.2-.2.1-.4.2-.6.4-.1 0-.1.1-.2.1-3.9.2-8.7-.8-8.2-5.2zm-6.4 3.1c.1.3.1.7.2 1 .2.6.4 1.2.7 1.8-.4-.2-.7-.5-1-.7.1-.8.1-1.4.1-2.1zm31.2-1.3c-.9 1.7-2.1 3.1-3.7 4.1 2-2.1 3.4-4.7 4-7.6.2-.7.3-1.4.3-2.1.6 1.5.5 3.3-.6 5.6z'/%3E%3C/svg%3E") ' ';
}

.wdy-info-list li:nth-child(3n)::marker {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='14' viewBox='0 0 50 50'%3E%3Cpath d='M46.5 12.5c-.4-1.1-1.3-1.8-2.2-2-4.2-4-11.6-4.3-17.1-4.1-6.9.3-13.9 2.1-19.4 6.5C2 17.5-2.4 25.7 2.5 32.6c2.2 3.2 5.5 4.9 9 5.5 3.3 1.7 6.7 3.3 10.2 4.4 7.8 2.3 17 1.6 23.2-4.3 7.3-7 4.8-17.3 1.6-25.7zm-20.2 2.7c.6 0 1.3 0 1.8.2 1.1.4 1.7 1.3 2 2.3-1-1.2-2.4-2.1-3.8-2.5zm-1.4 6.6c.9.9 1.3 2.2-.2 2.3-2 .2-1.1-1.9.2-2.3zm-11.8 9.8c-.6-.3-2.9-1.1-3.2-1.8-.2-.5 1.4-3.1 2.1-4.2.3.5.7 1 1.2 1.4 0 .3.1.6.2.8.5 1.9 1.5 3.1 2.9 4h-.2c-.8.1-1.6.1-2.5-.1-.2 0-.3 0-.5-.1zM24 36.4c1.6-.7 3-1.5 4.3-2.5.8.2 1.7.3 2.5.5 2.5.4 5.2.9 7.7.6-.9.6-2 1.1-3 1.4-3.9 1.3-7.7 1-11.5 0z'/%3E%3C/svg%3E") ' ';
}

.wdy-info-list li:nth-child(3n - 1)::marker {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='14' viewBox='0 0 50 50'%3E%3Cpath d='M48.3 23.7c-1-9.9-9.9-15.6-18.8-17.8-8.2-2.1-18.8-2.6-24.6 4.8C.6 16.2 1 23.6 4.3 29.3c-.5 1-.8 2-1 3-.6 4 2 7.6 5.1 10 5.9 4.4 14 4.2 19.6-.4 1.5 0 2.9-.2 4.4-.5 1.8 0 3.5 0 5.3-.1 2.3-.1 3.5-1.9 3.5-3.7 4.5-3.3 7.7-8.2 7.1-13.9zM9.1 17.8c1.1-4.1 4.9-5.8 8.8-6.1.9-.1 1.9-.1 2.9-.1-3.2 1.6-6.3 4.6-8 7.4-.1.1-.1.2-.2.3-1.1.9-2.1 1.9-3 2.9-.2.2-.4.4-.5.6-.4-1.7-.5-3.3 0-5z'/%3E%3C/svg%3E") ' ';
}

/* Allergen icons grid */
.wdy-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 56px));
  gap: 8px;
  margin-top: 4px;
}

.wdy-allergen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px 4px;
  border-radius: 10px;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wdy-allergen img {
  display: block;
  max-width: 30px;
  max-height: 30px;
}

/* Small pill that appears when clicked */
.wdy-allergen-label {
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dbeafe;           /* light blue */
  color: #1f2937;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 72px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Subtle emphasis on active allergen */
.wdy-allergen.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4);
}

/* Seat Gate */
.wdy-seat-gate__or {
	margin: 10px 0 4px;
	text-align: center;
	font-size: 13px;
	opacity: .8;
}

.wdy-seat-gate__btn--stand {
	background-color:#ffffff;
	color:black;
	margin-top: 4px;
	padding: 10px 14px;
}