.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9999;
  width: min(680px, calc(100% - 28px));
  transform: translateX(-50%);
  color: #d4e8d6;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-card {
  border: 1px solid rgba(0,230,118,.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0,230,118,.16), transparent 38%),
    rgba(3,7,4,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 32px rgba(0,230,118,.10);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.cookie-title {
  color: #f2faf3;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 6px;
}

.cookie-text {
  color: #8baa8d;
  font-size: .94rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-text a,
.cookie-link {
  color: #00e676;
  text-decoration: none;
}

.cookie-text a:hover,
.cookie-link:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cookie-btn {
  appearance: none;
  border: 1px solid rgba(212,232,214,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #d4e8d6;
  cursor: pointer;
  font: 800 .72rem/1 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  padding: 12px 15px;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  border-color: rgba(0,230,118,.45);
  color: #f2faf3;
  transform: translateY(-1px);
}

.cookie-btn.primary {
  background: linear-gradient(90deg, #8dff00, #00e676);
  border-color: transparent;
  color: #06200c;
}

.cookie-btn.ghost {
  background: transparent;
}

.cookie-panel {
  border-top: 1px solid rgba(0,230,118,.16);
  margin-top: 14px;
  padding-top: 14px;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(212,232,214,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: 13px;
  margin-top: 10px;
}

.cookie-row strong {
  color: #f2faf3;
  display: block;
  font-size: .96rem;
  margin-bottom: 2px;
}

.cookie-row span {
  color: #7a9b7d;
  display: block;
  font-size: .86rem;
  line-height: 1.45;
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 28px;
}

.cookie-toggle input {
  opacity: 0;
  position: absolute;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,232,214,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.cookie-slider:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d4e8d6;
  transition: transform .2s, background .2s;
}

.cookie-toggle input:checked + .cookie-slider {
  border-color: rgba(0,230,118,.55);
  background: rgba(0,230,118,.22);
}

.cookie-toggle input:checked + .cookie-slider:before {
  background: #00e676;
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: .72;
}

.cookie-preferences-link,
a.cookie-preferences-link,
button.cookie-preferences-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 560px) {
  .cookie-consent {
    bottom: 10px;
    width: min(100% - 20px, 680px);
  }

  .cookie-card {
    padding: 15px;
  }

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

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