.cookie-consent,
.cookie-settings-button {
  --consent-ink: #173c38;
  --consent-accent: #e56d3f;
  font-family: inherit;
}

.cookie-consent[hidden],
.cookie-consent [hidden],
.cookie-settings-button[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 66rem;
  margin-inline: auto;
  padding: 1.25rem;
  color: var(--consent-ink);
  background: #fffdf8;
  border: 1px solid rgb(33 74 69 / 18%);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3.5rem rgb(19 55 51 / 22%);
}

.cookie-consent__summary,
.cookie-consent__preferences {
  display: grid;
  gap: 1.25rem;
}

.cookie-consent__copy h2,
.cookie-consent__copy p {
  margin: 0;
}

.cookie-consent__copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.cookie-consent__copy p:not(.cookie-consent__eyebrow) {
  max-width: 48rem;
  color: #45615e;
  line-height: 1.55;
}

.cookie-consent__copy a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--consent-ink);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.cookie-consent__eyebrow {
  margin-bottom: 0.35rem !important;
  color: #a64727;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.cookie-consent__button,
.cookie-settings-button {
  appearance: none;
  border: 1px solid rgb(33 74 69 / 30%);
  border-radius: 999px;
  background: #fff;
  color: var(--consent-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-consent__button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
}

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

.cookie-consent__button--text {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-consent__button:hover,
.cookie-settings-button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-settings-button:focus-visible,
.cookie-consent__option input:focus-visible {
  outline: 3px solid rgb(229 109 63 / 45%);
  outline-offset: 3px;
}

.cookie-consent__options {
  display: grid;
  gap: 0.65rem;
}

.cookie-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(33 74 69 / 15%);
  border-radius: 0.75rem;
  background: #fff;
}

.cookie-consent__option strong,
.cookie-consent__option span span {
  display: block;
}

.cookie-consent__option span span {
  margin-top: 0.15rem;
  color: #617572;
  font-size: 0.875rem;
}

.cookie-consent__option input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--consent-accent);
}

.cookie-consent__always-on {
  flex: 0 0 auto;
  color: #37645f;
  font-size: 0.8rem;
  font-weight: 800;
}

.cookie-settings-button {
  position: fixed;
  z-index: 999;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgb(19 55 51 / 16%);
}

.cookie-policy-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 48rem) {
  .cookie-consent__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
  }

  .cookie-consent__preferences {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(20rem, 1.2fr);
  }

  .cookie-consent__actions--preferences {
    grid-column: 1 / -1;
  }
}

@media (max-width: 35rem) {
  .cookie-consent {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }

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