.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 1000;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.open {
  display: flex;
}

.cookie-consent__panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  pointer-events: auto;
  background: var(--surface, #17181d);
  color: var(--text, #f3f4f7);
  border: 1px solid var(--border, rgba(161, 161, 173, 0.22));
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  padding: 18px;
}

.cookie-consent__eyebrow {
  color: var(--muted, #a3a7b8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: var(--text, #f3f4f7);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted, #a3a7b8);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent a {
  color: var(--accent, #e20074);
}

.cookie-consent__options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border, rgba(161, 161, 173, 0.22));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2, #121318) 70%, transparent);
}

.cookie-consent__option strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text, #f3f4f7);
  font-size: 14px;
}

.cookie-consent__option small {
  display: block;
  color: var(--muted, #a3a7b8);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent__switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.cookie-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cookie-consent__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border, #2a2a31);
  transition: background 0.18s ease;
}

.cookie-consent__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
  background: var(--accent, #e20074);
}

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

.cookie-consent__switch input:disabled + .cookie-consent__slider {
  opacity: 0.7;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cookie-consent__button,
.cookie-settings-button {
  appearance: none;
  border: 1px solid var(--border, rgba(161, 161, 173, 0.22));
  border-radius: 8px;
  background: transparent;
  color: var(--text, #f3f4f7);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.cookie-consent__button {
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
}

.cookie-consent__button:hover,
.cookie-settings-button:hover {
  border-color: var(--accent, #e20074);
}

.cookie-consent__button.primary {
  background: var(--accent, #e20074);
  border-color: var(--accent, #e20074);
  color: white;
}

.cookie-settings-button {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  display: none;
  min-height: 34px;
  padding: 0 10px;
  background: var(--surface, #17181d);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.cookie-settings-button.visible {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 560px) {
  .cookie-consent {
    inset: auto 10px 10px 10px;
  }

  .cookie-consent__panel {
    padding: 14px;
  }

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

  .cookie-consent__button {
    width: 100%;
  }
}
