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

.cookie-consent {
  position: fixed;
  z-index: 150;
  inset: auto 22px 22px;
  pointer-events: none;
}

.cookie-consent-card {
  width: min(1060px, 100%);
  max-height: min(680px, calc(100vh - 44px));
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(69, 182, 255, .36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(28, 151, 255, .2), transparent 22rem),
    linear-gradient(145deg, rgba(7, 20, 36, .985), rgba(6, 15, 29, .99));
  color: #f5f9ff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .56), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  pointer-events: auto;
}

.cookie-consent-summary {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 25px 27px;
}

.cookie-consent-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 191, 255, .34);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(21, 143, 235, .22), rgba(31, 211, 188, .1));
  box-shadow: 0 12px 32px rgba(0, 132, 255, .13);
}

.cookie-consent-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #49c3ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #54c6ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 29px);
  letter-spacing: -.025em;
}

.cookie-consent-copy p,
.cookie-settings-heading p {
  margin: 0;
  color: #aebed1;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-policy-link {
  display: inline-flex;
  margin-top: 9px;
  color: #51c6ff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  width: 238px;
  display: grid;
  gap: 8px;
}

.cookie-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .17s ease, border-color .17s ease, background .17s ease;
}

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

.cookie-button-primary {
  background: linear-gradient(135deg, #25b8ff, #118cf0);
  color: #03111f;
  box-shadow: 0 8px 24px rgba(17, 140, 240, .24);
}

.cookie-button-secondary {
  border-color: rgba(92, 181, 236, .3);
  background: rgba(20, 69, 105, .28);
  color: #e8f7ff;
}

.cookie-button-text {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  color: #acbbcc;
}

.cookie-settings-panel {
  position: relative;
  padding: 25px 27px 27px;
}

.cookie-settings-heading {
  padding-right: 46px;
}

.cookie-settings-heading h2 {
  margin-bottom: 5px;
}

.cookie-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #cbd6e3;
  font-size: 20px;
  cursor: pointer;
}

.cookie-category-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(119, 175, 220, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.cookie-category strong,
.cookie-category small {
  display: block;
}

.cookie-category strong {
  margin-bottom: 4px;
  color: #f3f8fe;
  font-size: 13px;
}

.cookie-category small {
  max-width: 730px;
  color: #94a7bc;
  font-size: 11px;
  line-height: 1.5;
}

.cookie-always-on {
  color: #72ddba;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cookie-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: block;
  flex: none;
}

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

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #334459;
  cursor: pointer;
  transition: background .18s ease;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dce8f4;
  transition: transform .18s ease;
}

.cookie-switch input:checked + span {
  background: #1399f1;
}

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

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(69, 188, 255, .35);
  outline-offset: 3px;
}

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-cookie-settings:hover {
  color: var(--blue-2);
}

@media (max-width: 800px) {
  .cookie-consent {
    inset: auto 10px 88px;
  }

  .cookie-consent-card {
    max-height: calc(100vh - 108px);
    border-radius: 20px;
  }

  .cookie-consent-summary {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 19px;
  }

  .cookie-consent-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .cookie-consent-icon svg {
    width: 27px;
    height: 27px;
  }

  .cookie-consent-actions {
    width: auto;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent-actions .cookie-button-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cookie-settings-panel {
    padding: 20px 18px;
  }

  .cookie-category {
    gap: 12px;
    padding: 13px;
  }
}

@media (max-width: 480px) {
  .cookie-consent h2 {
    font-size: 20px;
  }

  .cookie-consent-copy p {
    font-size: 12px;
  }

  .cookie-consent-actions,
  .cookie-settings-actions {
    grid-template-columns: 1fr;
    flex-direction: column-reverse;
  }

  .cookie-consent-actions {
    display: grid;
  }

  .cookie-consent-actions .cookie-button,
  .cookie-settings-actions .cookie-button {
    width: 100%;
  }

  .cookie-consent-actions .cookie-button-primary {
    grid-column: auto;
  }
}

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