/* Cookie consent banner — bottom sheet, matches site Inter/dark UI */
.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10050;
  padding: 1rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .cookie-consent {
    padding: 1.5rem;
  }
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-panel {
  pointer-events: auto;
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  background: #fff;
  border: 1px solid #e4e6eb;
  box-shadow: 0 -8px 40px rgba(14, 17, 22, 0.12);
}

.cookie-consent-inner {
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .cookie-consent-inner {
    padding: 1.75rem;
  }
}

.cookie-consent-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0e1116;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .cookie-consent-title {
    font-size: 1.25rem;
  }
}

.cookie-consent-desc {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5b616b;
}

.cookie-consent-desc a {
  color: #0e1116;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-desc a:hover {
  color: var(--primary-color, #e50914);
}

.cookie-consent-categories {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edeef2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-cat-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0e1116;
}

.cookie-cat-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8a9099;
}

.cookie-cat-badge {
  flex-shrink: 0;
  border-radius: 999px;
  background: #f6f7f9;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9099;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.125rem;
  width: 3rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: #d5d8de;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.cookie-switch[aria-checked="true"] {
  background: #0e1116;
}

.cookie-switch-knob {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: left 0.15s ease;
}

.cookie-switch[aria-checked="true"] .cookie-switch-knob {
  left: 1.375rem;
}

.cookie-consent-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-consent-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-consent-linkbtn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5b616b;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.cookie-consent-linkbtn:hover {
  color: #0e1116;
}

.cookie-consent-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .cookie-consent-btns {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.cookie-btn {
  min-width: 9rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #0e1116;
  transition: background 0.15s ease, color 0.15s ease;
}

.cookie-btn-outline {
  background: #fff;
  color: #0e1116;
}

.cookie-btn-outline:hover {
  background: #f6f7f9;
}

.cookie-btn-solid {
  background: #0e1116;
  color: #fff;
  border-color: #0e1116;
}

.cookie-btn-solid:hover {
  background: #000;
}

.footer-link.cookie-settings-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: block;
}

.footer-link.cookie-settings-btn:hover {
  text-decoration: underline;
}
