/* CP3 cookie consent banner + preferences modal */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: var(--black, #080808);
  color: var(--white, #fff);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem var(--edge-gutter, 2.5rem);
  font-family: 'PP Neue Montreal', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 100;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cookie-consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-consent-text {
  flex: 1 1 20rem;
  font-size: var(--fs-xs, 0.875rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.cookie-consent-text a {
  color: var(--white, #fff);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-consent-btn {
  font-family: inherit;
  font-weight: 100;
  font-size: var(--fs-2xs, 0.75rem);
  letter-spacing: 0.02em;
  padding: 0.625rem 1.25rem;
  border-radius: 200rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cookie-consent-btn--primary {
  background: var(--blue, #005BFF);
  color: var(--white, #fff);
  border-color: var(--blue, #005BFF);
}
.cookie-consent-btn--primary:hover {
  background: #004bcc;
  border-color: #004bcc;
}
.cookie-consent-btn--secondary {
  background: transparent;
  color: var(--white, #fff);
  border-color: rgba(255, 255, 255, 0.35);
}
.cookie-consent-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
}
.cookie-consent-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.cookie-consent-btn--ghost:hover {
  color: var(--white, #fff);
}

/* Preferences modal */
.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 8, 8, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.cookie-consent-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.cookie-consent-dialog {
  background: var(--white, #fff);
  color: var(--black, #080808);
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}
.cookie-consent-dialog h2 {
  font-size: var(--fs-md, 1.25rem);
  font-weight: 100;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cookie-consent-dialog > p {
  font-size: var(--fs-xs, 0.875rem);
  color: var(--grey, #86868B);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.cookie-consent-category {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.cookie-consent-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-consent-category h3 {
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 100;
  margin-bottom: 0.25rem;
}
.cookie-consent-category p {
  font-size: var(--fs-2xs, 0.75rem);
  color: var(--grey, #86868B);
  line-height: 1.5;
}
.cookie-consent-badge {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey, #86868B);
  flex-shrink: 0;
  padding-top: 0.125rem;
}
.cookie-consent-toggle {
  position: relative;
  width: 2.5rem;
  height: 1.375rem;
  flex-shrink: 0;
}
.cookie-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-consent-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 200rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-consent-toggle input:checked + .cookie-consent-toggle-track {
  background: var(--blue, #005BFF);
}
.cookie-consent-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--white, #fff);
  border-radius: 50%;
  transition: transform 0.2s;
  pointer-events: none;
}
.cookie-consent-toggle input:checked ~ .cookie-consent-toggle-thumb {
  transform: translateX(1.125rem);
}
.cookie-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}
.cookie-consent-modal-actions .cookie-consent-btn--primary,
.cookie-consent-modal-actions .cookie-consent-btn--secondary {
  color: var(--black, #080808);
}
.cookie-consent-modal-actions .cookie-consent-btn--primary {
  color: var(--white, #fff);
}
.cookie-consent-modal-actions .cookie-consent-btn--secondary {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--black, #080808);
}
.cookie-consent-modal-actions .cookie-consent-btn--secondary:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem var(--edge-gutter, 1rem);
  }
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
