.cookies-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.cookies-settings-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookies-settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
}

.cookies-settings-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 820px;
  padding: 32px;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgb(0 0 0 / 20%);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  z-index: 1;
}

.cookies-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cookies-settings-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.cookies-settings-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.cookies-category-card {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.cookies-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookies-category-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cookies-category-description {
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.5;
}

.cookies-switch {
  position: relative;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.cookies-switch input {
  display: none;
}

.cookies-switch .slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: 0.2s;
}

.cookies-switch .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.cookies-switch input:checked + .slider {
  background: #1429a0;
}

.cookies-switch input:checked + .slider::before {
  transform: translateX(20px);
}

.cookies-switch.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.cookies-settings-footer {
  margin-top: 24px;
}

.cookies-settings-footer button {
  background: #1429a0;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.cookies-settings-footer button:hover {
  background: rgb(42.35 26.257 185.493);
}
