.cookie-banner {
  position: fixed;
  z-index: 10040;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  max-height: min(70dvh, 36rem);
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-top: 1px solid #ddd6fe;
  border-radius: 0;
  background: #fff;
  color: #1e1b4b;
  padding: 0;
  box-shadow: 0 -8px 24px rgba(49, 46, 129, 0.08);
  font-family: Assistant, Inter, "Segoe UI", sans-serif;
}

.cookie-banner--notice {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.5rem;
  max-height: none;
  overflow: visible;
  padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom));
}

.cookie-banner--notice .cookie-banner__scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  padding: 0;
}

.cookie-banner--notice .cookie-banner__actions {
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cookie-banner--notice .cookie-banner__actions button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.cookie-banner__scroll {
  overflow: auto;
  padding: 0.95rem 1rem 0.35rem;
}

.cookie-banner__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-banner p.cookie-banner__message {
  margin: 0;
}

.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin: 0.3rem 0 0;
}

.cookie-banner h2 {
  margin: 0;
  color: #4c1d95;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}

.cookie-banner h3 {
  margin: 0;
  font-size: 0.98rem;
}

.cookie-banner p {
  margin: 0.45rem 0 0;
  color: #312e81;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.cookie-banner a {
  color: #1d4ed8;
  font-weight: 800;
  text-underline-offset: 0.15em;
}

.cookie-banner :focus-visible {
  outline: 2px solid #5b21b6;
  outline-offset: 2px;
}

.cookie-banner__cat {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #ede9fe;
}

.cookie-banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-banner__disclose {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4c1d95;
  font: inherit;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}

.cookie-banner__chevron {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-inline-end: 0.45rem;
  border-right: 2px solid #5b21b6;
  border-bottom: 2px solid #5b21b6;
  transform: rotate(-45deg);
}

.cookie-banner__disclose[aria-expanded="true"] .cookie-banner__chevron {
  transform: rotate(45deg);
}

.cookie-banner[dir="rtl"] .cookie-banner__chevron {
  transform: rotate(135deg);
}

.cookie-banner[dir="rtl"] .cookie-banner__disclose[aria-expanded="true"] .cookie-banner__chevron {
  transform: rotate(45deg);
}

.cookie-banner__switch,
.cookie-banner__unused {
  flex: none;
  min-width: 7.5rem;
  min-height: 2.2rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid #c4b5fd;
  border-radius: 0;
  background: #fff;
  color: #4c1d95;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.cookie-banner__switch {
  cursor: pointer;
}

.cookie-banner__switch[aria-checked="true"] {
  background: #5b21b6;
  border-color: #5b21b6;
  color: #fff;
}

.cookie-banner__switch:disabled {
  cursor: default;
  opacity: 1;
}

.cookie-banner__details {
  margin-top: 0.45rem;
}

.cookie-banner__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-banner__table th,
.cookie-banner__table td {
  padding: 0.35rem 0.3rem;
  border-top: 1px solid #ede9fe;
  text-align: start;
  vertical-align: top;
}

.cookie-banner__table th {
  color: #5b21b6;
  font-weight: 800;
}

.cookie-banner__note {
  margin: 0;
}

.cookie-banner__error {
  color: #9f1239;
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem 1rem 0.9rem;
  border-top: 1px solid #ede9fe;
  background: #fff;
}

.cookie-banner__actions button {
  flex: 1 1 9rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner__primary {
  border: 1px solid #5b21b6;
  background: #5b21b6;
  color: #fff;
}

.cookie-banner__primary:hover {
  background: #4c1d95;
}

.cookie-banner__outline {
  border: 1px solid #5b21b6;
  background: #fff;
  color: #5b21b6;
}

.cookie-banner__outline:hover {
  background: #f5f3ff;
}

.cookie-banner__secondary {
  border: 1px solid #ddd6fe;
  background: #faf8ff;
  color: #4c1d95;
}

.cookie-banner__secondary:hover {
  background: #f5f3ff;
}

@media (max-width: 960px) {
  .cookie-banner--notice {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    min-height: 0;
    max-height: min(58dvh, 24rem);
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  }

  .cookie-banner--notice .cookie-banner__scroll {
    overflow: auto;
  }

  .cookie-banner--notice .cookie-banner__actions {
    flex-direction: column;
    max-width: none;
    width: 100%;
  }

  .cookie-banner--notice .cookie-banner__actions button {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cookie-banner__row {
    align-items: flex-start;
  }

  .cookie-banner--manage .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner--manage .cookie-banner__actions button {
    flex: none;
    width: 100%;
  }
}
