/* ------------------------------------------------------------------ *
 * Cookie consent banner + preference centre
 * Palette follows the site design system (black-menu #141010, red #e63b3b)
 * ------------------------------------------------------------------ */

.cc-root[hidden] { display: none; }

.cc-btn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.cc-btn:focus-visible { outline: 2px solid #6ecfff; outline-offset: 2px; }

.cc-btn-solid { background: #e63b3b; color: #fff; }
.cc-btn-solid:hover { background: #cf2f2f; }

.cc-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cc-btn-outline:hover { border-color: #fff; }

.cc-btn-ghost { background: transparent; color: #cfcfcf; }
.cc-btn-ghost:hover { color: #fff; text-decoration: underline; }

/* --------------------------- Banner --------------------------- */
.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9998;
  width: min(1120px, calc(100% - 32px));
  background: #141010;
  color: #f2f2f2;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 26px;
  animation: cc-rise .35s ease-out;
}
.cc-banner[hidden] { display: none; }

@keyframes cc-rise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cc-banner-body { flex: 1 1 auto; }
.cc-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.cc-text { font-size: 13.5px; line-height: 1.6; margin: 0; color: #b8b8b8; }
.cc-text a { color: #6ecfff; text-decoration: underline; }

.cc-banner-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------ Preferences ------------------------ */
.cc-prefs { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.cc-prefs[hidden] { display: none; }

.cc-prefs-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }

.cc-prefs-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #17120f;
  color: #f2f2f2;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: cc-pop .25s ease-out;
}
@keyframes cc-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.cc-prefs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cc-prefs-title { font-size: 20px; font-weight: 700; margin: 0; color: #fff; }
.cc-prefs-close {
  background: transparent; border: none; color: #b8b8b8; cursor: pointer;
  padding: 6px; border-radius: 8px; display: inline-flex;
}
.cc-prefs-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.cc-prefs-intro { font-size: 13.5px; line-height: 1.6; color: #b8b8b8; margin: 0 0 20px; }

.cc-cat { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cc-cat-name { font-size: 15px; font-weight: 600; color: #fff; }
.cc-cat-always { font-size: 12px; font-weight: 600; color: #7bd88f; }
.cc-cat-desc { font-size: 13px; line-height: 1.55; color: #a8a8a8; margin: 0; }

/* Toggle switch */
.cc-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cc-slider {
  width: 44px; height: 24px; border-radius: 999px; background: #3a3a3a;
  position: relative; transition: background-color .2s ease; flex: 0 0 auto;
}
.cc-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s ease;
}
.cc-switch input:checked + .cc-slider { background: #e63b3b; }
.cc-switch input:checked + .cc-slider::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid #6ecfff; outline-offset: 2px; }

.cc-prefs-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

body.cc-prefs-open { overflow: hidden; }

/* --------------------------- Mobile --------------------------- */
@media (max-width: 720px) {
  .cc-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; bottom: 12px; }
  .cc-banner-actions { flex-wrap: wrap; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-prefs-actions { flex-direction: column-reverse; }
  .cc-prefs-actions .cc-btn { width: 100%; }
}
