.cookie-consent[data-cookie-consent] {
  --consent-ink: #080035;
  --consent-accent: #eda200;
  --consent-surface: #f6f3ec;
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 100%;
  padding: 1.5rem 2rem;
  overflow: auto;
  border: 0;
  border-top: 1px solid #e5dfd3;
  background: var(--consent-surface);
  color: var(--consent-ink);
  font-family: Silka, sans-serif;
}

.cookie-consent[data-cookie-consent][hidden],
.cookie-consent__panel[hidden] {
  display: none;
}

.cookie-consent .cookie-consent__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 62.5rem;
  margin-inline: auto;
}

.cookie-consent .cookie-consent__message {
  flex: 1;
  margin: 0;
  color: #38334f;
  font-size: 1rem;
}

.cookie-consent .cookie-consent__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;
}

.cookie-consent .cookie-consent__customize,
.cookie-consent .cookie-consent__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--consent-ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent button {
  cursor: pointer;
}

.cookie-consent .cookie-consent__button {
  box-sizing: border-box;
  min-width: 8.75rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--consent-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--consent-ink);
  font:
    400 1rem/1.25 Silka,
    sans-serif;
  text-align: center;
}

.cookie-consent .cookie-consent__button--accept {
  border-color: var(--consent-accent);
  background: var(--consent-accent);
}

.cookie-consent .cookie-consent__panel:not([hidden]) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
  max-height: 70vh;
  margin-inline: auto;
  padding: 1rem;
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
}

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

.cookie-consent .cookie-consent__category-description {
  margin-block: 0.25rem 0;
  color: #38334f;
}

.cookie-consent .cookie-consent__toggle {
  accent-color: var(--consent-accent);
}

.cookie-consent .cookie-consent__allow-selection {
  align-self: start;
}

.nb-consent-settings {
  position: fixed;
  inset: auto auto 1.25rem 1.25rem;
  z-index: 999;
  display: none;
  padding: 0.625rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 1px 1px 12px #0000001a;
  cursor: pointer;
}

.nb-consent-settings img {
  display: block;
}

body:has(.cookie-consent[hidden]) .nb-consent-settings {
  display: flex;
}

.cookie-consent :focus-visible,
.nb-consent-settings:focus-visible {
  outline: 2px solid #080035;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .cookie-consent .cookie-consent__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 479px) {
  .cookie-consent .cookie-consent__actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
    width: 100%;
  }

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