.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  margin: 0 auto;
  width: min(980px, calc(100% - 40px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #d9e0e5;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(18, 28, 38, 0.12);
  padding: 18px;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-layout {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

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

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 14, 20, 0.42);
  display: none;
  place-items: center;
  padding: 20px;
}

.cookie-modal.open {
  display: grid;
}

.cookie-panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #d9e0e5;
  box-shadow: 0 26px 56px rgba(10, 14, 20, 0.2);
  padding: 24px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #e1e7eb;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

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

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

.slider {
  position: absolute;
  inset: 0;
  background: #bcc8d1;
  border-radius: 999px;
  transition: background 0.22s ease;
}

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

.switch input:checked + .slider {
  background: #2d5162;
}

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

@media (max-width: 760px) {
  .cookie-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
