:root {
  --rh-consent-brown: #362417;
  --rh-consent-taupe: #9a6e5d;
  --rh-consent-gold: #e6d19d;
  --rh-consent-cream: #fff8ef;
  --rh-consent-white: #ffffff;
  --rh-consent-shadow: 0 18px 60px rgba(54, 36, 23, .24);
}

.rh-consent-locked { overflow: hidden; }
.rh-consent[hidden], .rh-consent-settings[hidden], .rh-consent-reopen[hidden] { display: none !important; }

.rh-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(54, 36, 23, .38);
  backdrop-filter: blur(2px);
}

.rh-consent__banner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 28px 30px;
  color: var(--rh-consent-brown);
  background: var(--rh-consent-cream);
  border: 1px solid rgba(154, 110, 93, .24);
  border-radius: 18px;
  box-shadow: var(--rh-consent-shadow);
  font-family: inherit;
}

.rh-consent__eyebrow {
  margin: 0 0 5px;
  color: var(--rh-consent-taupe);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rh-consent h2, .rh-consent-settings h2 {
  margin: 0 0 8px;
  color: var(--rh-consent-brown);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.rh-consent__copy > p:not(.rh-consent__eyebrow), .rh-consent-settings__intro {
  max-width: 760px;
  margin: 0 0 10px;
  color: #5e4a3c;
  font-size: 15px;
  line-height: 1.6;
}

.rh-consent__privacy {
  color: var(--rh-consent-brown);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rh-consent__actions { display: grid; gap: 9px; min-width: 220px; }
.rh-consent__button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--rh-consent-brown);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.rh-consent__button:hover { transform: translateY(-1px); }
.rh-consent__button:focus-visible, .rh-consent-settings__close:focus-visible, .rh-consent-reopen:focus-visible, .rh-consent-option input:focus-visible + .rh-consent-option__toggle {
  outline: 3px solid var(--rh-consent-gold);
  outline-offset: 3px;
}
.rh-consent__button--primary { color: var(--rh-consent-white); background: var(--rh-consent-brown); }
.rh-consent__button--secondary { color: var(--rh-consent-brown); background: transparent; }
.rh-consent__button--text { min-height: 34px; padding: 5px; border-color: transparent; color: var(--rh-consent-taupe); background: transparent; }

.rh-consent-settings {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 20px;
}
.rh-consent-settings__backdrop { position: absolute; inset: 0; background: rgba(54, 36, 23, .66); backdrop-filter: blur(3px); }
.rh-consent-settings__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 34px;
  color: var(--rh-consent-brown);
  background: var(--rh-consent-cream);
  border-radius: 18px;
  box-shadow: var(--rh-consent-shadow);
  font-family: inherit;
}
.rh-consent-settings__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--rh-consent-brown);
  background: rgba(230, 209, 157, .42);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.rh-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(154, 110, 93, .24);
  cursor: pointer;
}
.rh-consent-option strong, .rh-consent-option span { display: block; }
.rh-consent-option strong { margin-bottom: 3px; font-size: 16px; }
.rh-consent-option div > span { color: #6e5849; font-size: 14px; line-height: 1.45; }
.rh-consent-option input { position: absolute; opacity: 0; pointer-events: none; }
.rh-consent-option__required { color: var(--rh-consent-taupe); font-size: 12px; font-weight: 700; }
.rh-consent-option__toggle { position: relative; width: 48px; height: 27px; border-radius: 999px; background: #cbbdb3; transition: background .2s ease; }
.rh-consent-option__toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.rh-consent-option input:checked + .rh-consent-option__toggle { background: var(--rh-consent-taupe); }
.rh-consent-option input:checked + .rh-consent-option__toggle::after { transform: translateX(21px); }
.rh-consent-settings__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

.rh-consent-reopen {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(230, 209, 157, .7);
  border-radius: 999px;
  color: var(--rh-consent-cream);
  background: var(--rh-consent-brown);
  box-shadow: 0 5px 18px rgba(54, 36, 23, .22);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .rh-consent { padding: 10px; }
  .rh-consent__banner { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; border-radius: 14px; }
  .rh-consent__actions { min-width: 0; }
  .rh-consent-settings { padding: 10px; }
  .rh-consent-settings__panel { padding: 28px 20px 22px; border-radius: 14px; }
  .rh-consent-settings__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-consent__button, .rh-consent-option__toggle, .rh-consent-option__toggle::after { transition: none; }
}

