.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  max-height: 40vh;
  overflow-y: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #17304d;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.16);
}

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

.cookie-banner__content {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1rem 0 1.1rem;
}

.cookie-banner__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-banner__title {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cookie-banner__text {
  max-width: 60rem;
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner__customize {
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
  margin-top: 0.75rem;
}

.cookie-banner__option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
}

.cookie-banner__option input {
  margin-top: 0.2rem;
}

.cookie-banner__option span {
  display: grid;
  gap: 0.15rem;
}

.cookie-banner__option small {
  color: #64748b;
  font-size: 0.75rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-banner__actions button {
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #17304d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.cookie-banner__actions button:first-child {
  border-color: #17304d;
  background: #17304d;
  color: #ffffff;
}

.cookie-banner__actions button:hover {
  border-color: #0369a1;
}

@media (max-width: 640px) {
  .cookie-banner__content {
    width: min(100% - 1.25rem, 72rem);
    padding: 0.85rem 0 1rem;
  }

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

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