/* Scirocco Cookie Consent */
:root {
  --cc-bg: #0d1f27;
  --cc-bg-soft: #142a34;
  --cc-text: #ffffff;
  --cc-muted: #c6d1d6;
  --cc-accent: #49a9cc;
  --cc-border: rgba(255,255,255,.16);
  --cc-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.cc-hidden { display: none !important; }

.cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(3, 12, 16, .48);
  backdrop-filter: blur(2px);
}

.cc-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2147483001;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  color: var(--cc-text);
  background: rgba(13,31,39,.97);
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  box-shadow: var(--cc-shadow);
  font-family: "Noto Sans", Arial, sans-serif;
}

.cc-banner__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
}

.cc-banner h2,
.cc-modal h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.cc-banner p,
.cc-modal p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.65;
}

.cc-banner a,
.cc-modal a {
  color: #7fd3ef;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.cc-btn {
  appearance: none;
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 17px;
  font: 700 12px/1 "Noto Sans", Arial, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 3px solid rgba(73,169,204,.45); outline-offset: 2px; }

.cc-btn--primary {
  color: #fff;
  background: var(--cc-accent);
  border-color: var(--cc-accent);
}

.cc-btn--secondary {
  color: #fff;
  background: transparent;
}

.cc-btn--light {
  color: #0d1f27;
  background: #fff;
  border-color: #fff;
}

.cc-modal {
  position: fixed;
  z-index: 2147483002;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 24px;
  color: var(--cc-text);
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  box-shadow: var(--cc-shadow);
  font-family: "Noto Sans", Arial, sans-serif;
}

.cc-modal__top {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cc-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
}

.cc-category {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--cc-border);
}

.cc-category strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

.cc-category small {
  display: block;
  color: var(--cc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cc-always-on {
  color: #8dd7ef;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cc-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #52636b;
  cursor: pointer;
  transition: background .2s ease;
}

.cc-switch span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.cc-switch input:checked + span { background: var(--cc-accent); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid rgba(73,169,204,.45); outline-offset: 2px; }

.cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--cc-border);
}

.cc-settings-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.footer-cookie-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.footer-cookie-link:hover {
    opacity: .8;
}

@media (max-width: 760px) {
  .cc-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 17px;
    border-radius: 15px;
  }
  .cc-banner__inner { grid-template-columns: 1fr; gap: 15px; }
  .cc-actions { justify-content: stretch; }
  .cc-actions .cc-btn { flex: 1 1 calc(50% - 6px); }
  .cc-actions .cc-btn--primary { flex-basis: 100%; order: -1; }
  .cc-banner h2, .cc-modal h2 { font-size: 21px; }
  .cc-modal { padding: 19px; }
}

@media (max-width: 430px) {
  .cc-actions .cc-btn { flex-basis: 100%; }
  .cc-category { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-btn, .cc-switch span, .cc-switch span::after { transition: none; }
}
