#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 24px;
  background: #131311;
  border: 1px solid rgba(242,239,230,0.14);
  border-radius: 22px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.65);
  color: #f2efe6;
}
#cookie-banner[hidden],
#cookie-modal[hidden] { display: none !important; }

.cookie-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.cookie-text {
  font-size: 14px;
  line-height: 1.55;
  color: #cfcab8;
  margin: 0 0 18px;
}
.cookie-text a { color: #a78bfa; text-decoration: underline; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-btn-accept {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
}
.cookie-btn-accept:hover { background: #a78bfa; }
.cookie-btn-refuse {
  background: transparent;
  color: #f2efe6;
  border-color: rgba(242,239,230,0.28);
}
.cookie-btn-refuse:hover { border-color: #f2efe6; }
.cookie-btn-prefs {
  background: transparent;
  color: #a78bfa;
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
}
.cookie-btn-prefs:hover { color: #fff; }

#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(12,12,11,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-card {
  width: min(460px, 100%);
  background: #131311;
  border: 1px solid rgba(242,239,230,0.14);
  border-radius: 22px;
  padding: 24px;
  color: #f2efe6;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242,239,230,0.2);
  background: transparent;
  color: #f2efe6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(242,239,230,0.1);
}
.cookie-row:last-of-type { margin-bottom: 8px; }
.cookie-row strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.cookie-row p {
  margin: 0;
  font-size: 13px;
  color: #cfcab8;
  line-height: 1.45;
}
.cookie-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch span {
  position: absolute;
  inset: 0;
  background: #2a2a26;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.cookie-switch span::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #f2efe6;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-switch input:checked + span { background: #8b5cf6; }
.cookie-switch input:checked + span::before { transform: translateX(20px); }
.cookie-switch input:disabled + span {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 640px) {
  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; justify-content: center; text-align: center; }
}
