.cookie-banner[hidden],
.consent-modal[hidden],
.manage-consent[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  background: var(--color-bg);
  box-shadow: 0 1rem 3rem rgba(6, 26, 50, .22);
}

.cookie-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__copy {
  max-width: 48rem;
}

.cookie-banner h2,
.consent-modal h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.cookie-banner p {
  margin: 0 0 .5rem;
}

.cookie-banner__actions,
.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.cookie-banner__actions {
  flex: 0 0 auto;
}

.cookie-banner .button--outline,
.consent-modal .button--outline {
  color: var(--color-primary);
}

.consent-modal {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 50, .72);
}

.consent-modal__dialog {
  position: relative;
  width: min(100%, 42rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border-radius: .5rem;
  outline: 0;
  background: var(--color-bg);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .35);
}

.consent-modal__close {
  position: absolute;
  top: .7rem;
  right: .8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.consent-option span,
.consent-option strong,
.consent-option small {
  display: block;
}

.consent-option small {
  margin-top: .2rem;
  color: var(--color-muted);
}

.consent-option input {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--color-primary);
}

.consent-modal__actions {
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.consent-modal__policy {
  margin: 1rem 0 0;
  text-align: right;
}

.consent-modal-open {
  overflow: hidden;
}

.manage-consent {
  position: fixed;
  z-index: 9998;
  right: 1rem;
  bottom: 1rem;
  padding: .6rem .85rem;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 .35rem 1.25rem rgba(6, 26, 50, .16);
  font-size: .85rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .cookie-banner__inner {
    display: block;
  }

  .cookie-banner__actions {
    margin-top: 1rem;
  }

  .cookie-banner__actions .button,
  .consent-modal__actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .consent-modal__actions {
    flex-direction: column-reverse;
  }
}
