/* Cookie consent, option A. Colors follow html[data-theme]. The orange edge is var(--brand-amber). */

.rt-consent {
  --rt-panel: #141414;
  --rt-table: #1C1C1C;
  --rt-table-head: #262626;
  --rt-table-line: #303030;
  --rt-ink: #F4F4F4;
  --rt-muted: #A3A3A3;
  --rt-line: #2A2A2A;
  --rt-focus: #4CC2FF;
  --rt-sw-off: #8B8B8B;
  --rt-sw-on-edge: var(--brand-amber);
  --rt-scrim: rgba(0, 0, 0, .62);
  --rt-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--rt-ink);
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] .rt-consent {
  --rt-panel: #FFFFFF;
  --rt-table: #F4F5F7;
  --rt-table-head: #E9ECF0;
  --rt-table-line: #DDE1E7;
  --rt-ink: #111111;
  --rt-muted: #5A6370;
  --rt-line: #E2E5EA;
  --rt-focus: #0072AD;
  --rt-sw-off: #6B7280;
  --rt-sw-on-edge: #8A4B00;
  --rt-scrim: rgba(17, 24, 39, .42);
  --rt-shadow: 0 18px 48px rgba(15, 23, 42, .22);
  color-scheme: light;
}

.rt-consent,
.rt-consent * { box-sizing: border-box; }

.rt-consent [hidden] { display: none !important; }

.rt-consent > * { pointer-events: auto; }

.rt-scrim {
  position: absolute;
  inset: 0;
  background: var(--rt-scrim);
}

.rt-layer {
  --cut: 16px;
  --edge: 2px;
  position: fixed;
  display: flex;
  filter: drop-shadow(var(--rt-shadow));
}

.rt-edge {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--edge);
  background: var(--brand-amber);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.rt-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--rt-panel);
  color: var(--rt-ink);
  clip-path: polygon(calc(var(--cut) - var(--edge) * .586) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--cut) - var(--edge) * .586));
}

.rt-consent h2,
.rt-consent h3,
.rt-consent p { margin: 0; }

.rt-consent code {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92em;
  word-break: break-word;
}

.rt-consent a {
  color: var(--rt-ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.rt-consent a:hover { text-decoration-color: var(--rt-ink); }

.rt-btn {
  --c: 12px;
  --ci: 10.8px;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 2px;
  min-height: 48px;
  background: var(--rt-ink);
  color: var(--rt-ink);
  cursor: pointer;
  font: inherit;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  display: flex;
}

.rt-btn > span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 14px;
  background: var(--rt-panel);
  color: var(--rt-ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  clip-path: polygon(var(--ci) 0, 100% 0, 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, 0 100%, 0 var(--ci));
}

.rt-btn:hover > span {
  background: var(--brand-amber);
  color: #111111;
}

.rt-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rt-btn:focus-visible,
.rt-close:focus-visible,
.rt-linkbtn:focus-visible,
.rt-cat-toggle:focus-visible,
.rt-consent a:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 3px;
}

.rt-btn:focus-visible {
  clip-path: none;
  outline-offset: 2px;
}

.rt-linkbtn,
.rt-cat-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--rt-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rt-linkbtn:hover,
.rt-cat-toggle:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.rt-chev { transition: transform .15s ease; flex: none; }

[aria-expanded="true"] > .rt-chev { transform: rotate(180deg); }

.rt-more p + p { margin-top: 8px; }

.rt-more { margin-top: 10px; }

.rt-first-body .rt-more-toggle,
.rt-prefs-intro .rt-more-toggle { margin-top: 10px; }

.rt-close {
  appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rt-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rt-close:hover { background: var(--rt-table); }

.rt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rt-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}

.rt-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rt-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  border: 2px solid var(--rt-sw-off);
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 2px;
  transition: background .15s ease, border-color .15s ease;
}

.rt-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rt-sw-off);
  display: grid;
  place-items: center;
  color: transparent;
  transition: transform .15s ease, background .15s ease;
}

.rt-switch input:checked + .rt-switch-ui {
  background: var(--brand-amber);
  border-color: var(--rt-sw-on-edge);
}

.rt-switch input:checked + .rt-switch-ui .rt-thumb {
  transform: translateX(20px);
  background: #111111;
  color: #FFFFFF;
}

.rt-switch input:focus-visible + .rt-switch-ui {
  outline: 3px solid var(--rt-focus);
  outline-offset: 3px;
}

.rt-switch.is-locked { cursor: not-allowed; }

.rt-switch.is-locked input { cursor: not-allowed; }

.rt-switch.is-locked .rt-switch-ui { opacity: .6; }

.rt-always {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--rt-muted);
  margin-right: 10px;
}

.rt-cat-ctl {
  display: flex;
  align-items: center;
  flex: none;
}

.rt-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rt-cat h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.rt-cat-text {
  color: var(--rt-muted);
  font-size: 14px;
  line-height: 22px;
  margin-top: 4px;
  max-width: 60ch;
}

.rt-cat-toggle { margin-top: 10px; }

.rt-cat-detail { margin-top: 10px; }

.rt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--rt-table);
  border: 1px solid var(--rt-table-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
}

.rt-table th {
  background: var(--rt-table-head);
  text-align: left;
  font-weight: 700;
  color: var(--rt-ink);
  padding: 9px 12px;
}

.rt-table td {
  padding: 9px 12px;
  color: var(--rt-ink);
  vertical-align: top;
  border-top: 1px solid var(--rt-table-line);
}

.rt-table td:nth-child(3) { color: var(--rt-muted); }

.rt-table td:first-child { white-space: nowrap; }

.rt-note {
  margin-top: 10px !important;
  font-size: 13px;
  line-height: 20px;
  color: var(--rt-muted);
}

.rt-cats { display: flex; flex-direction: column; }

.rt-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .rt-chev,
  .rt-switch-ui,
  .rt-thumb { transition: none; }
}

[data-opt="a"] .rt-first {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 32px));
}

[data-opt="a"] .rt-first .rt-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  padding: 26px 28px 26px 34px;
}

[data-opt="a"] .rt-first h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

[data-opt="a"] .rt-first .rt-actions { grid-template-columns: repeat(3, 148px); }

[data-opt="a"] .rt-prefs {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  height: min(86vh, 820px);
}

[data-opt="a"] .rt-prefs .rt-head {
  padding: 26px 24px 16px 36px;
  border-bottom: 1px solid var(--rt-line);
}

[data-opt="a"] .rt-prefs h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
}

[data-opt="a"] .rt-scroll { padding: 18px 24px 6px 36px; }

[data-opt="a"] .rt-prefs-intro {
  padding-bottom: 6px;
  max-width: 64ch;
}

[data-opt="a"] .rt-cat {
  padding: 18px 0;
  border-top: 1px solid var(--rt-line);
}

[data-opt="a"] .rt-cat:first-child { margin-top: 12px; }

[data-opt="a"] .rt-prefs .rt-actions {
  padding: 16px 24px 20px 36px;
  border-top: 1px solid var(--rt-line);
  background: var(--rt-panel);
}

@media (max-width: 900px) {
  [data-opt="a"] .rt-first .rt-frame { grid-template-columns: 1fr; }
  [data-opt="a"] .rt-first .rt-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  [data-opt="a"] .rt-first { bottom: 8px; width: calc(100% - 16px); }
  [data-opt="a"] .rt-first .rt-frame { padding: 24px 18px 18px 22px; gap: 16px; }
  [data-opt="a"] .rt-first h2 { font-size: 20px; line-height: 28px; }
  .rt-actions { grid-template-columns: 1fr !important; }
  [data-opt="a"] .rt-prefs {
    width: calc(100% - 16px);
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
    height: min(92dvh, 880px);
    max-height: calc(100dvh - 16px);
  }
  [data-opt="a"] .rt-prefs .rt-head { padding: 22px 12px 14px 22px; }
  [data-opt="a"] .rt-scroll { padding: 14px 18px 4px 22px; }
  [data-opt="a"] .rt-prefs .rt-actions { padding: 12px 18px 14px 22px; gap: 8px; }
  [data-opt="a"] .rt-prefs .rt-btn { min-height: 44px; }
  [data-opt="a"] .rt-prefs .rt-btn > span { padding: 6px 10px; }
  .rt-table,
  .rt-table tbody,
  .rt-table tr,
  .rt-table td { display: block; width: 100%; }
  .rt-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .rt-table { border-radius: 10px; }
  .rt-table tr { padding: 10px 12px; border-top: 1px solid var(--rt-table-line); }
  .rt-table tr:first-child { border-top: 0; }
  .rt-table td { border: 0; padding: 2px 0; white-space: normal !important; }
  .rt-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rt-muted);
    margin-top: 4px;
  }
  .rt-table td:first-child::before { display: none; }
  .rt-table td:first-child { font-weight: 600; }
}
