:root {
  --cookie-bg: #0f1115;
  --cookie-text: #f5f7fb;
  --cookie-muted: #aab3c5;
  --cookie-accent: #ed626f;
  --cookie-border: rgba(255, 255, 255, 0.08);
  --cookie-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--cookie-border);
  box-shadow: var(--cookie-shadow);
}

@media (min-width: 768px) {
  .cookie-banner {
    max-width: 720px;
    margin: 0 auto;
    inset: auto 24px 24px 24px;
  }
}

.cookie-banner__title {
    font-family: "Nohemi semi bold", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cookie-banner__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cookie-muted);
}

.cookie-banner__text a {
  color: var(--cookie-accent);
  text-decoration: none;
}

.cookie-banner__text a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--cookie-accent);
  outline-offset: 2px;
}

.cookie-btn--primary {
  background: var(--cookie-accent);
  color: #FFF;
  box-shadow: 0 10px 24px rgba(246, 216, 0, 0.25);
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cookie-text);
}

.cookie-preferences {
  display: none;
  border-top: 1px solid var(--cookie-border);
  padding-top: 12px;
  margin-top: 4px;
  gap: 12px;
}

.cookie-preferences.is-open {
  display: grid;
  gap: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.cookie-toggle__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-toggle__label span {
  font-weight: 600;
  color: var(--cookie-text);
}

.cookie-toggle__label small {
  color: var(--cookie-muted);
  font-size: 0.85rem;
}

.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-switch__slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--cookie-accent);
}

.cookie-switch input:checked + .cookie-switch__slider::after {
  transform: translateX(20px);
}

.cookie-reopen {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: rgba(15, 17, 21, 0.9);
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-reopen:hover {
  background: rgba(15, 17, 21, 1);
}
