/* =====================================================
   COOKIE CONSENT
===================================================== */

.cookie-banner,
.cookie-preferences {
  position: fixed;
  z-index: 9999;
}

.cookie-banner {
  left: 18px;
  right: 18px;
  bottom: 18px;

  max-width: 760px;
  margin: 0 auto;

  padding: 20px;

  border: 1px solid rgba(253,249,250,.14);
  border-radius: 14px;

  background: rgba(4,3,21,.97);
  color: #fdf9fa;

  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none !important;
}

.cookie-banner h3,
.cookie-preferences h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cookie-banner p,
.cookie-preferences p {
  margin: 0;
  color: rgba(253,249,250,.62);
  font-size: 13px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.cookie-btn,
.cookie-settings-link {
  font: inherit;
  cursor: pointer;
}

.cookie-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(253,249,250,.18);
  background: transparent;
  color: #fdf9fa;
  font-size: 12px;
  font-weight: 800;
}

.cookie-btn-primary {
  background: #ecf401;
  border-color: #ecf401;
  color: #040315;
}

.cookie-btn:hover {
  border-color: #ecf401;
}

.cookie-preferences {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2,2,14,.72);
}

.cookie-preferences-card {
  width: min(620px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(253,249,250,.14);
  border-radius: 16px;
  background: #040315;
  color: #fdf9fa;
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid rgba(253,249,250,.09);
}

.cookie-category:first-of-type {
  margin-top: 18px;
}

.cookie-category strong {
  display: block;
  margin-bottom: 5px;
}

.cookie-category small {
  display: block;
  color: rgba(253,249,250,.48);
  line-height: 1.5;
}

.cookie-category input {
  width: 20px;
  height: 20px;
  accent-color: #ecf401;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(253,249,250,.52);
  font-size: 11px;
}

.cookie-settings-link:hover {
  color: var(--accent, #ecf401);
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 17px;
  }

  .cookie-actions {
    flex-direction: column;
  }

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