.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2000;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent.is-open {
  pointer-events: auto;
}

.cookie-consent__panel {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(25, 27, 36, 0.98);
  color: #eef3ff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 1.2rem;
  padding: 1.1rem;
}

.cookie-consent__content {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-consent__text {
  margin: 0;
  color: #c8d1e2;
  line-height: 1.5;
  font-size: 0.98rem;
}

.cookie-consent__categories {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.cookie-consent__category {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #f0f4ff;
}

.cookie-consent__switch {
  position: relative;
  width: 58px;
  height: 32px;
  display: inline-block;
}

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

.cookie-consent__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
  background: #1b67be;
  border-color: #1b67be;
}

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

.cookie-consent__switch input:disabled + .cookie-consent__slider {
  background: #1b67be;
  border-color: #1b67be;
  cursor: not-allowed;
  opacity: 0.95;
}

.cookie-consent__switch input:focus-visible + .cookie-consent__slider {
  box-shadow: 0 0 0 2px rgba(27, 103, 190, 0.34);
}

.cookie-consent__actions {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.cookie-consent__btn {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(230, 238, 255, 0.9);
  background: #171d2a;
  color: #f3f6ff;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
  background: #f3f6ff;
  color: #171d2a;
}

.cookie-consent__btn--primary {
  background: #1b67be;
  border-color: #1b67be;
  color: #ffffff;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
  background: #f3f6ff;
  color: #171d2a;
  border-color: rgba(230, 238, 255, 0.9);
}

@media (max-width: 992px) {
  .cookie-consent {
    padding: 0.75rem;
  }

  .cookie-consent__panel {
    width: calc(100% - 1.5rem);
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

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

  .cookie-consent__categories {
    gap: 0.65rem 1rem;
  }
}
