html:has(.cookie-preferences:not([hidden])) { scroll-padding-bottom: min(27rem, 48dvh); }
.cookie-preferences {
  position: fixed;
  z-index: 120;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: min(27rem, calc(100% - 1.5rem));
  max-height: min(26rem, calc(100dvh - 1.5rem));
  overflow: auto;
  box-sizing: border-box;
  padding: 1.15rem;
  border: 1px solid #9aa9a3;
  border-radius: 0.6rem;
  box-shadow: 0 0.5rem 1.5rem #173d3d24;
  background: #fcfaf4;
  color: #173d3d;
  font: 0.9rem/1.45 system-ui, sans-serif;
}
.cookie-preferences[hidden], .cookie-preferences [hidden], [data-cookie-settings][hidden] { display: none; }
.cookie-preferences h2 { margin: 0; color: inherit; font: 650 1.1rem/1.3 system-ui, sans-serif; }
.cookie-preferences p { margin: 0.45rem 0 0.8rem; }
.cookie-preferences a { color: inherit; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cookie-preferences button {
  min-height: 2.75rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #173d3d;
  border-radius: 0.25rem;
  background: #173d3d;
  color: #fff9ed;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .cookie-preferences { padding: 0.85rem; max-height: min(26rem, 46dvh); }
  body:has(.cookie-preferences:not([hidden])) .mobile-booking { visibility: hidden; pointer-events: none; }
}
.cookie-preferences [data-custom] { background: transparent; color: #173d3d; }
.cookie-preferences form { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.cookie-preferences form button { justify-self: start; }
.cookie-preferences :focus-visible, [data-cookie-settings]:focus-visible { outline: 2px solid #a87634; outline-offset: 3px; }
[data-cookie-settings] {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 420px) {
  .cookie-preferences {
    right: max(.5rem, env(safe-area-inset-right));
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: calc(100% - 1rem);
    padding: .7rem;
    font-size: .8125rem;
  }
  .cookie-preferences h2 { font-size: 1rem; }
  .cookie-preferences p { margin: .35rem 0 .55rem; }
  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
  }
  .cookie-actions button { padding-inline: .3rem; }
}
