.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  width: auto;
  max-width: 1080px;
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  padding: 26px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #f7f3eb;
  color-scheme: dark;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 160, 137, 0.09), transparent 34%),
    rgba(9, 14, 31, 0.98);
  border: 1px solid rgba(247, 243, 235, 0.2);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.24);
  font-family: Montserrat, "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  animation: cookie-consent-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  -webkit-overflow-scrolling: touch;
}

@supports (backdrop-filter: blur(14px)) {
  .cookie-consent {
    background:
      radial-gradient(circle at 100% 0%, rgba(243, 160, 137, 0.1), transparent 34%),
      rgba(9, 14, 31, 0.94);
    backdrop-filter: blur(14px);
  }
}

@keyframes cookie-consent-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.cookie-consent h2,
.cookie-consent h3,
.cookie-consent p,
.cookie-consent dl,
.cookie-consent dd {
  margin: 0;
  color: inherit;
  font-family: inherit;
}

.cookie-consent h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cookie-consent h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.cookie-consent p {
  color: rgba(247, 243, 235, 0.76);
}

.cookie-consent a {
  color: #ffad96;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
}

.cookie-consent__copy {
  max-width: 610px;
}

.cookie-consent__policy-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 650;
}

.cookie-consent__action-bar,
.cookie-consent__choices,
.cookie-consent__preferences-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-consent__action-bar {
  justify-content: flex-end;
}

.cookie-consent__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 1fr));
}

.cookie-consent button {
  min-height: 48px;
  margin: 0;
  padding: 11px 19px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.cookie-consent__decision,
.cookie-consent__save {
  min-width: 148px;
  color: #0b1021;
  background: #f3a089;
  border: 1px solid #f3a089;
  box-shadow: 0 5px 18px rgba(228, 105, 76, 0.16);
}

.cookie-consent__decision:hover,
.cookie-consent__save:hover {
  background: #f8b39f;
  border-color: #f8b39f;
}

.cookie-consent__manage {
  min-width: 168px;
  color: #f7f3eb;
  background: transparent;
  border: 1px solid rgba(247, 243, 235, 0.38);
}

.cookie-consent__manage:hover {
  background: rgba(247, 243, 235, 0.08);
  border-color: rgba(247, 243, 235, 0.66);
}

.cookie-consent__back {
  min-height: 32px !important;
  margin: -4px 0 10px !important;
  padding: 3px 2px !important;
  color: #ffad96;
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  font-size: 12px !important;
}

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cookie-consent__preferences-head {
  max-width: 820px;
  margin-bottom: 20px;
}

.cookie-consent__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.cookie-consent__category {
  min-width: 0;
  padding: 18px;
  background: rgba(247, 243, 235, 0.055);
  border: 1px solid rgba(247, 243, 235, 0.13);
  border-radius: 16px;
}

.cookie-consent__category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent__category-head > div {
  min-width: 0;
}

.cookie-consent__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgba(247, 243, 235, 0.58);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cookie-consent__status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.cookie-consent__status--fixed {
  color: #b8edcd;
  background: rgba(82, 188, 124, 0.12);
  border: 1px solid rgba(104, 206, 144, 0.32);
}

.cookie-consent__details {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 243, 235, 0.11);
}

.cookie-consent__details > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cookie-consent__details dt {
  color: rgba(247, 243, 235, 0.52);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cookie-consent__details dd {
  color: rgba(247, 243, 235, 0.83);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cookie-consent__details code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94em;
}

.cookie-consent__provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px !important;
  font-size: 11px;
}

.cookie-consent__provider-links span {
  color: rgba(247, 243, 235, 0.34);
}

.cookie-consent__toggle {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 42px auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
}

.cookie-consent__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__toggle-track {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  background: rgba(247, 243, 235, 0.13);
  border: 1px solid rgba(247, 243, 235, 0.34);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent__toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #f7f3eb;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
  background: #f3a089;
  border-color: #f3a089;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track span {
  transform: translateX(18px);
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__toggle-track {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cookie-consent__toggle strong {
  min-width: 24px;
  color: rgba(247, 243, 235, 0.78);
  font-size: 11px;
}

.cookie-consent__preferences-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .cookie-consent__summary {
    display: block;
  }

  .cookie-consent__copy {
    max-width: 760px;
  }

  .cookie-consent__action-bar {
    justify-content: space-between;
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 19px;
  }

  .cookie-consent__action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__choices {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .cookie-consent__manage {
    order: 2;
    width: 100%;
  }

  .cookie-consent__decision,
  .cookie-consent__save {
    min-width: 0;
  }

  .cookie-consent__categories {
    grid-template-columns: 1fr;
  }

  .cookie-consent__category {
    padding: 16px;
  }

  .cookie-consent__preferences-actions {
    position: sticky;
    bottom: -18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px -4px -18px;
    padding: 13px 4px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(9, 14, 31, 0), #090e1f 22%);
  }
}

@media (max-width: 350px) {
  .cookie-consent {
    font-size: 13px;
  }

  .cookie-consent__choices,
  .cookie-consent__preferences-actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent__details > div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
  }

  .cookie-consent__category-head {
    gap: 12px;
  }
}

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

  .cookie-consent *,
  .cookie-consent *::before,
  .cookie-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
