.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  color: var(--text, #e5eefc);
  background: rgba(8, 13, 23, 0.97);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 22px 60px rgba(2, 8, 23, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter: blur(14px);
}

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

.cookie-consent__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent, #38bdf8);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 10px;
  color: var(--text, #e5eefc);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.25;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted, #94a3b8);
  font-size: 0.94rem;
  line-height: 1.6;
}

.cookie-consent a {
  color: var(--accent, #38bdf8);
  font-weight: 700;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: var(--text, #e5eefc);
  background: rgba(30, 41, 59, 0.82);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: var(--accent, #38bdf8);
  outline: none;
}

.cookie-consent__button--primary {
  border-color: var(--accent, #38bdf8);
  color: #07111f;
  background: var(--accent, #38bdf8);
}

.cookie-settings {
  position: fixed;
  z-index: 9998;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: var(--text, #e5eefc);
  background: rgba(8, 13, 23, 0.94);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.38);
  font: 700 0.82rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

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

@media (max-width: 600px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px;
  }

  .cookie-consent__actions {
    display: grid;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent {
    animation: cookie-consent-in 240ms ease-out;
  }

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