.consent-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.consent-banner,
.consent-modal,
.consent-reopen {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 9000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem;
  color: #ffffff;
  background: #243143;
  border: 2px solid #d4a017;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.38);
}

.consent-banner h2,
.consent-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: inherit;
}

.consent-banner p,
.consent-dialog p {
  margin: 0;
  line-height: 1.55;
}

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

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.consent-button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.consent-button--choice {
  flex: 1 1 14rem;
  color: #101418;
  background: #d4a017;
  border-color: #d4a017;
}

.consent-button--choice:hover,
.consent-button--primary:hover {
  background: #e3b130;
  border-color: #e3b130;
}

.consent-button--primary {
  color: #101418;
  background: #d4a017;
  border-color: #d4a017;
}

.consent-button--secondary {
  color: #ffffff;
  background: #2f3c50;
  border-color: rgba(255, 255, 255, 0.72);
}

.consent-button--secondary:hover {
  background: #3a4a63;
}

.consent-button--link {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.consent-button:focus-visible,
.consent-dialog input:focus-visible,
.consent-dialog__close:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #1d5ea8;
}

.consent-reopen {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8990;
  min-height: 2.75rem;
  color: #ffffff;
  background: #243143;
  border-color: #d4a017;
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.28);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 9010;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(5, 9, 14, 0.78);
}

.consent-dialog {
  position: relative;
  width: min(100%, 42rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.25rem;
  color: #ffffff;
  background: #243143;
  border: 2px solid #d4a017;
  border-radius: 0.9rem;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.5);
}

.consent-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-dialog h2 {
  padding-right: 5rem;
}

.consent-form {
  margin-top: 1rem;
}

.consent-categories {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.consent-categories legend {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.consent-category {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.65rem;
}

.consent-category__heading {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.consent-category input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  accent-color: #d4a017;
}

.consent-category input:disabled {
  opacity: 0.82;
}

.consent-category label {
  font-weight: 800;
}

.consent-category__help {
  margin: 0.4rem 0 0 2.05rem !important;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.consent-gpc {
  padding: 0.75rem;
  color: #101418;
  background: #f4d885;
  border-radius: 0.55rem;
  font-weight: 700;
}

.consent-technical-note {
  margin-top: 1rem !important;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

body.consent-dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .consent-actions {
    align-items: stretch;
  }

  .consent-button,
  .consent-button--choice {
    width: 100%;
    flex-basis: 100%;
  }

  .consent-reopen {
    width: auto;
  }
}

@media (forced-colors: active) {
  .consent-banner,
  .consent-dialog,
  .consent-reopen,
  .consent-category {
    border-color: CanvasText;
  }

  .consent-button:focus-visible,
  .consent-dialog input:focus-visible,
  .consent-dialog__close:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-modal,
  .consent-reopen,
  .consent-button {
    scroll-behavior: auto;
    transition: none;
  }
}
