.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  width: min(820px, calc(100% - 40px));
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(123, 220, 255, 0.3);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(8, 30, 52, 0.94), rgba(5, 18, 34, 0.97));
  box-shadow: 0 24px 70px rgba(0, 5, 16, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(130%);
  opacity: 0;
  transform: translate(-50%, 18px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

.cookie-consent.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.cookie-consent__glow {
  position: absolute;
  top: -80px;
  right: 8%;
  width: 260px;
  height: 180px;
  border-radius: 50%;
  background: rgba(38, 192, 255, 0.18);
  filter: blur(55px);
  pointer-events: none;
}

.cookie-consent__content,
.cookie-consent__actions {
  position: relative;
  z-index: 1;
}

.cookie-consent__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: #79dcff;
  font-family: "Oxanium", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cookie-consent__eyebrow span {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, #58d9ff, #f26822);
  box-shadow: 0 0 8px rgba(88, 217, 255, 0.55);
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.12;
}

.cookie-consent p:not(.cookie-consent__eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.008em;
}

.cookie-consent p a {
  color: #8be5ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent p a:hover {
  color: #fff;
}

.cookie-consent .cookie-consent__note {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.79rem;
}

.cookie-consent__actions {
  display: grid;
  gap: 9px;
  min-width: 164px;
}

.cookie-button {
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 0.76rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.cookie-button:focus-visible,
.footer-cookie-settings:focus-visible {
  outline: 2px solid #58d9ff;
  outline-offset: 3px;
}

.cookie-button--primary {
  color: #04111f;
  background: linear-gradient(135deg, #8be5ff, #58d9ff);
  box-shadow: 0 9px 24px rgba(39, 190, 239, 0.22);
}

.cookie-button--primary:hover {
  box-shadow: 0 12px 30px rgba(39, 190, 239, 0.34);
}

.cookie-button--secondary {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.cookie-button--secondary:hover {
  border-color: rgba(88, 217, 255, 0.38);
  background: rgba(88, 217, 255, 0.08);
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-cookie-settings:hover {
  color: #58d9ff;
}

@media (max-width: 680px) {
  .cookie-consent {
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 24px);
    padding: 20px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

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