#adw-cookie-consent-banner[hidden] {
  display: none !important;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 180;
  inset: auto 1rem 1rem;
  box-sizing: border-box;
  max-width: 64rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid #d8dee7;
  border-radius: 0.25rem;
  background: #fff;
  color: #30343b;
  box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 20%);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-consent-banner__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-banner__copy h2,
.cookie-preferences h2 {
  margin: 0 0 0.4rem;
  color: #1e429b;
  font-size: 1.25rem;
  font-weight: 600;
}

.cookie-consent-banner__copy p,
.cookie-preferences p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.cookie-consent-banner__status {
  min-height: 1.5em;
  margin: 0.5rem 0 0;
  color: #7a3c25;
  font-size: 0.875rem;
}

.cookie-consent-banner__copy a,
.cookie-preferences a {
  color: #8a5735;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent-banner__actions,
.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-consent__button,
.cookie-preferences__close {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #1e429b;
  border-radius: 0.2rem;
  background: #fff;
  color: #1e429b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-preferences__close:hover {
  background: #f0f4f9;
}

.cookie-consent__button:focus-visible,
.cookie-preferences__close:focus-visible,
.cookie-preferences input:focus-visible {
  outline: 3px solid #a77046;
  outline-offset: 2px;
}

.cookie-preferences {
  box-sizing: border-box;
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(90vh, 48rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #d8dee7;
  border-radius: 0.3rem;
  background: #fff;
  color: #30343b;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-preferences:not([open]) {
  display: none;
}

.cookie-preferences::backdrop {
  background: rgb(14 27 43 / 65%);
}

.cookie-preferences__content {
  padding: clamp(1.1rem, 4vw, 2rem);
}

.cookie-preferences__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-preferences__eyebrow {
  margin: 0 0 0.2rem !important;
  color: #8a5735;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-preferences__header h2 {
  margin-bottom: 0;
}

.cookie-preferences__notice {
  padding: 0.8rem 1rem;
  border-left: 3px solid #a77046;
  background: #f7f4f1;
}

.cookie-preferences__categories {
  margin-top: 1.25rem;
  border-top: 1px solid #d8dee7;
}

.cookie-preferences__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #d8dee7;
  cursor: pointer;
}

.cookie-preferences__category h3,
.cookie-preferences__category-title {
  display: block;
  margin: 0 0 0.25rem;
  color: #1e429b;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-preferences__category p,
.cookie-preferences__category-description {
  display: block;
  margin: 0;
  color: #535861;
  font-size: 0.875rem;
}

.cookie-preferences__always {
  flex: 0 0 auto;
  color: #535861;
  font-size: 0.8rem;
  font-weight: 600;
}

.cookie-preferences__category input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  accent-color: #1e429b;
  cursor: pointer;
}

.cookie-preferences__status {
  min-height: 1.5em;
  color: #7a3c25;
  font-size: 0.875rem;
}

@media (max-width: 42rem) {
  .cookie-consent-banner {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
    padding: 1rem;
  }

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

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