/* Shared dialog only: existing banners and form layout stay independent. */
dialog.ccd-preferences[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden}
dialog.ccd-preferences .ccd-preferences-content{display:block;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
dialog.ccd-preferences .ccd-preferences-heading{flex-wrap:nowrap}
dialog.ccd-preferences .ccd-preferences-heading button{background:transparent;color:#071b36}
dialog.ccd-preferences .ccd-preference-row strong{font-size:14px}
dialog.ccd-preferences .ccd-preference-row small{font-size:13px;line-height:1.5;color:#425570}
dialog.ccd-preferences .ccd-preference-row>.ccd-always-on{flex:0 0 auto}
dialog.ccd-preferences{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #d9e4ef;border-radius:18px;background:#fff;color:#071b36;font:400 14px/1.5 Manrope,system-ui,sans-serif;box-shadow:0 20px 80px #071b3630;overflow:auto}
dialog.ccd-preferences::backdrop{background:#071b3666}
.ccd-preferences .ccd-preferences-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ccd-preferences h2{font-size:23px;line-height:1.25;margin:0;color:#071b36;letter-spacing:-.025em}
.ccd-preferences .ccd-preferences-close{border:0;background:none;color:#071b36;font:28px/1 system-ui;padding:0;min-width:44px;min-height:44px;border-radius:8px;cursor:pointer}
.ccd-preferences p{color:#425570;font-size:13px;line-height:1.6;margin:8px 0 16px}
.ccd-preferences .ccd-preference{padding:17px 0;border-top:1px solid #e0e8f0}
.ccd-preferences label.ccd-preference-row{display:flex;align-items:center;gap:20px;padding:0;margin:0;border:0;cursor:pointer}
.ccd-preference-row>span:first-child{flex:1;min-width:0}
.ccd-preference-row strong,.ccd-preference-row small{display:block}
.ccd-preference-row strong{font-size:14px;font-weight:750;color:#071b36;margin:0 0 4px}
.ccd-preference-row small{font-size:13px;line-height:1.5;color:#425570}
.ccd-preferences input.ccd-switch{appearance:none;-webkit-appearance:none;flex:0 0 46px;width:46px;height:26px;min-height:26px;margin:0;border:2px solid #718399;border-radius:20px;background:#718399;position:relative;cursor:pointer;padding:0}
.ccd-preferences input.ccd-switch:before{content:"";position:absolute;width:18px;height:18px;top:2px;left:2px;background:#fff;border-radius:50%;transition:transform .12s}
.ccd-preferences input.ccd-switch:checked{background:#1269e8;border-color:#1269e8}
.ccd-preferences input.ccd-switch:checked:before{transform:translateX(20px)}
.ccd-preferences .ccd-always-on{font-size:12px;font-weight:700;color:#245d4c;white-space:nowrap}
.ccd-preferences details{margin:4px 0 0}.ccd-preferences summary{display:flex;align-items:center;gap:8px;min-height:44px;width:fit-content;color:#155bc1;cursor:pointer;font-size:12px;font-weight:650;list-style:none}.ccd-preferences summary:after{content:"+";font-size:18px}.ccd-preferences details[open]>summary:after{content:"−"}.ccd-preferences summary::-webkit-details-marker{display:none}.ccd-preferences details p{background:#f3f7fb;padding:12px;border-radius:8px;margin:0;font-size:12px}
.ccd-preferences .ccd-advertising{border-top:1px solid #e0e8f0;padding-top:17px}.ccd-advertising h3{font-size:15px;margin:0}.ccd-advertising>p{margin:4px 0 8px}.ccd-advertising .ccd-preference{border:0;padding:12px 0}
.ccd-preferences .ccd-preferences-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #e0e8f0;padding-top:18px;margin-top:8px}
.ccd-preferences .ccd-preferences-actions button{min-height:44px;flex:1;border:1px solid #1269e8;border-radius:9px;padding:11px 12px;font:700 13px/1.35 Manrope,system-ui,sans-serif;cursor:pointer}
.ccd-preferences .ccd-preferences-primary{background:#1269e8;color:#fff}.ccd-preferences .ccd-preferences-secondary{background:#fff;color:#155bc1}.ccd-preferences .ccd-preferences-footer{font-size:11px;margin:14px 0 0}.ccd-preferences a{color:#155bc1;text-decoration:underline}.ccd-preferences :focus-visible{outline:3px solid #1269e8;outline-offset:4px}
@media(max-width:430px){dialog.ccd-preferences{padding:20px;max-height:calc(100dvh - 24px)}.ccd-preferences h2{font-size:21px}.ccd-preferences label.ccd-preference-row{gap:12px;min-height:44px}.ccd-preferences .ccd-preferences-actions{flex-direction:column}.ccd-preferences .ccd-preferences-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.ccd-preferences input.ccd-switch:before{transition:none}}
/* Monitoring-only installation: suppress vendor UI before it can paint,
   independently of asynchronous SDK callbacks or account-side visibility. */
div:has(> iframe[title="Chat widget"]),
div:has(> iframe[title="Visit tawk.to"]) { display: none !important; }
