/* CSM Consent UI — cookie banner + preferences modal
   Client/legal review required before final publication. */

.csm-cc, .csm-cc * { box-sizing: border-box; }
.csm-cc { font-family: inherit; color: #1a2233; }

/* ---------- Banner ---------- */
.csm-cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9990;
  background: #fff;
  border-top: 3px solid #003c71;
  box-shadow: 0 -8px 28px rgba(0,0,0,.18);
  padding: 1rem 1.25rem;
  display: none;
}
.csm-cc-banner.is-open { display: block; }
.csm-cc-banner__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem;
  align-items: center;
}
.csm-cc-banner__copy h2 {
  margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; color: #003c71;
}
.csm-cc-banner__copy p {
  margin: 0; font-size: .92rem; line-height: 1.5; color: #303a4b;
}
.csm-cc-banner__copy a {
  color: #003c71; text-decoration: underline; font-weight: 600;
}
.csm-cc-banner__actions {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
}
@media (max-width: 820px) {
  .csm-cc-banner__inner { grid-template-columns: 1fr; }
  .csm-cc-banner__actions { justify-content: stretch; }
  .csm-cc-banner__actions .csm-cc-btn { flex: 1 1 100%; }
}

/* ---------- Buttons (44px min touch target) ---------- */
.csm-cc-btn {
  appearance: none; border: 2px solid transparent; cursor: pointer;
  font: 600 .92rem/1.2 inherit;
  padding: .7rem 1.1rem; min-height: 44px;
  border-radius: 6px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.csm-cc-btn:focus-visible {
  outline: 3px solid #e87722; outline-offset: 2px;
}
.csm-cc-btn--primary { background: #b4540d; color: #fff; border-color: #b4540d; font-weight: 700; }
.csm-cc-btn--primary:hover,
.csm-cc-btn--primary:focus-visible { background: #8f4109; border-color: #8f4109; color: #fff; }
.csm-cc-btn--secondary { background: #003c71; color: #fff; border-color: #003c71; }
.csm-cc-btn--secondary:hover { background: #002a52; border-color: #002a52; }
.csm-cc-btn--ghost { background: #fff; color: #003c71; border-color: #003c71; }
.csm-cc-btn--ghost:hover { background: #eef2f8; }

/* ---------- Modal ---------- */
.csm-cc-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.csm-cc-modal.is-open { display: flex; }
.csm-cc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,15,40,.55);
}
.csm-cc-modal__dialog {
  position: relative;
  background: #fff;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  padding: 1.5rem 1.5rem 1.25rem;
}
.csm-cc-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: .75rem;
}
.csm-cc-modal__head h2 {
  margin: 0; font-size: 1.25rem; color: #003c71; font-weight: 700;
}
.csm-cc-modal__close {
  appearance: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: #303a4b; border-radius: 6px;
  font-size: 1.6rem; line-height: 1;
}
.csm-cc-modal__close:hover { background: #eef2f8; }
.csm-cc-modal__close:focus-visible { outline: 3px solid #e87722; outline-offset: 2px; }
.csm-cc-modal__intro {
  margin: 0 0 1rem; font-size: .94rem; line-height: 1.55; color: #303a4b;
}

/* Category rows */
.csm-cc-cat {
  border: 1px solid #d8dee9; border-radius: 8px;
  padding: 1rem 1rem .9rem; margin-bottom: .75rem;
  background: #f8fafc;
}
.csm-cc-cat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: .4rem;
}
.csm-cc-cat__title {
  font-size: 1rem; font-weight: 700; color: #003c71; margin: 0;
}
.csm-cc-cat__desc {
  margin: 0; font-size: .88rem; line-height: 1.5; color: #404a5d;
}
.csm-cc-cat__locked {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #2f7a3c; background: #e7f4ea; padding: .25rem .55rem; border-radius: 999px;
}

/* Toggle switch */
.csm-cc-switch {
  position: relative; display: inline-block; width: 46px; height: 26px;
  flex: 0 0 46px;
}
.csm-cc-switch input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0;
}
.csm-cc-switch__track {
  position: absolute; inset: 0;
  background: #b6bfcd; border-radius: 999px;
  transition: background .15s ease;
}
.csm-cc-switch__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.csm-cc-switch input:checked ~ .csm-cc-switch__track { background: #2f7a3c; }
.csm-cc-switch input:checked ~ .csm-cc-switch__thumb { transform: translateX(20px); }
.csm-cc-switch input:focus-visible ~ .csm-cc-switch__track {
  outline: 3px solid #e87722; outline-offset: 2px;
}

.csm-cc-modal__actions {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
  margin-top: 1rem;
}
@media (max-width: 560px) {
  .csm-cc-modal__actions { justify-content: stretch; }
  .csm-cc-modal__actions .csm-cc-btn { flex: 1 1 100%; }
  .csm-cc-modal__dialog { padding: 1.25rem 1rem 1rem; }
  .csm-cc-modal__head h2 { font-size: 1.1rem; }
}

/* Footer button (used inside .csm-footer__links) */
.csm-footer__cookie-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
  text-align: left; text-decoration: underline; text-underline-offset: 2px;
}
.csm-footer__cookie-btn:hover { color: #e87722; }
.csm-footer__cookie-btn:focus-visible { outline: 2px solid #e87722; outline-offset: 2px; border-radius: 2px; }

/* Booking disclosure note (small inline note next to Book Now CTAs).
   Appears inside the dark-blue footer, so use a light tone for contrast. */
.csm-booking-note {
  display: block; max-width: 22rem;
  font-size: .78rem; line-height: 1.45;
  color: rgba(255, 255, 255, .78);
  margin-top: .5rem;
}
/* Keep readable if ever placed on a light background */
.csm-hero .csm-booking-note,
.page-light .csm-booking-note { color: #5a6678; }
