/* cookie.css */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: none;
}

.cookie-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(18, 18, 18, 0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 18px 18px;
  backdrop-filter: blur(10px);
}

.cookie-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}

.cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.92;
}

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

.cookie-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  font-size: 13px;
}

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

.cookie-btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.cookie-btn:active {
  transform: scale(0.98);
}

.cookie-btn.primary {
  background: #ffffff;
  color: #121212;
  border-color: rgba(255,255,255,0.9);
}

.cookie-btn.primary:hover {
  background: rgba(255,255,255,0.92);
}

.cookie-btn.danger {
  background: rgba(255,255,255,0.08);
}

.cookie-close {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.cookie-close:hover {
  background: rgba(255,255,255,0.08);
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.55);
}

.cookie-modal .modal-card {
  width: min(920px, 100%);
  background: #0f0f0f;
  color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.modal-body {
  padding: 16px 18px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  margin-bottom: 12px;
}

.cookie-option strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.cookie-option p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.4;
}

.cookie-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.cookie-switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background .15s ease;
}

.cookie-switch input::after {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .15s ease;
}

.cookie-switch input:checked {
  background: rgba(255,255,255,0.85);
}

.cookie-switch input:checked::after {
  left: 22px;
}

.cookie-switch input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-actions {
  padding: 14px 18px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Mobile */
@media (max-width: 560px) {
  .cookie-top {
    flex-direction: column;
  }
}