.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(15, 28, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.cookie-banner.hidden,
.cookie-banner-details.hidden {
  display: none !important;
}

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

.cookie-bar-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.cookie-bar-copy strong {
  color: #0e2148;
  font-size: 0.94rem;
  flex-shrink: 0;
}

.cookie-bar-copy span {
  color: #607086;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-bar-actions,
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 28, 47, 0.08);
}

.cookie-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cookie-choice {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 28, 47, 0.06);
  border-radius: 14px;
  background: #faf8f4;
}

.cookie-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-choice-head span {
  font-weight: 700;
  color: #0e2148;
}

.cookie-choice p {
  margin: 0;
  color: #607086;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}

.cookie-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15, 28, 47, 0.14);
  transition: background 0.18s ease;
}

.cookie-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.18s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
  background: #0e2148;
}

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

.cookie-switch.is-locked {
  opacity: 0.78;
}

.cookie-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 28, 47, 0.1);
  background: #fff;
  color: #0e2148;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.cookie-btn-text {
  border-color: transparent;
  background: transparent;
  color: #607086;
}

.cookie-btn-primary {
  border-color: #0e2148;
  background: #0e2148;
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 33, 72, 0.14);
}

.cookie-settings-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(15, 28, 47, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0e2148;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

@media (max-width: 860px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cookie-bar-actions,
  .cookie-banner-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .cookie-settings-button {
    left: 12px;
    bottom: 12px;
  }
}
