/* First-party consent controls; native dialog layout is defined below. */
#ct-consent,#ct-consent-footer{box-sizing:border-box;background:#f5f7f0;color:#162b22;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;clear:both}
#ct-consent{border-bottom:2px solid #395b35;padding:20px;scroll-margin-top:20px}
#ct-consent .ct-inner{max-width:1150px;margin:auto}
#ct-consent h2{font:700 21px/1.3 system-ui,sans-serif;margin:0 0 10px;color:#162b22}
#ct-consent p{margin:8px 0 12px;color:#162b22;font-size:16px;line-height:1.5}
#ct-consent a{color:#145632;text-decoration:underline}
#ct-consent .ct-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
#ct-consent button,#ct-consent-footer button,[data-ct-enable-captcha],[data-ct-enable="captcha"]{font:600 16px/1.35 system-ui,sans-serif;min-height:44px;box-sizing:border-box;padding:10px 16px;border:2px solid #395b35;border-radius:6px;background:#fff;color:#162b22;cursor:pointer;text-transform:none;white-space:normal;max-width:100%}
#ct-consent button:hover,#ct-consent-footer button:hover{background:#e3eedb}
#ct-consent button:focus-visible,#ct-consent a:focus-visible,#ct-consent input:focus-visible,#ct-consent-footer button:focus-visible,[data-ct-enable-captcha]:focus-visible,[data-ct-enable="captcha"]:focus-visible{outline:3px solid #1757bc;outline-offset:3px}
#ct-consent fieldset{margin:18px 0 10px;border:1px solid #71866b;padding:12px}
#ct-consent legend{font:600 17px/1.4 system-ui,sans-serif;color:#162b22;width:auto;margin:0;padding:0 6px;border:0}
#ct-consent label{display:flex;gap:12px;align-items:center;min-height:44px;font:400 16px/1.5 system-ui,sans-serif;cursor:pointer}
#ct-consent input[type=checkbox]{appearance:auto;position:static;opacity:1;width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:#275d33}
#ct-consent [hidden],#ct-consent[hidden]{display:none!important}
#ct-consent-footer{padding:20px;display:flex;flex-wrap:wrap;align-items:center;gap:15px}
#ct-consent-status{max-width:650px}
@media(max-width:600px){#ct-consent,#ct-consent-footer{padding:16px}#ct-consent .ct-actions{display:grid;grid-template-columns:1fr}#ct-consent .ct-actions button{width:100%}}

/* Keep the legacy form's CAPTCHA and its explanation in separate normal-flow boxes. */
.rsform-block-recaptcha div[id^="g-recaptcha-"] iframe{display:block;margin:0!important;vertical-align:top}
.ct-captcha-placeholder{display:block;clear:both;box-sizing:border-box;padding-top:48px;margin:0 0 16px;line-height:1.5}
.ct-captcha-placeholder p{margin:0 0 12px;line-height:1.5;overflow-wrap:anywhere}
.ct-captcha-placeholder [data-ct-enable="captcha"],.ct-captcha-placeholder [data-ct-enable-captcha]{margin:0 0 12px}


/* Native modal top layer keeps consent above all site widgets without z-index races. */
html.ct-consent-open,html.ct-consent-open body{overflow:hidden!important}
#ct-consent{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;border:2px solid #395b35;border-radius:12px;padding:24px;box-shadow:0 12px 48px #0005;z-index:2147483647}
#ct-consent::backdrop{background:rgba(0,0,0,.58)}
#ct-consent[data-ct-dialog-fallback]{box-shadow:0 0 0 100vmax #0009}
#ct-consent:not([open]){display:none}
@media(max-width:600px){#ct-consent{width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px}}
@media(prefers-reduced-motion:reduce){#ct-consent,#ct-consent *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Compact centered first-visit notice; detailed settings retain the modal layout. */
#ct-consent[data-ct-mode="notice"]{inset:0;margin:auto;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:28px;border:1px solid #d5ddd6;border-radius:14px;background:#fff;color:#18271e;box-shadow:0 18px 70px #0004;overscroll-behavior:contain}
#ct-consent[data-ct-mode="notice"] .ct-inner{display:block}
#ct-consent[data-ct-mode="notice"] h2{font:700 24px/1.25 system-ui,sans-serif;color:#18271e;margin:0 0 14px}
#ct-consent[data-ct-mode="notice"] .ct-notice-copy{margin:0;color:#424d45;font-size:15px;line-height:1.6}
#ct-consent[data-ct-mode="notice"] .ct-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 0}
#ct-consent[data-ct-mode="notice"] button,#ct-consent[data-ct-mode="notice"] .ct-details{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:1px solid #8a9a8e;border-radius:6px;font:600 15px/1.35 system-ui,sans-serif;text-decoration:none;white-space:nowrap;background:#fff;color:#1b3022;box-sizing:border-box;width:100%}
#ct-consent[data-ct-mode="notice"] button{background:#c7ed53;border-color:#c7ed53}
#ct-consent[data-ct-mode="notice"] button:hover{background:#d8f58a}
#ct-consent[data-ct-mode="notice"] .ct-details:hover{background:#eef3e9}
#ct-consent[data-ct-mode="settings"] .ct-notice-copy{display:none}
@media(max-width:600px){#ct-consent[data-ct-mode="notice"]{padding:22px;width:calc(100vw - 32px)}#ct-consent[data-ct-mode="notice"] h2{font-size:21px}#ct-consent[data-ct-mode="notice"] .ct-notice-copy{font-size:14px}#ct-consent[data-ct-mode="notice"] .ct-actions{gap:10px}}
