.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: min(480px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(6, 27, 69, 0.16);
  color: #061b45;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  color: #061b45;
  font-size: 20px;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: #5d6a84;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner a {
  color: #061b45;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-options {
  display: none;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner.is-configuring .cookie-options {
  display: grid;
}

.cookie-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  background: #f6f8fc;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #061b45;
}

.cookie-option strong {
  display: block;
  margin-bottom: 2px;
  color: #061b45;
  font-size: 14px;
}

.cookie-option span {
  display: block;
  color: #5d6a84;
  font-size: 13px;
  line-height: 1.45;
}

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

.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #061b45;
  border-radius: 8px;
  background: #ffffff;
  color: #061b45;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button.primary {
  background: #061b45;
  color: #ffffff;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-button {
    width: 100%;
  }
}
