/* Consent banner (shared by the main page and the legal pages). */

.cc {
  --cc-bg: #171515;
  --cc-bone: #e8e2d6;
  --cc-ash: #9a948a;
  --cc-blood: #c22a31;
  --cc-blood-hi: #e2393f;
  --cc-hair: rgba(232, 226, 214, 0.14);
  --cc-hair-strong: rgba(232, 226, 214, 0.32);
  position: fixed;
  z-index: 55;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(28px, calc(env(safe-area-inset-right, 0px) + 28px));
  bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  max-width: 34rem;
  color: var(--cc-bone);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.cc[hidden] { display: none !important; }
@media (min-width: 900px) {
  /* bottom-right on wide screens: clear of the shelf caption and the
     finale's buy panel (both left), inside the right scroll rail */
  .cc { left: auto; right: max(64px, calc(env(safe-area-inset-right, 0px) + 64px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); width: 30rem; }
}
.cc__box {
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 14px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-hair-strong);
  border-top: 2px solid var(--cc-blood);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.cc__title {
  margin: 0 0 4px;
  font: 400 18px/1.2 "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  letter-spacing: 0.01em;
  color: var(--cc-bone);
}
.cc__title:focus { outline: none; }
.cc__title:focus-visible { outline: 2px solid var(--cc-blood-hi); outline-offset: 3px; }
.cc__text { margin: 0; color: #cfc9bd; }
.cc a { color: var(--cc-bone); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--cc-hair-strong); }
.cc a:hover { text-decoration-color: var(--cc-bone); }
.cc a:focus-visible, .cc-btn:focus-visible, .cc__switch:focus-visible { outline: 2px solid var(--cc-blood-hi); outline-offset: 2px; }

.cc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--cc-hair-strong);
  border-radius: 0;
  background: transparent;
  color: var(--cc-bone);
  font: 600 10.5px/1.1 "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cc-btn--main { background: var(--cc-blood); border-color: var(--cc-blood); }
.cc-btn--main:hover { background: var(--cc-blood-hi); border-color: var(--cc-blood-hi); }
.cc-btn--line:hover { border-color: var(--cc-bone); }
@media (max-width: 380px) {
  .cc-btn { letter-spacing: 0.08em; padding: 0 6px; }
}

.cc__panel { margin-top: 12px; border-top: 1px solid var(--cc-hair); }
.cc__panel[hidden] { display: none; }
.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cc-hair);
}
.cc__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: default; }
label.cc__label { cursor: pointer; }
.cc__name { font-weight: 600; color: var(--cc-bone); }
.cc__desc { color: var(--cc-ash); font-size: 12px; }
.cc__always { flex: none; font: 600 9.5px/1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cc-ash); white-space: nowrap; }
.cc__signal { margin: 10px 0 0; font-size: 12px; color: var(--cc-ash); }

/* switch: a real checkbox, restyled */
.cc__switch {
  flex: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--cc-hair-strong);
  border-radius: 11px;
  background: #0e0d0d;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cc__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cc-ash);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.cc__switch:checked { background: var(--cc-blood); border-color: var(--cc-blood); }
.cc__switch:checked::after { transform: translateX(18px); background: var(--cc-bone); }

@media (prefers-reduced-motion: reduce) {
  .cc-btn, .cc__switch, .cc__switch::after { transition: none; }
}
@media (forced-colors: active) {
  .cc__box { border: 1px solid CanvasText; }
  .cc__switch { border: 1px solid CanvasText; }
  .cc__switch:checked::after { background: Highlight; }
}

/* "Cookie settings" is a text link beside the policy links, not a third button */
.cc-link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--cc-bone); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--cc-hair-strong);
}
.cc-link:hover { text-decoration-color: var(--cc-bone); }
.cc-link:focus-visible { outline: 2px solid var(--cc-blood-hi); outline-offset: 2px; }
