.cookie-consent-shell,
.cookie-consent-shell * {
  box-sizing: border-box;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.25rem;
  color: #ffffff;
  background: rgba(19, 13, 39, 0.97);
  box-shadow: 0 24px 80px rgba(10, 5, 28, 0.38);
  font-family: inherit;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner-copy {
  max-width: 760px;
}

.cookie-kicker {
  margin: 0 0 0.45rem;
  color: #ccb8ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-banner h2,
.cookie-modal h2,
.cookie-modal h3 {
  color: inherit;
}

.cookie-banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.cookie-banner p:not(.cookie-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-banner a,
.cookie-modal a {
  color: #ccb8ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.cookie-banner-actions {
  justify-content: flex-end;
}

.cookie-button {
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button-primary {
  color: #1a1030;
  background: #ccb8ff;
}

.cookie-button-primary:hover,
.cookie-button-primary:focus-visible {
  background: #ffffff;
}

.cookie-button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.cookie-button-secondary:hover,
.cookie-button-secondary:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-modal {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 20, 0.72);
  backdrop-filter: blur(6px);
}

.cookie-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow-y: auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 1.3rem;
  color: #21153b;
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(8, 4, 20, 0.38);
}

.cookie-modal-card > p:not(.cookie-kicker) {
  color: #665d75;
  line-height: 1.6;
}

.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  color: #21153b;
  background: #f1ecfb;
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-choice {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e5dff0;
  border-radius: 0.9rem;
  background: #faf8fe;
}

.cookie-choice h3,
.cookie-choice p {
  margin: 0;
}

.cookie-choice p {
  margin-top: 0.3rem;
  color: #665d75;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-always-on {
  flex: 0 0 auto;
  color: #5d398f;
  font-size: 0.76rem;
  font-weight: 800;
}

.cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 1.85rem;
}

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b9b2c5;
  cursor: pointer;
  transition: background 160ms ease;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 10, 40, 0.25);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + span {
  background: #633aa0;
}

.cookie-switch input:checked + span::after {
  transform: translateX(1.4rem);
}

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(99, 58, 160, 0.3);
  outline-offset: 3px;
}

.cookie-modal-actions {
  justify-content: space-between;
  margin-top: 1.5rem;
}

.cookie-modal-open {
  overflow: hidden;
}

.cookie-footer-links button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

@media (max-width: 820px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cookie-banner-actions .cookie-button {
    width: 100%;
  }

  .cookie-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-modal-actions .cookie-button {
    width: 100%;
  }
}

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