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

.rt-consent-banner,
.rt-consent-dialog,
.rt-consent-reopen {
  box-sizing: border-box;
  font: inherit;
}

.rt-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid #d7dae0;
  background: #fff;
  color: #20242b;
  box-shadow: 0 -8px 30px rgb(25 29 36 / 18%);
}

.rt-consent-banner__inner {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
  padding: 18px 0;
}

.rt-consent-banner h2,
.rt-consent-dialog h2,
.rt-consent-dialog h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  line-height: 1.4;
}

.rt-consent-banner h2::before,
.rt-consent-banner h2::after,
.rt-consent-dialog h2::before,
.rt-consent-dialog h2::after,
.rt-consent-dialog h3::before,
.rt-consent-dialog h3::after {
  content: none !important;
}

.rt-consent-banner h2,
.rt-consent-dialog h2 {
  font-size: 1.15rem;
}

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

.rt-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.rt-consent-button,
.rt-consent-reopen {
  min-height: 44px;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 16px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.rt-consent-button--primary {
  border-color: #9d174d;
  background: #9d174d;
  color: #fff;
}

.rt-consent-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.rt-consent-link:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.rt-consent-button:hover,
.rt-consent-reopen:hover {
  filter: brightness(.96);
}

.rt-consent-button:focus-visible,
.rt-consent-reopen:focus-visible,
.rt-consent-dialog input:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.rt-consent-dialog {
  width: min(100% - 32px, 620px);
  max-height: min(84vh, 720px);
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  color: #20242b;
  box-shadow: 0 20px 60px rgb(15 23 42 / 28%);
}

.rt-consent-dialog::backdrop {
  background: rgb(15 23 42 / 58%);
}

.rt-consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
}

.rt-consent-option input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

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

.rt-consent-option small {
  margin-top: 5px;
  color: #475569;
  line-height: 1.6;
}

.rt-consent-reopen {
  display: block;
  min-height: 40px;
  margin: 14px auto 0;
  padding: 7px 12px;
  background: transparent;
  color: inherit;
  font-size: .92rem;
}

@media (max-width: 640px) {
  .rt-consent-banner__inner {
    width: min(100% - 24px, 960px);
    padding: 14px 0;
  }

  .rt-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rt-consent-button {
    width: 100%;
  }
}

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

@media print {
  .rt-consent-banner,
  .rt-consent-dialog,
  .rt-consent-reopen {
    display: none !important;
  }
}
