.rb-consent-banner,
.rb-consent-settings {
  box-sizing: border-box;
  color: #202020;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.rb-consent-banner {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2147483000;
  display: flex;
  gap: 18px;
  align-items: center;
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid #9f2f31;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.rb-consent-banner strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.3;
}

.rb-consent-banner p,
.rb-consent-settings p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.rb-consent-banner a,
.rb-consent-settings a {
  color: #842629;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rb-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.rb-consent-banner .rb-consent-actions {
  margin-top: 0;
}

.rb-consent-actions button,
.rb-consent-reopen {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #842629;
  border-radius: 4px;
  font: 600 14px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.rb-consent-primary {
  color: #fff;
  background: #842629;
}

.rb-consent-secondary,
.rb-consent-link {
  color: #842629;
  background: #fff;
}

.rb-consent-link {
  border-color: transparent !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rb-consent-actions button:focus-visible,
.rb-consent-reopen:focus-visible,
.rb-consent-settings a:focus-visible {
  outline: 3px solid #f0bd48;
  outline-offset: 2px;
}

.rb-consent-settings {
  width: min(520px, calc(100% - 24px));
  padding: 22px;
  border: 1px solid #8d8d8d;
  border-radius: 6px;
  background: #fff;
}

.rb-consent-settings::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.rb-consent-settings h2 {
  margin: 0 0 14px;
  color: #202020;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.rb-consent-settings label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  font-size: 15px;
}

.rb-consent-settings input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.rb-consent-settings > a {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}

.rb-consent-reopen {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147482000;
  min-height: 36px;
  padding: 7px 10px;
  color: #333;
  border-color: #aaa;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 700px) {
  .rb-consent-banner {
    display: block;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 14px;
  }

  .rb-consent-banner .rb-consent-actions,
  .rb-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .rb-consent-link {
    grid-column: 1 / -1;
  }

  .rb-consent-actions button {
    width: 100%;
  }
}
