/* ============================================================
   KSHC — CookieYes banner, restyled on-brand + de-dark-patterned
   ------------------------------------------------------------
   CookieYes ships its own stylesheet and injects markup at
   runtime, so every rule here is !important by necessity.

   THE GDPR POINT: "Accept All" and "Reject All" are rendered
   IDENTICALLY — same box, same border, same fill, same type
   size and weight, same width. Neither is nudged. "Customise"
   sits below as a tertiary text link. Do not re-skin one of
   the two primary buttons to stand out.
   ============================================================ */

/* ── Banner shell ─────────────────────────────────────────── */
.cky-consent-container {
  width: min(430px, calc(100vw - 32px)) !important;
  font-family: var(--font-sans) !important;
}
.cky-consent-container .cky-consent-bar {
  background: var(--ink-0) !important;
  border: 1px solid var(--linen-300) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 2px 0 rgba(20, 21, 29, 0.03), 0 12px 32px rgba(20, 21, 29, 0.12) !important;
  padding: 22px !important;
  font-family: var(--font-sans) !important;
}

/* ── Copy ─────────────────────────────────────────────────── */
.cky-title {
  font-family: var(--font-serif) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  color: var(--ink-900) !important;
  margin: 0 0 8px !important;
}
.cky-notice-des,
.cky-notice-des p,
.cky-preference-content-wrapper,
.cky-gpc-wrapper .cky-gpc-desc,
.cky-gpc-wrapper .cky-gpc-desc p {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-600) !important;
}
.cky-notice-des a,
.cky-preference-content-wrapper a,
.cky-policy {
  color: var(--link) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}
.cky-notice-des a:hover,
.cky-preference-content-wrapper a:hover { color: var(--blue-800) !important; }

/* ── The two primary choices: deliberately identical ──────── */
.cky-notice-btn-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 18px !important;
  flex-wrap: nowrap !important;
}
.cky-notice-btn-wrapper .cky-btn-accept,
.cky-notice-btn-wrapper .cky-btn-reject,
.cky-prefrence-btn-wrapper .cky-btn-accept,
.cky-prefrence-btn-wrapper .cky-btn-reject,
.cky-prefrence-btn-wrapper .cky-btn-preferences {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center !important;
  color: var(--blue-700) !important;
  background: var(--ink-0) !important;
  border: 1.5px solid var(--blue-700) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background var(--dur-fast) var(--ease-std),
              color var(--dur-fast) var(--ease-std) !important;
}
.cky-notice-btn-wrapper .cky-btn-accept:hover,
.cky-notice-btn-wrapper .cky-btn-reject:hover,
.cky-prefrence-btn-wrapper .cky-btn-accept:hover,
.cky-prefrence-btn-wrapper .cky-btn-reject:hover,
.cky-prefrence-btn-wrapper .cky-btn-preferences:hover {
  background: var(--blue-700) !important;
  color: var(--ink-0) !important;
  border-color: var(--blue-700) !important;
}
.cky-btn:focus-visible {
  outline: 2px solid var(--blue-600) !important;
  outline-offset: 2px !important;
}

/* ── "Customise" — tertiary, full width under the two ─────── */
.cky-notice-btn-wrapper .cky-btn-customize {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 6px 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink-600) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--ink-300) !important;
  text-underline-offset: 3px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.cky-notice-btn-wrapper .cky-btn-customize:hover {
  color: var(--blue-700) !important;
  background: none !important;
  text-decoration-color: currentColor !important;
}

/* ── Close ("x") — must not be the only way to decline ────── */
.cky-banner-btn-close img { opacity: 0.55 !important; }
.cky-banner-btn-close:hover img { opacity: 1 !important; }

/* ── Preference centre / modal ────────────────────────────── */
.cky-modal {
  border-radius: var(--r-lg) !important;
  box-shadow: 0 2px 0 rgba(20, 21, 29, 0.03), 0 24px 64px rgba(20, 21, 29, 0.18) !important;
  font-family: var(--font-sans) !important;
}
.cky-preference-center { background: var(--ink-0) !important; border-radius: var(--r-lg) !important; }
.cky-preference-header { border-bottom: 1px solid var(--border-warm) !important; padding-bottom: 14px !important; }
.cky-preference-title {
  font-family: var(--font-serif) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  color: var(--ink-900) !important;
}
.cky-accordion { border-bottom: 1px solid var(--border-warm) !important; }
.cky-accordion-btn {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ink-900) !important;
}
.cky-accordion-header-des p,
.cky-accordion-header-des { color: var(--ink-600) !important; font-size: 13.5px !important; line-height: 1.6 !important; }
.cky-always-active { color: var(--profit) !important; font-size: 12px !important; font-weight: 500 !important; }

/* Toggles — brand blue when on, clearly grey when off */
.cky-switch input[type="checkbox"] { background: var(--ink-300) !important; }
.cky-switch input[type="checkbox"]:checked { background: var(--blue-700) !important; }
.cky-switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue-600) !important; outline-offset: 2px !important; }

.cky-footer-wrapper, .cky-prefrence-btn-wrapper { border-top: 1px solid var(--border-warm) !important; }
.cky-prefrence-btn-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  padding-top: 16px !important;
}
.cky-footer-shadow { display: none !important; }

/* ── Floating revisit badge — present but quiet ───────────── */
.cky-btn-revisit-wrapper {
  background: var(--blue-700) !important;
  box-shadow: var(--shadow-2) !important;
}
.cky-revisit-bottom-left { left: 16px !important; bottom: 16px !important; }

/* ── Narrow screens: stack, still identical to each other ── */
@media (max-width: 480px) {
  .cky-consent-container { width: calc(100vw - 20px) !important; }
  .cky-consent-container .cky-consent-bar { padding: 18px !important; }
  .cky-notice-btn-wrapper { grid-template-columns: 1fr !important; }
  .cky-prefrence-btn-wrapper { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cky-btn, .cky-switch input[type="checkbox"] { transition: none !important; }
}

/* iOS overscroll: no linen band under the navy footer */
html { background: #0F2740; overscroll-behavior-y: none; }
body { background: #FAF7F1; }
