/* Cookie & privacy choices banner, footer credit, map/chat notices and the privacy notice tables.
   Colours come from the site tokens in site.css :root, so every design direction restyles this too. */

.consent {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 640px; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75);
}
.consent[hidden] { display: none; }
.consent-inner { padding: 1.25rem 1.25rem 1rem; }
.consent-h { font: 400 var(--step-1)/1.2 var(--f-display); margin: 0 0 .5rem; color: var(--text); }
.consent-h:focus { outline: none; }
.consent-h:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.consent-text { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.consent a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); }
.consent a:hover { color: var(--brass); }

.consent-prefs { display: grid; gap: .6rem; margin: 0 0 1rem; }
.consent-prefs[hidden] { display: none; }
.consent-cat { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.consent-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-cat-name { font-weight: 700; font-size: .95rem; color: var(--text); cursor: default; }
label.consent-cat-name { cursor: pointer; }
.consent-always { font-size: .8rem; font-weight: 700; color: var(--brass); white-space: nowrap; }
.consent-cat-text { margin: .35rem 0 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }

/* Native checkbox drawn as a switch (still a checkbox for assistive tech; role="switch"). Off = empty track. */
.consent-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 48px; height: 28px; border-radius: 999px; border: 2px solid var(--muted); background: transparent;
}
.consent-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
}
.consent-switch:checked { background: var(--accent); border-color: var(--accent); }
.consent-switch:checked::before { left: 23px; background: var(--accent-ink); }
.consent-switch:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
/* "Accept all" and "Reject non-essential" look exactly the same: neither is nudged. */
.consent-btn {
  min-height: 48px; padding: .7em 1em; border-radius: 999px; cursor: pointer;
  font: 700 .92rem/1.2 var(--f-body); letter-spacing: .01em;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.consent-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.consent-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.consent-btn-quiet { grid-column: 1 / -1; background: transparent; color: var(--text); border-color: var(--line-strong); }
.consent-btn-quiet:hover { background: rgba(var(--text-rgb), .08); border-color: var(--text); }
.consent-btn[hidden] { display: none; }
.consent-status:empty { display: none; }
.consent-status { margin: .75rem 0 0; font-size: .85rem; color: var(--muted); }

@media (min-width: 700px) {
  .consent { left: 24px; right: auto; bottom: 24px; }
  .consent-inner { padding: 1.5rem 1.5rem 1.25rem; }
  .consent-actions { grid-template-columns: 1fr 1fr 1fr; }
  .consent-btn-quiet { grid-column: auto; }
}
/* Phones and tablets: sit above the Call / Directions / WhatsApp / Book bar. */
@media (max-width: 960px) {
  .consent { bottom: calc(92px + env(safe-area-inset-bottom)); max-height: calc(100svh - 110px); }
}
/* Short screens (small phones, landscape): keep the banner compact so the page and its buttons stay reachable. */
.consent-short { display: none; }
@media (max-height: 600px) {
  .consent-inner { padding: .75rem .9rem; }
  .consent-h { font-size: 1rem; margin-bottom: .25rem; }
  .consent-text { font-size: .8rem; line-height: 1.35; margin-bottom: .5rem; }
  .consent-long { display: none; }
  .consent-short { display: inline; }
  .consent-actions { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .consent-btn { min-height: 40px; padding: .35rem .5rem; font-size: .8rem; }
  .consent-btn-quiet { grid-column: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in .35s var(--ease) both; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media print { .consent { display: none !important; } }
/* The "Ask us" button would peek out from behind the banner on small screens. */
@media (max-width: 960px) { .consent-open .concierge-fab { visibility: hidden; } }

main:focus { outline: none; }

/* Footer: agency credit */
.footer-credit { margin: 1.25rem 0 0; font-size: .78rem; color: var(--muted); }
.footer-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.footer-credit a:hover { color: var(--text); text-decoration-color: var(--brass); }

/* Small notices: map facade, chat, forms */
.map-note { margin: .6rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.map-note a { color: var(--text); }
.concierge-note { margin: 0; padding: .55rem 1rem; font-size: .76rem; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); }
.concierge-note a { color: var(--text); }
.form-privacy { margin-top: .6rem; }
.form-privacy a, .form-note a { color: var(--text); }

/* Privacy notice page */
.privacy-doc h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.privacy-doc h3 { font-size: var(--step-1); margin-top: 1.5rem; }
.privacy-doc .lede { color: var(--muted); }
.privacy-summary { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.privacy-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.privacy-summary li + li { margin-top: .35rem; }
.privacy-toc { columns: 2 14rem; margin: 1rem 0 0; padding-left: 1.2rem; }
.privacy-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; }
.privacy-table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.5; min-width: 640px; }
.privacy-table caption { text-align: left; padding: .75rem 1rem; font-weight: 700; color: var(--text); }
.privacy-table th, .privacy-table td { text-align: left; vertical-align: top; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.privacy-table thead th { background: var(--surface); color: var(--brass); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.privacy-table tbody th { color: var(--text); font-weight: 700; }
.privacy-table td { color: var(--muted); }
.privacy-doc .btn-row { margin-top: 1rem; }
