/* Only the optional analytics consent controls. Existing site styling is untouched. */
.analytics-consent {
  position: fixed;
  z-index: 1100;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: center;
  gap: 24px;
  width: auto;
  max-width: 900px;
  margin-inline: auto;
  max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid rgba(201, 162, 77, .3);
  border-radius: var(--radius, 18px);
  background: var(--surface, #121217);
  color: var(--text, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}
.analytics-consent[hidden], .analytics-settings[hidden] { display: none; }
.analytics-consent[inert], .analytics-settings[inert], [inert] .analytics-settings { visibility: hidden; }
.analytics-consent__copy { min-width: 0; }
.analytics-consent__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.analytics-consent__heading strong { display: block; font-size: 17px; line-height: 1.35; font-weight: 800; }
.analytics-consent__copy p { margin: 0; color: var(--muted, rgba(255, 255, 255, .7)); }
.analytics-consent__actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.analytics-consent__actions button,
.analytics-consent__close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: #1a1a20;
  color: var(--text, #fff);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.analytics-consent__actions button { width: 100%; min-height: 42px; padding: 10px 16px; }
.analytics-consent__actions [data-analytics-choice="accepted"] {
  border-color: var(--accent, #c9a24d);
  background: var(--accent, #c9a24d);
  color: #1b1508;
}
.analytics-consent__close { flex: 0 0 28px; width: 28px; height: 28px; padding: 5px; border-radius: 8px; }
.analytics-consent__close svg { display: block; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.analytics-consent button[hidden] { display: none; }
.analytics-consent[aria-hidden="true"] { pointer-events: none; }
.analytics-consent__actions button:focus-visible,
.analytics-consent__close:focus-visible,
.analytics-settings:focus-visible { outline: 2px solid var(--accent, #c9a24d); outline-offset: 3px; }
.analytics-settings {
  appearance: none;
  align-self: flex-start;
  border: 0;
  padding: 2px 0;
  background: none;
  color: var(--muted, rgba(255, 255, 255, .7));
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 77, .45);
  text-underline-offset: 4px;
  cursor: pointer;
}
/* A consent notice never sits above an active checkout/booking/drawer or steals focus. */
body:has(#cartModal.is-open, #drawer.is-open, #drawer.is-preparing, #successModal.is-open, #bookingDialog[open]) > .analytics-consent,
body:has(#cartModal.is-open, #drawer.is-open, #drawer.is-preparing, #successModal.is-open, #bookingDialog[open]) .analytics-settings { visibility: hidden; }
@media (max-width: 600px) {
  .analytics-consent { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .analytics-consent__heading strong { font-size: 16px; }
  .analytics-consent__actions button { min-height: 44px; }
}
@media (hover: hover) and (pointer: fine) {
  .analytics-consent__actions button:hover, .analytics-consent__close:hover { border-color: var(--accent, #c9a24d); }
  .analytics-consent__actions [data-analytics-choice="accepted"]:hover { background: #d5b366; }
  .analytics-settings:hover { color: var(--text, #fff); }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-consent__actions button, .analytics-consent__close { transition: none; }
}
