/* The baskets drawer on watadish.com (partials/guide_baskets.twig; vault P060): a button that opens a panel listing the
   diner's basket at each restaurant. A <details>, so it works without a script. Logical properties only (RTL): the
   panel opens under the button, against the inline end of the page. Colours come from the page's own tokens (the
   platform's or the guide's), with plain fallbacks for a page that has none. */
.gb { position: relative; display: inline-block; }
.gb-button { display: inline-flex; align-items: center; gap: 0.4em; min-block-size: 2.75rem; padding-block: 0.45rem; padding-inline: 1rem; border: 2px solid var(--line, #e7e2ea); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #1d1322); font-weight: 650; cursor: pointer; list-style: none; user-select: none; }
.gb-button::-webkit-details-marker { display: none; }
.gb-button::marker { content: ''; }
.gb-button::after { content: ''; inline-size: 0.45em; block-size: 0.45em; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); margin-block-start: -0.2em; transition: transform 0.15s; }
.gb[open] > .gb-button::after { transform: rotate(-135deg); margin-block-start: 0.2em; }
.gb[open] > .gb-button { border-color: var(--brand, #5b2a86); }
.gb-drawer { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 0.5rem); z-index: 40; inline-size: min(26rem, calc(100vw - 2rem)); max-block-size: min(70vh, 34rem); overflow-y: auto; padding: 1rem; border: 1px solid var(--line, #e7e2ea); border-radius: var(--radius, 14px); background: var(--surface, #fff); color: var(--ink, #1d1322); box-shadow: var(--shadow-lift, 0 24px 48px -24px rgb(0 0 0 / 0.35)); text-align: start; }
.gb-title { font-size: 1.1rem; margin-block: 0 0.25rem; }
.gb-lead { margin-block: 0 0.75rem; font-size: 0.875rem; color: var(--muted, #6b5c72); }
.gb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.gb-row { display: grid; grid-template-columns: 3rem 1fr; gap: 0.35rem 0.75rem; align-items: center; padding-block-end: 0.75rem; border-block-end: 1px solid var(--line, #e7e2ea); }
.gb-row:last-child { padding-block-end: 0; border-block-end: 0; }
.gb-logo { inline-size: 3rem; block-size: 3rem; border-radius: var(--radius, 14px); object-fit: cover; background: var(--paper, #fbf7f0); }
.gb-initial { display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: var(--brand-text, var(--ink, #1d1322)); }
.gb-what { display: grid; min-inline-size: 0; }
.gb-name { overflow-wrap: anywhere; }
.gb-summary { font-size: 0.875rem; color: var(--muted, #6b5c72); font-variant-numeric: tabular-nums; }
.gb-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gb-remove { margin: 0; margin-inline-start: auto; }
.gb-remove-button { min-block-size: 2.1rem; padding-block: 0.25rem; padding-inline: 0.5rem; border: 0; background: none; color: var(--danger, #b3261e); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
@media (max-width: 30rem) {
  .gb { position: static; }
  .gb-drawer { position: fixed; inset-inline: 0.75rem; inset-block-start: auto; inset-block-end: 0.75rem; inline-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-button::after { transition: none; }
}
