/* =========================================================================
   COOKIE CONSENT — partials/cookieConsent + assets/js/cookie-consent.js
   ========================================================================= */
.ck-banner,
.ck-modal {
  --ck-ink: var(--pt-ink, #0b1f33);
  --ck-slate: var(--pt-slate, #4a5a6b);
  --ck-gold: var(--pt-gold, #f8b600);
  --ck-gold-dark: var(--pt-gold-dark, #d99500);
  --ck-navy: var(--pt-navy-900, #0a1a2f);
  --ck-ease: var(--pt-ease, cubic-bezier(0.22, 1, 0.36, 1));
  font-family: inherit;
}

.ck-banner[hidden],
.ck-modal[hidden] {
  display: none !important;
}

html.ck-lock {
  overflow: hidden;
}

/* ---- Banner ---- */
.ck-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000000; /* above the floating .sticky-nav (999999) */
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 40px);
  max-width: 1080px;
  padding: 20px 24px;
  border-radius: 24px;
  background: rgba(10, 26, 47, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(5, 11, 22, 0.35);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.45s var(--ck-ease), transform 0.45s var(--ck-ease);
}

.ck-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ck-banner-icon {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 16px;
  background: var(--ck-gold);
  color: var(--ck-ink);
}

.ck-banner-copy {
  flex: 1;
  min-width: 0;
}

.ck-banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  line-height: 1.6;
}

.ck-banner-copy strong {
  color: #fff;
  font-weight: 600;
}

.ck-banner .ck-banner-title {
  margin-bottom: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.ck-banner-copy a {
  color: var(--pt-gold-light, #ffd166);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ck-banner-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

/* ---- Buttons ---- */
.ck-btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ck-ease), color 0.25s var(--ck-ease), border-color 0.25s var(--ck-ease), transform 0.25s var(--ck-ease);
}

.ck-btn:hover {
  transform: translateY(-1px);
}

.ck-btn:focus-visible,
.ck-close:focus-visible,
.ck-switch-input:focus-visible + .ck-switch {
  outline: 2px solid var(--ck-gold);
  outline-offset: 3px;
}

.ck-btn-primary {
  background: var(--ck-gold);
  color: var(--ck-ink);
}

.ck-btn-primary:hover {
  background: var(--ck-gold-dark);
}

.ck-btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.ck-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ck-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ck-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* buttons on the white modal */
.ck-modal .ck-btn-outline {
  border-color: rgba(10, 26, 47, 0.25);
  color: var(--ck-ink);
}

.ck-modal .ck-btn-outline:hover {
  border-color: var(--ck-ink);
  background: rgba(10, 26, 47, 0.04);
}

.ck-modal .ck-btn-ghost {
  background: var(--ck-ink);
  color: #fff;
}

.ck-modal .ck-btn-ghost:hover {
  background: var(--pt-navy-700, #123249);
}

/* ---- Modal ---- */
.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ck-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ck-ease);
}

.ck-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 11, 22, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s var(--ck-ease), transform 0.35s var(--ck-ease);
}

.ck-modal-panel:focus {
  outline: none;
}

.ck-modal.is-open .ck-modal-backdrop,
.ck-modal.is-open .ck-modal-panel {
  opacity: 1;
}

.ck-modal.is-open .ck-modal-panel {
  transform: none;
}

.ck-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ck-modal .ck-modal-title {
  margin: 0 0 4px;
  color: var(--ck-ink);
  font-size: 22px;
  font-weight: 800;
}

.ck-modal-sub {
  margin: 0;
  color: var(--ck-slate);
  font-size: 13.5px;
  line-height: 1.6;
}

.ck-close {
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ck-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ck-close:hover {
  background: #e2e8f0;
}

.ck-cats {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.ck-cat {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f9fb;
  border: 1px solid rgba(10, 26, 47, 0.06);
}

.ck-cat p {
  margin: 10px 0 0;
  color: var(--ck-slate);
  font-size: 13px;
  line-height: 1.65;
}

.ck-cat-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  cursor: pointer;
}

div.ck-cat-head {
  cursor: default;
}

.ck-cat-icon {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

.ck-cat-necessary { background: rgba(31, 163, 107, 0.12); color: #1fa36b; }
.ck-cat-analytics { background: rgba(47, 143, 216, 0.12); color: #2f8fd8; }
.ck-cat-marketing { background: rgba(248, 182, 0, 0.16); color: var(--ck-gold-dark); }

.ck-cat-name {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ck-cat-name strong {
  color: var(--ck-ink);
  font-size: 15px;
  font-weight: 700;
}

.ck-cat-name span {
  color: var(--ck-slate);
  font-size: 12px;
}

/* switch */
.ck-switch-input {
  position: absolute;
  right: 0;
  width: 46px;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ck-switch {
  position: relative;
  flex: 0 0 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.25s var(--ck-ease);
}

.ck-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ck-ease);
}

.ck-switch-input:checked + .ck-switch,
.ck-switch-locked {
  background: var(--ck-gold);
}

.ck-switch-input:checked + .ck-switch span,
.ck-switch-locked span {
  transform: translateX(20px);
}

.ck-switch-locked {
  opacity: 0.55;
}

.ck-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .ck-banner {
    flex-wrap: wrap;
  }

  .ck-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 575px) {
  .ck-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .ck-banner-icon {
    display: none;
  }

  .ck-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ck-banner-actions .ck-btn-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .ck-modal {
    align-items: flex-end;
    padding: 0;
  }

  .ck-modal-panel {
    max-height: 92vh;
    padding: 22px 18px;
    border-radius: 24px 24px 0 0;
  }

  .ck-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ck-modal-actions .ck-btn-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-banner,
  .ck-modal-panel,
  .ck-modal-backdrop,
  .ck-switch,
  .ck-switch span {
    transition: none;
  }
}
