.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-consent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  width: min(100%, 78rem);
  margin-inline: auto;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(42, 212, 231, 0.08), rgba(146, 44, 136, 0.08)),
    rgba(255, 255, 255, 0.97);
  box-shadow:
    0 24px 68px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.cookie-consent-main {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.cookie-consent-eyebrow {
  color: #6673b0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cookie-consent-main h2 {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-display, "Space Grotesk", "Manrope", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.cookie-consent-main p {
  max-width: 57rem;
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-consent-main a {
  width: fit-content;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(42, 212, 231, 0.55);
  text-underline-offset: 4px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.cookie-consent-button {
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.cookie-consent-button:hover {
  transform: translateY(-1px);
}

.cookie-consent-button:focus-visible,
.cookie-consent-option:focus-within {
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 212, 231, 0.22);
}

.cookie-consent-button-primary {
  border-color: rgba(42, 212, 231, 0.44);
  background: linear-gradient(135deg, rgba(42, 212, 231, 0.88), rgba(156, 235, 244, 0.94));
  color: #08111f;
}

.cookie-consent-button-secondary {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
}

.cookie-consent-button-secondary:hover {
  border-color: rgba(42, 212, 231, 0.42);
  color: #0f172a;
}

.cookie-consent-preferences {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.65rem;
  border-top: 1px solid rgba(203, 213, 225, 0.86);
  padding-top: 1rem;
}

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

.cookie-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.cookie-consent-option span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.cookie-consent-option strong {
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cookie-consent-option small {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.cookie-consent-option input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #0891b2;
}

.cookie-consent-option-locked {
  opacity: 0.74;
}

.cookie-consent-actions-custom {
  justify-content: flex-end;
  margin-top: 0.25rem;
}

@media (max-width: 47.9375rem) {
  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .cookie-consent-card {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    padding: 1rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-button {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent-button {
    transition: none;
  }

  .cookie-consent-button:hover {
    transform: none;
  }
}
