.consent-box,
.consent-dialog {
  color: #1f3542;
  background: #fff;
  border: 1px solid #cbd6dc;
  border-radius: 1rem;
  box-shadow: 0 12px 40px #0d2f4626;
  font: 400 1rem/1.55 Arial, sans-serif;
}

.consent-box {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.4rem;
  overflow: auto;
}

.consent-box h2,
.consent-dialog h2 {
  margin: 0 0 .65rem;
  font: 700 1.35rem/1.3 Arial, sans-serif;
}

.consent-box p,
.consent-dialog p {
  margin: .6rem 0;
  font-size: .95rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.consent-action {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #24516d;
  border-radius: .5rem;
  background: #24516d;
  color: #fff;
  font: 700 .95rem/1.4 Arial, sans-serif;
  cursor: pointer;
}

.consent-action--secondary {
  background: #fff;
  color: #24516d;
}

.consent-action:focus-visible,
.consent-setting-link:focus-visible {
  outline: 3px solid #a26046;
  outline-offset: 3px;
}

.consent-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.5rem;
  overflow: auto;
}

.consent-dialog::backdrop {
  background: #122b3dcc;
}

.consent-option {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid #dbe2e4;
}

.consent-banner-options {
  display: grid;
  gap: .45rem;
  margin: .8rem 0;
}

.consent-banner-options label {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
}

.consent-banner-options input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #24516d;
}

.consent-option label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  cursor: pointer;
}

.consent-option input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #24516d;
}

.consent-option small {
  display: block;
  margin: .5rem 0 0 1.9rem;
  color: #5b686f;
}

.consent-setting-link {
  min-height: 44px;
  padding: .4rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent-box [hidden],
.consent-dialog [hidden] {
  display: none !important;
}

.consent-note {
  color: #5b686f;
  font-size: .85rem !important;
}

@media (max-width: 47.99em) {
  .consent-box {
    bottom: 5.5rem;
    max-height: calc(100dvh - 6.5rem);
  }
}

@media print {
  .consent-box,
  .consent-dialog,
  .consent-setting-link {
    display: none !important;
  }
}
