.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: clamp(16px, 3vw, 40px);
  bottom: max(16px, env(safe-area-inset-bottom));
  left: clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - clamp(32px, 6vw, 80px)), 920px);
  max-height: calc(100dvh - 32px);
  margin-left: auto;
  padding: clamp(20px, 2.4vw, 28px);
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(51, 111, 255, .28), transparent 42%),
    #04060f;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(4, 6, 15, .32);
  font-family: 'Gilroy', 'Jost', 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}

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

.cookie-consent__content {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cookie-consent__text {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.cookie-consent__button--primary {
  background: #336fff;
  border-color: #336fff;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid #a8c3ff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .cookie-consent__button:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .56);
    transform: translateY(-1px);
  }

  .cookie-consent__button--primary:hover {
    background: #5a8bff;
    border-color: #5a8bff;
  }
}

@media (max-width: 760px) {
  .cookie-consent {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: auto;
    margin: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent__button {
    width: 100%;
    white-space: normal;
  }
}

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