/* The cookie card (owner, 2026-11-24, R190 B): above the bottom bar on a phone, in the corner on a computer. Both answers look the same. */

.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--bottom-bar-room) + 2px); display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 26px rgb(42 33 28 / 0.16); animation: consent-in 0.26s var(--ease); }
.consent[hidden] { display: none; }
.consent p { font-size: 14px; line-height: 1.45; color: var(--soft); }
.consent a { justify-self: start; font-size: 13.5px; color: var(--muted); text-decoration: underline; }
.consent__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consent__answers button { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color 0.15s; }
.consent__answers button:hover { background: var(--surface-2); }
.consent__answers button:focus-visible { outline: 2px solid var(--bordo); outline-offset: 2px; }
.site-footer__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: inherit; cursor: pointer; }
.site-footer__consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

/* a restaurant page has the booking bar there instead of the bottom bar */
@media (max-width: 720px) {
  body:has(.book-bar) .consent { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 721px) {
  .consent { left: 24px; right: auto; bottom: 24px; width: 380px; padding: 17px; }
}

/* the booking bar stays up to this width, with the price at its left */
@media (min-width: 721px) and (max-width: 960px) {
  body:has(.book-bar) .consent { bottom: calc(var(--book-bar-h, 80px) + 12px); }
}

/* the card waits while the guest fills in a booking */
html.sheet-open .consent { display: none; }
