.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(5,5,5,0.84);
  border: 1px solid rgba(240,208,138,0.35);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 14px 12px;
  display: none;
}

.cookie-consent.is-visible {
  display: block;
  animation: cookieFadeUp .25s ease;
}

@keyframes cookieFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-consent__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.cookie-consent__title {
  margin: 0 0 6px 0;
  font-size: 14px;
  letter-spacing: .01em;
  color: rgba(255,255,255,0.96);
  font-weight: 600;
}

.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
}

.cookie-consent__links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-link {
  color: rgba(240,208,138,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,208,138,0.35);
  font-size: 13px;
}
.cookie-link:hover { border-bottom-color: rgba(240,208,138,0.85); }

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

.cookie-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240,208,138,0.35);
  background: rgba(255,255,255,0.09);
}

.cookie-btn--primary {
  border-color: rgba(240,208,138,0.55);
  background: rgba(240,208,138,0.10);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,0.72);
}

.cookie-modal.is-open { display: grid; }

.cookie-modal__card {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: rgba(5,5,5,0.90);
  border: 1px solid rgba(240,208,138,0.35);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
}

.cookie-modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cookie-modal__head h3 {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.96);
}

.cookie-modal__close {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.cookie-modal__body p {
  margin: 0 0 12px 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.58;
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  margin-bottom: 10px;
}

.cookie-toggle strong {
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

.cookie-toggle span {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.cookie-detail {
  margin-top: 8px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-detail code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.90);
}

.cookie-badge {
  white-space: nowrap;
  align-self: center;
  border: 1px solid rgba(240,208,138,0.35);
  color: rgba(240,208,138,0.95);
  background: rgba(240,208,138,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cookie-badge--muted {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.05);
}

.cookie-modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.cookie-note {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 16px;
  }

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

  .cookie-actions {
    justify-content: flex-start;
  }

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

  .cookie-badge {
    align-self: flex-start;
  }

  .cookie-modal__footer {
    justify-content: stretch;
  }

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