/* Adapted from the original RevDoc prototype. Scoped for reuse on any page. */
.rd-consent { font: 400 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #0a0b0d; }
.rd-consent *, .rd-consent *::before, .rd-consent *::after { box-sizing: border-box; }
.rd-consent [hidden] { display: none !important; }
.rd-consent .ck-banner { position: fixed; z-index: 200; left: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 22px 22px 18px; border-radius: 22px; background: #fff; border: 1px solid #e8eaed; box-shadow: 0 30px 70px -30px rgba(10,11,13,.45), 0 2px 8px rgba(10,11,13,.06); text-align: left; }
.rd-consent .ck-title { margin: 0; font-size: 19px; font-weight: 750; line-height: 1.3; letter-spacing: -.02em; color: #0a0b0d; }
.rd-consent .ck-text { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #3c4043; }
.rd-consent .ck-more { margin: 10px 0 0; font-size: 13.5px; color: #3c4043; }
.rd-consent .ck-more a { color: #0a0b0d; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.rd-consent .ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.rd-consent .ck-btn { min-height: 44px; border-radius: 999px; border: 1.5px solid #0a0b0d; background: #0a0b0d; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 10px 12px; }
.rd-consent .ck-btn:hover { background: #26282c; border-color: #26282c; }
.rd-consent .ck-link { grid-column: 1 / -1; min-height: 38px; border: 0; background: none; color: #0a0b0d; font: inherit; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rd-consent .ck-modal { position: fixed; inset: 0; width: min(520px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; overflow: auto; padding: 24px; border: 0; border-radius: 24px; background: #fff; color: #0a0b0d; font: inherit; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); text-align: left; }
.rd-consent .ck-modal::backdrop { background: rgba(10,11,13,.45); }
.rd-consent .ck-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd-consent .ck-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e8eaed; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: #0a0b0d; }
.rd-consent .ck-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #eef0f2; }
.rd-consent label.ck-cat { cursor: pointer; }
.rd-consent .ck-cat b { display: block; font-size: 15px; font-weight: 700; }
.rd-consent .ck-cat div > span, .rd-consent .ck-cat > span > span { display: block; margin-top: 2px; font-size: 13px; color: #5f6672; }
.rd-consent .ck-always { flex: none; font-size: 12.5px; font-weight: 650; color: #0f7a55; }
.rd-consent .ck-toggle { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: #d7dbe2; position: relative; cursor: pointer; transition: background .2s ease; }
.rd-consent .ck-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.rd-consent .ck-toggle:checked { background: #ff6f33; }
.rd-consent .ck-toggle:checked::after { transform: translateX(18px); }
.rd-consent :focus-visible, .rd-cookie-settings:focus-visible { outline: 2px solid #bd430f; outline-offset: 3px; }
.rd-consent .ck-actions-panel { margin-top: 18px; }
.rd-consent .ck-actions-panel .ck-btn:last-child { grid-column: 1 / -1; }
.rd-cookie-settings { display: block; margin: 0 0 9px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted, #5f6672); cursor: pointer; text-align: left; }
.rd-cookie-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .rd-consent .ck-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 24px); padding: 18px 18px 14px; border-radius: 20px; }
  .rd-consent .ck-actions { grid-template-columns: 1fr; }
  .rd-consent .ck-text { font-size: 13.5px; }
  .rd-consent .ck-modal { width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-consent .ck-toggle, .rd-consent .ck-toggle::after { transition: none; }
}
