.consent-no-scroll {
  overflow: hidden;
}

.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  background: #12131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.consent-banner[hidden],
.consent-modal[hidden],
.consent-backdrop[hidden] {
  display: none;
}

.consent-banner__inner {
  padding: 24px;
}

.consent-banner__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consent-banner__title,
.consent-modal__title {
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.consent-banner__text,
.consent-modal__text,
.consent-modal__copy,
.consent-category__text {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
}

.consent-banner__text a,
.consent-modal__text a,
.consent-modal__copy a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-banner__actions,
.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f1f5f9;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.consent-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.consent-btn:focus-visible,
.consent-toggle__input:focus-visible + .consent-toggle__slider,
.consent-footer-link:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.consent-btn--primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
}

.consent-btn--primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

.consent-btn--secondary {
  background: rgba(255, 255, 255, 0.03);
}

.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(12, 13, 20, 0.72);
  backdrop-filter: blur(4px);
}

.consent-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1002;
  width: min(680px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  background: #12131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.consent-modal__inner {
  padding: 24px;
}

.consent-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.consent-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.consent-modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.consent-categories {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: #1a1b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.consent-category__title {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.consent-toggle {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
}

.consent-toggle__input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.consent-toggle__slider {
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 9999px;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 180ms ease, border-color 180ms ease;
  position: relative;
}

.consent-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
}

.consent-toggle__input:checked + .consent-toggle__slider {
  background: #6366f1;
  border-color: #6366f1;
}

.consent-toggle__input:checked + .consent-toggle__slider::after {
  transform: translateX(22px);
}

.consent-toggle__input:disabled + .consent-toggle__slider {
  opacity: 0.65;
  cursor: not-allowed;
}

.consent-modal__note {
  margin-top: 18px;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.6;
}

.consent-footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .consent-banner__inner,
  .consent-modal__inner {
    padding: 18px;
  }

  .consent-banner__actions,
  .consent-modal__actions {
    flex-direction: column;
  }

  .consent-btn {
    width: 100%;
  }

  .consent-category {
    flex-direction: column;
  }

  .consent-toggle {
    align-self: flex-start;
  }
}
