/* ==========================================================================
   Serkal Media — Cookie Consent UI
   Self-contained styling. Uses the site's design tokens where present,
   with hardcoded fallbacks so the component renders correctly in isolation.
   ========================================================================== */

.sk-cc,
.sk-cc * { box-sizing: border-box; }

.sk-cc {
  --cc-ink: var(--ink, #050807);
  --cc-ink-2: var(--ink-2, #0A0F0E);
  --cc-cream: var(--cream, #FAF3EB);
  --cc-cream-dim: var(--cream-dim, rgba(250,243,235,.62));
  --cc-cream-faint: var(--cream-faint, rgba(250,243,235,.40));
  --cc-cream-line: var(--cream-line, rgba(250,243,235,.14));
  --cc-cream-hair: var(--cream-hair, rgba(250,243,235,.08));
  --cc-teal: var(--teal, #5AA298);
  --cc-teal-deep: var(--teal-deep, #54827E);
  --cc-display: var(--display, 'Articulat CF','Montserrat',sans-serif);
  --cc-sans: var(--sans, 'Montserrat',system-ui,sans-serif);
  font-family: var(--cc-sans);
}

/* hidden state */
.sk-cc[hidden],
.sk-cc [hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */
.sk-cc-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  max-width: 560px;
  margin-left: auto;
  background: var(--cc-ink-2);
  border: 1px solid var(--cc-cream-line);
  border-radius: 6px;
  padding: 28px 30px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  color: var(--cc-cream);
  animation: sk-cc-rise .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes sk-cc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sk-cc-banner h2 {
  font-family: var(--cc-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--cc-cream);
}

.sk-cc-banner p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--cc-cream-dim);
  margin: 0 0 20px;
}

.sk-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* buttons */
.sk-cc-btn {
  font-family: var(--cc-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
  line-height: 1;
}

.sk-cc-btn-primary {
  background: var(--cc-teal);
  color: var(--cc-ink);
  border-color: var(--cc-teal);
}
.sk-cc-btn-primary:hover { background: var(--cc-cream); border-color: var(--cc-cream); }

.sk-cc-btn-secondary {
  background: transparent;
  color: var(--cc-cream);
  border-color: var(--cc-cream-line);
}
.sk-cc-btn-secondary:hover { border-color: var(--cc-cream); }

.sk-cc-btn-ghost {
  background: transparent;
  color: var(--cc-cream-dim);
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
}
.sk-cc-btn-ghost:hover { color: var(--cc-teal); }

.sk-cc-btn:focus-visible,
.sk-cc-toggle input:focus-visible + .sk-cc-track,
.sk-cc-close:focus-visible {
  outline: 2px solid var(--cc-teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.sk-cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(3,4,4,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: sk-cc-fade .3s ease both;
}

@keyframes sk-cc-fade { from { opacity: 0; } to { opacity: 1; } }

.sk-cc-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cc-ink-2);
  border: 1px solid var(--cc-cream-line);
  border-radius: 8px;
  padding: 34px 34px 28px;
  color: var(--cc-cream);
  position: relative;
}

.sk-cc-modal h2 {
  font-family: var(--cc-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.sk-cc-modal .sk-cc-intro {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--cc-cream-dim);
  margin: 0 0 24px;
}

.sk-cc-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--cc-cream-line);
  background: transparent;
  color: var(--cc-cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.sk-cc-close:hover { border-color: var(--cc-cream); color: var(--cc-teal); }

/* category row */
.sk-cc-cat {
  border-top: 1px solid var(--cc-cream-hair);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: start;
}
.sk-cc-cat:last-of-type { border-bottom: 1px solid var(--cc-cream-hair); margin-bottom: 24px; }

.sk-cc-cat h3 {
  font-family: var(--cc-display);
  font-weight: 500;
  font-size: 15.5px;
  margin: 0 0 6px;
  color: var(--cc-cream);
}
.sk-cc-cat p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cc-cream-dim);
  margin: 0;
  grid-column: 1 / -1;
}
.sk-cc-cat .sk-cc-note {
  font-size: 12px;
  color: var(--cc-cream-faint);
  font-style: italic;
  margin-top: 8px;
}

.sk-cc-always {
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-teal);
  white-space: nowrap;
  padding-top: 2px;
}

/* toggle switch */
.sk-cc-toggle { position: relative; display: inline-flex; align-items: center; }
.sk-cc-toggle input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  width: 46px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}
.sk-cc-track {
  width: 46px;
  height: 26px;
  border-radius: 40px;
  background: rgba(250,243,235,.16);
  border: 1px solid var(--cc-cream-line);
  position: relative;
  transition: background .3s, border-color .3s;
  display: inline-block;
}
.sk-cc-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cc-cream);
  transition: transform .3s, background .3s;
}
.sk-cc-toggle input:checked + .sk-cc-track {
  background: var(--cc-teal);
  border-color: var(--cc-teal);
}
.sk-cc-toggle input:checked + .sk-cc-track::after {
  transform: translateX(20px);
  background: var(--cc-ink);
}
.sk-cc-toggle input:disabled { cursor: not-allowed; }
.sk-cc-toggle input:disabled + .sk-cc-track { opacity: .45; cursor: not-allowed; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .sk-cc-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 24px 22px 22px;
  }
  .sk-cc-actions { flex-direction: column; }
  .sk-cc-btn { width: 100%; text-align: center; }
  .sk-cc-btn-ghost { order: 3; }
  .sk-cc-modal { padding: 28px 22px 24px; }
  .sk-cc-modal-actions .sk-cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-cc-banner,
  .sk-cc-modal-overlay { animation: none; }
  .sk-cc-track::after,
  .sk-cc-btn { transition: none; }
}
