.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  width: min(480px, calc(100vw - 40px));
  color: #eef4ff;
  background: rgba(8, 17, 31, .97);
  border: 1px solid rgba(113, 170, 255, .28);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .2s ease, transform .2s ease;
  visibility: hidden;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.cookie-consent__inner {
  padding: 20px 22px;
}

.cookie-consent__title {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.cookie-consent__text,
.cookie-consent__details {
  margin: 0;
  color: #b8c8df;
}

.cookie-consent a {
  color: #73b7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions,
.cookie-consent__settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.cookie-consent button {
  appearance: none;
  border: 1px solid rgba(131, 183, 255, .34);
  border-radius: 999px;
  padding: 10px 14px;
  color: #eaf3ff;
  background: rgba(32, 57, 91, .7);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-consent button:hover,
.cookie-consent button:focus-visible {
  border-color: #73b7ff;
  outline: 2px solid rgba(115, 183, 255, .34);
  outline-offset: 2px;
}

.cookie-consent__primary {
  border-color: transparent !important;
  color: #07101d !important;
  background: linear-gradient(110deg, #72c4ff, #8b6cff) !important;
}

.cookie-consent__secondary {
  background: transparent !important;
}

.cookie-consent__settings {
  display: none;
}

.cookie-consent__settings.is-open {
  display: block;
}

.cookie-consent__settings-title {
  margin: 0 0 13px;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(145, 177, 216, .16);
}

.cookie-consent__option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #73b7ff;
}

.cookie-consent__option strong {
  display: block;
  color: #f4f8ff;
  font-size: 14px;
}

.cookie-consent__option span {
  display: block;
  margin-top: 2px;
  color: #a9bdd8;
  font-size: 13px;
}

.cookie-consent__manage {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: 1px solid rgba(115, 183, 255, .35);
  border-radius: 999px;
  padding: 8px 13px;
  color: #cfe3ff;
  background: rgba(8, 17, 31, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
  cursor: pointer;
  font: 700 12px/1.2 system-ui, sans-serif;
}

.cookie-consent__manage--footer {
  position: static;
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #9fc6ef;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  font-weight: 600;
}

.cookie-consent__manage:hover,
.cookie-consent__manage:focus-visible {
  border-color: #73b7ff;
  outline: 2px solid rgba(115, 183, 255, .3);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-consent {
    position: fixed !important;
    right: 10px;
    top: max(10px, env(safe-area-inset-top));
    bottom: auto;
    left: 10px;
    width: calc(100vw - 20px);
    border-radius: 15px;
  }

  .cookie-consent__inner {
    padding: 17px 18px;
  }

  .cookie-consent__actions button,
  .cookie-consent__settings-actions button {
    flex: 1 1 140px;
  }

  .cookie-consent__manage:not(.cookie-consent__manage--footer) {
    right: 10px;
    top: max(10px, env(safe-area-inset-top));
    bottom: auto;
  }
}

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