.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 26px;
  border: 2px solid #59e7ee;
  border-radius: 21px;
  color: #06142b;
  background:
    radial-gradient(circle at 92% 0%, rgba(45, 231, 240, 0.16), transparent 34%),
    #ffffff;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.72),
    0 0 0 7px rgba(45, 231, 240, 0.12),
    0 0 48px rgba(45, 231, 240, 0.22);
}

.cookie-banner[data-visible="true"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cookie-banner__eyebrow,
.cookie-banner__title,
.cookie-banner__copy {
  margin: 0;
}

.cookie-banner__eyebrow {
  color: #057b89;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-banner__title {
  margin-top: 5px;
  color: #06142b;
  font-size: 1.23rem;
  letter-spacing: -0.02em;
}

.cookie-banner__copy {
  max-width: 720px;
  margin-top: 7px;
  color: #43566d;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-banner__copy a,
.cookie-settings__intro a,
.consent-option a {
  color: #087d8b;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(165px, 1fr));
  gap: 10px;
}

.cookie-banner .cookie-button {
  min-height: 54px;
  border-radius: 13px;
  font-size: 0.83rem;
}

.cookie-banner .cookie-button--reject {
  border-color: #a8b8c8;
  color: #263c55;
  background: #f3f6f9;
}

.cookie-banner .cookie-button--reject:hover {
  border-color: #758ca4;
  color: #0b213b;
  background: #e9eff4;
}

.cookie-banner .cookie-button--accept {
  border-color: #0bc7d6;
  color: #00151d;
  background: linear-gradient(180deg, #74f8fa, #21d5e4);
  box-shadow: 0 10px 26px rgba(8, 188, 205, 0.32);
}

.cookie-banner .cookie-button--accept:hover {
  border-color: #00acbd;
  color: #00151d;
  background: linear-gradient(180deg, #91fcfd, #35e5ef);
  box-shadow: 0 12px 30px rgba(8, 188, 205, 0.4);
}

.cookie-banner .cookie-button--settings {
  min-height: 36px;
  border-color: transparent;
  color: #52677e;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner .cookie-button--settings:hover {
  border-color: transparent;
  color: #0a6874;
  background: rgba(45, 231, 240, 0.08);
}

.cookie-button {
  min-height: 47px;
  padding: 10px 15px;
  border: 1px solid rgba(111, 188, 235, 0.36);
  border-radius: 12px;
  color: #e9f6ff;
  background: rgba(12, 37, 68, 0.88);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.cookie-button:hover {
  border-color: rgba(85, 232, 241, 0.76);
  background: rgba(16, 55, 91, 0.94);
  transform: translateY(-1px);
}

.cookie-button--accept,
.cookie-button--reject {
  border-color: rgba(107, 235, 242, 0.58);
}

.cookie-button--accept {
  color: #00151d;
  background: linear-gradient(180deg, #72f7f8, #22d5e4);
}

.cookie-button--accept:hover {
  color: #00151d;
  background: linear-gradient(180deg, #8afcff, #35e4ef);
}

.cookie-button--settings {
  grid-column: 1 / -1;
  min-height: 40px;
  color: #afc3d9;
  background: transparent;
}

.cookie-settings {
  width: min(680px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(98, 211, 238, 0.44);
  border-radius: 22px;
  color: #f7fbff;
  background: #06142b;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.76);
}

.cookie-settings::backdrop {
  background: rgba(0, 5, 16, 0.78);
  backdrop-filter: blur(10px);
}

.cookie-settings__card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 0%, rgba(38, 214, 234, 0.13), transparent 31%),
    linear-gradient(145deg, #081b35, #030b1d 70%);
}

.cookie-settings__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  padding: 19px 21px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(111, 178, 235, 0.16);
  background: rgba(4, 15, 36, 0.95);
  backdrop-filter: blur(12px);
}

.cookie-settings__kicker,
.cookie-settings__title,
.cookie-settings__intro {
  margin: 0;
}

.cookie-settings__kicker {
  color: #6cf2f7;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-settings__title {
  margin-top: 4px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.cookie-settings__close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(124, 182, 235, 0.24);
  border-radius: 12px;
  color: #dcecff;
  background: rgba(10, 34, 64, 0.7);
  font-size: 1.25rem;
  cursor: pointer;
}

.cookie-settings__body {
  padding: 21px;
}

.cookie-settings__intro {
  color: #afc0d7;
  font-size: 0.87rem;
  line-height: 1.58;
}

.consent-options {
  display: grid;
  margin-top: 20px;
  gap: 10px;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px;
  gap: 13px;
  align-items: start;
  border: 1px solid rgba(105, 168, 226, 0.22);
  border-radius: 14px;
  background: rgba(7, 25, 51, 0.68);
}

.consent-option__title,
.consent-option__copy {
  margin: 0;
}

.consent-option__title {
  color: #eef8ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.consent-option__copy {
  margin-top: 5px;
  color: #9eb1c9;
  font-size: 0.76rem;
  line-height: 1.48;
}

.consent-toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.consent-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-toggle span {
  width: 100%;
  border: 1px solid rgba(128, 178, 226, 0.32);
  border-radius: 999px;
  background: #152c4d;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.consent-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dce9f7;
  transition: transform 150ms ease, background 150ms ease;
}

.consent-toggle input:checked + span {
  border-color: #48dce8;
  background: #1ca8ba;
}

.consent-toggle input:checked + span::after {
  background: #fff;
  transform: translateX(20px);
}

.consent-toggle input:focus-visible + span,
.cookie-button:focus-visible,
.cookie-settings__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.consent-toggle input:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-settings__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 19px;
  gap: 9px;
}

.video-consent-surface {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(24px, 5vw, 58px);
  place-items: center;
  text-align: center;
}

.video-consent-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 19, 0.18), rgba(2, 7, 19, 0.72));
}

.video-consent-surface__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-consent-surface__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(2, 9, 24, 0.76);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.video-consent-surface__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(86, 225, 239, 0.52);
  border-radius: 50%;
  color: #78f5f8;
  background: rgba(17, 85, 115, 0.35);
  box-shadow: 0 0 35px rgba(45, 231, 240, 0.12);
}

.video-consent-surface h2,
.video-consent-surface p {
  margin: 0;
}

.video-consent-surface h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  letter-spacing: -0.025em;
}

.video-consent-surface p {
  margin-top: 9px;
  color: #d7e6f5;
  font-size: 0.83rem;
  line-height: 1.55;
}

.video-consent-surface .cookie-button {
  margin-top: 17px;
}

@media (max-width: 760px) {
  .cookie-banner[data-visible="true"] {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cookie-banner__actions {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 19px 17px;
    border-radius: 16px;
  }

  .cookie-banner__actions,
  .cookie-settings__actions {
    grid-template-columns: 1fr;
  }

  .cookie-button--settings {
    grid-column: auto;
  }

  .cookie-settings__header,
  .cookie-settings__body {
    padding: 16px;
  }

  .consent-option {
    padding: 13px;
  }

  .video-consent-surface {
    padding: 20px;
  }
}

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