.rc-privacy {
  --rc-ink: #172033;
  --rc-muted: #5f6b7d;
  --rc-line: rgba(23, 32, 51, .12);
  --rc-surface: rgba(255, 255, 255, .97);
  --rc-blue: #2563eb;
  --rc-blue-dark: #1d4ed8;
  color: var(--rc-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

.rc-privacy *, .rc-privacy *::before, .rc-privacy *::after { box-sizing: border-box; }
.rc-privacy [hidden] { display: none !important; }

.rc-privacy__banner {
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: 22px;
  bottom: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2), 0 2px 8px rgba(15, 23, 42, .08);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  left: max(20px, env(safe-area-inset-left));
  margin: auto;
  max-width: 1120px;
  padding: 22px;
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
}

.rc-privacy__brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border-radius: 16px;
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.rc-privacy__brand-mark svg, .rc-privacy__reopen svg { fill: #013466; height: 27px; width: 27px; }
.rc-privacy__message h2, .rc-privacy__settings h2 {
  color: var(--rc-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 5px;
}
.rc-privacy__message > p:not(.rc-privacy__eyebrow), .rc-privacy__settings header p {
  color: var(--rc-muted);
  margin: 0;
  max-width: 700px;
}
.rc-privacy__eyebrow {
  color: var(--rc-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  margin: 0 0 5px;
  text-transform: uppercase;
}
.rc-privacy__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; }
.rc-privacy__links a { color: #41506a; font-size: 13px; font-weight: 600; text-decoration: none; }
.rc-privacy__links a:hover { color: var(--rc-blue); text-decoration: underline; }
.rc-privacy__actions { display: grid; gap: 8px; min-width: 168px; }
.rc-privacy__button {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 10px;
  color: #24406f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 39px;
  padding: 8px 15px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rc-privacy__button:hover { border-color: var(--rc-blue); transform: translateY(-1px); }
.rc-privacy__button:focus-visible, .rc-privacy__close:focus-visible, .rc-privacy__reopen:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .2);
  outline: 2px solid transparent;
}
.rc-privacy__button--primary { background: var(--rc-blue); border-color: var(--rc-blue); color: #fff; }
.rc-privacy__button--primary:hover { background: var(--rc-blue-dark); }
.rc-privacy__button--quiet { border-color: transparent; color: var(--rc-muted); }
.rc-privacy__settings {
  align-items: center;
  background: rgba(15, 23, 42, .48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
}
.rc-privacy__settings-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .3);
  max-height: min(760px, calc(100vh - 36px));
  max-width: 680px;
  overflow: auto;
  width: 100%;
}
.rc-privacy__settings header { border-bottom: 1px solid var(--rc-line); display: flex; gap: 20px; padding: 25px 26px 20px; }
.rc-privacy__settings header > div { flex: 1; }
.rc-privacy__close {
  align-items: center;
  background: #f3f6fa;
  border: 0;
  border-radius: 50%;
  color: #43516a;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 25px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}
.rc-privacy__purpose-list { padding: 4px 26px; }
.rc-privacy__purpose { align-items: center; border-bottom: 1px solid var(--rc-line); display: flex; gap: 20px; justify-content: space-between; padding: 18px 0; }
.rc-privacy__purpose:last-child { border-bottom: 0; }
.rc-privacy__purpose label { color: var(--rc-ink); display: block; font-weight: 700; margin-bottom: 3px; }
.rc-privacy__purpose p { color: var(--rc-muted); font-size: 13px; margin: 0; max-width: 480px; }
.rc-privacy__switch { align-items: center; cursor: pointer; display: flex !important; flex-direction: column; flex-shrink: 0; margin: 0 !important; }
.rc-privacy__switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.rc-privacy__switch span { background: #cbd5e1; border-radius: 20px; display: block; height: 26px; position: relative; transition: .18s ease; width: 46px; }
.rc-privacy__switch span::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); content: ""; height: 20px; left: 3px; position: absolute; top: 3px; transition: .18s ease; width: 20px; }
.rc-privacy__switch input:checked + span { background: var(--rc-blue); }
.rc-privacy__switch input:checked + span::after { transform: translateX(20px); }
.rc-privacy__switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.rc-privacy__switch em { color: var(--rc-muted); font-size: 10px; font-style: normal; margin-top: 4px; white-space: nowrap; }
.rc-privacy__purpose--gpc { opacity: .72; }
.rc-privacy__settings footer { background: #f8fafc; border-radius: 0 0 24px 24px; border-top: 1px solid var(--rc-line); display: flex; gap: 10px; justify-content: flex-end; padding: 18px 26px; }
.rc-privacy__reopen {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 50%;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .15);
  cursor: pointer;
  display: flex;
  height: 46px;
  justify-content: center;
  left: 18px;
  position: fixed;
  width: 46px;
}
.rc-privacy__banner:not([hidden]) ~ .rc-privacy__reopen { display: none; }
.rc-privacy--saving { cursor: progress; }
.rc-privacy--saving button { opacity: .65; pointer-events: none; }
.rc-privacy-lock { overflow: hidden; }
[dir="rtl"] .rc-privacy__switch input:checked + span::after { transform: translateX(-20px); }
[dir="rtl"] .rc-privacy__switch span::after { left: auto; right: 3px; }
[dir="rtl"] .rc-privacy__reopen { left: auto; right: 18px; }

@media (max-width: 760px) {
  .rc-privacy__banner {
    border-radius: 20px 20px 0 0;
    bottom: 0;
    gap: 13px;
    grid-template-columns: auto 1fr;
    left: 0;
    padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    right: 0;
  }
  .rc-privacy__brand-mark { border-radius: 13px; height: 42px; width: 42px; }
  .rc-privacy__actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
  .rc-privacy__button--quiet { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-privacy *, .rc-privacy *::before, .rc-privacy *::after { scroll-behavior: auto !important; transition: none !important; }
}
