:root {
  --cookie-bg: rgba(14, 20, 28, 0.92);
  --cookie-text: #e9f2ff;
  --cookie-muted: #9db1c9;
  --cookie-border: rgba(255, 255, 255, 0.08);
  --cookie-accent: #ff5722;
  --cookie-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --cookie-bg: rgba(255, 255, 255, 0.98);
    --cookie-text: #0b0f14;
    --cookie-muted: #4b5563;
    --cookie-border: rgba(0, 0, 0, 0.08);
    --cookie-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  }
}

.wt-cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: min(420px, 92vw);
  z-index: 9999;
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--cookie-shadow);
  backdrop-filter: blur(12px);
  animation: wt-slide-in 240ms ease-out;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wt-cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wt-cookie-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.wt-cookie-body {
  font-size: 14px;
  color: var(--cookie-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.wt-cookie-options {
  border: 1px solid var(--cookie-border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.wt-cookie-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.wt-cookie-label {
  display: grid;
  gap: 2px;
}

.wt-cookie-label .name {
  font-weight: 700;
  color: var(--cookie-text);
}

.wt-cookie-label .desc {
  color: var(--cookie-muted);
  font-size: 12px;
}

.wt-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.wt-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wt-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.2s;
  border-radius: 999px;
  border: 1px solid var(--cookie-border);
}

.wt-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.wt-toggle input:checked + .wt-slider {
  background: linear-gradient(135deg, var(--cookie-accent), #ffb703);
  border-color: transparent;
}

.wt-toggle input:checked + .wt-slider:before {
  transform: translateX(18px);
}

.wt-toggle input:disabled + .wt-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.wt-cookie-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.wt-cookie-btn {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--cookie-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cookie-text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wt-cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
}

.wt-cookie-btn.primary {
  background: linear-gradient(135deg, var(--cookie-accent), #ffb703);
  color: #0b0f14;
  border: none;
  box-shadow: 0 12px 28px rgba(255, 87, 34, 0.25);
}

.wt-cookie-links {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cookie-muted);
}

.wt-cookie-links a {
  color: var(--cookie-text);
  font-weight: 700;
  text-decoration: underline;
}

@keyframes wt-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
