.boudoir-consent,
.boudoir-consent * {
  box-sizing: border-box;
}

.boudoir-consent [hidden] {
  display: none !important;
}

.boudoir-consent__banner {
  position: fixed;
  z-index: 2147483000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 58rem;
  margin: 0 auto;
  color: #202026;
  background: #fff;
  border: 1px solid #d9d5da;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(25, 15, 22, 0.22);
  font-family: inherit;
  line-height: 1.5;
}

.boudoir-consent__content {
  padding: 1.25rem;
}

.boudoir-consent__title {
  margin: 0 0 0.5rem;
  color: #511336;
  font-size: 1.25rem;
  line-height: 1.25;
}

.boudoir-consent__description,
.boudoir-consent__policy {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.boudoir-consent__policy a {
  color: #5e1740;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.boudoir-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.boudoir-consent__button,
.boudoir-consent__reopen {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.boudoir-consent__button--primary {
  color: #fff;
  background: #6b1848;
  border-color: #6b1848;
}

.boudoir-consent__button--secondary {
  color: #3d0d29;
  background: #fff;
  border-color: #6b1848;
}

.boudoir-consent__button--text {
  color: #3d0d29;
  background: #f4edf1;
  border-color: #f4edf1;
}

.boudoir-consent__button:hover,
.boudoir-consent__reopen:hover {
  filter: brightness(0.94);
}

.boudoir-consent__button:focus-visible,
.boudoir-consent__reopen:focus-visible,
.boudoir-consent__choice input:focus-visible + label,
.boudoir-consent__policy a:focus-visible {
  outline: 3px solid #0b6bcb;
  outline-offset: 3px;
}

.boudoir-consent__preferences {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ded9dc;
}

.boudoir-consent__preferences fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boudoir-consent__preferences legend {
  margin-bottom: 0.75rem;
  color: #202026;
  font-weight: 700;
}

.boudoir-consent__choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0.75rem 0;
}

.boudoir-consent__choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: #6b1848;
}

.boudoir-consent__choice label {
  padding: 0.1rem;
}

.boudoir-consent__choice label span,
.boudoir-consent__choice label small {
  display: block;
}

.boudoir-consent__choice label span {
  font-weight: 700;
}

.boudoir-consent__choice label small {
  margin-top: 0.15rem;
  color: #55515a;
  font-size: 0.875rem;
}

.boudoir-consent__reopen {
  position: fixed;
  z-index: 2147482999;
  right: 1rem;
  bottom: 1rem;
  min-height: 2.5rem;
  color: #fff;
  background: #511336;
  border-color: #fff;
  box-shadow: 0 0.35rem 1rem rgba(25, 15, 22, 0.22);
  font-size: 0.85rem;
}

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

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

  .boudoir-consent__content {
    padding: 1rem;
  }

  .boudoir-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .boudoir-consent__button,
  .boudoir-consent__reopen {
    scroll-behavior: auto;
  }
}
