#occ-root{--occ-bg:#fff;--occ-text:#1f2937;--occ-btn-bg:#2563eb;--occ-btn-text:#fff;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--occ-text)}
#occ-root *{box-sizing:border-box}

/* overlay */
.occ-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:999998}
.occ-overlay.occ-open{display:block}

/* banner */
.occ-banner{display:none;position:fixed;z-index:999999;background:var(--occ-bg);color:var(--occ-text);box-shadow:0 8px 32px rgba(0,0,0,.2);padding:20px}
.occ-banner.occ-open{display:block}
.occ-layout-bar-bottom{left:0;right:0;bottom:0}
.occ-layout-bar-top{left:0;right:0;top:0}
.occ-layout-box-left,.occ-layout-box-right{bottom:20px;width:calc(100% - 40px);max-width:400px;border-radius:12px}
.occ-layout-box-left{left:20px}
.occ-layout-box-right{right:20px}
.occ-layout-popup{top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:480px;border-radius:12px}

.occ-title{margin:0 0 6px;font-size:17px;line-height:1.3;color:inherit}
.occ-message{margin:0;color:inherit}
.occ-message a,.occ-policy{color:inherit;text-decoration:underline}
.occ-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

.occ-layout-bar-bottom .occ-inner,.occ-layout-bar-top .occ-inner{display:flex;align-items:center;gap:24px;max-width:1200px;margin:0 auto}
.occ-layout-bar-bottom .occ-body,.occ-layout-bar-top .occ-body{flex:1}
.occ-layout-bar-bottom .occ-actions,.occ-layout-bar-top .occ-actions{margin-top:0;flex-shrink:0}
@media (max-width:700px){
	.occ-layout-bar-bottom .occ-inner,.occ-layout-bar-top .occ-inner{display:block}
	.occ-layout-bar-bottom .occ-actions,.occ-layout-bar-top .occ-actions{margin-top:14px}
}

/* buttons: accept and reject share the same look on purpose */
.occ-btn{appearance:none;cursor:pointer;font:inherit;font-weight:600;padding:9px 16px;border-radius:6px;border:2px solid var(--occ-btn-bg);background:var(--occ-btn-bg);color:var(--occ-btn-text);line-height:1.2}
.occ-btn:hover{filter:brightness(1.1)}
.occ-btn-outline{background:transparent;color:var(--occ-btn-bg)}
.occ-btn:focus-visible,.occ-close:focus-visible,.occ-revisit:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.occ-layout-box-left .occ-btn,.occ-layout-box-right .occ-btn,.occ-layout-popup .occ-btn{flex:1 1 auto}

/* preference modal */
.occ-modal{display:none;position:fixed;z-index:1000000;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:560px;max-height:calc(100vh - 32px);background:var(--occ-bg);color:var(--occ-text);border-radius:12px;box-shadow:0 12px 48px rgba(0,0,0,.3);flex-direction:column}
.occ-modal.occ-open{display:flex}
.occ-modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid rgba(127,127,127,.25)}
.occ-modal-head h2{margin:0;font-size:18px;color:inherit}
.occ-close{appearance:none;background:none;border:0;color:inherit;font-size:28px;line-height:1;cursor:pointer;padding:0 6px}
.occ-modal-body{padding:16px 20px;overflow-y:auto}
.occ-intro{margin:0 0 12px}
.occ-cat{padding:12px 0;border-top:1px solid rgba(127,127,127,.2)}
.occ-cat p{margin:4px 0 0;opacity:.85}
.occ-cat-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.occ-always{font-size:12px;font-weight:600;color:var(--occ-btn-bg)}
.occ-modal-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:14px 20px;border-top:1px solid rgba(127,127,127,.25)}

/* toggle switch */
.occ-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}
.occ-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.occ-slider{position:absolute;inset:0;background:#9ca3af;border-radius:24px;transition:background .15s}
.occ-slider:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .15s}
.occ-switch input:checked+.occ-slider{background:var(--occ-btn-bg)}
.occ-switch input:checked+.occ-slider:before{transform:translateX(20px)}
.occ-switch input:focus-visible+.occ-slider{outline:3px solid currentColor;outline-offset:2px}

/* floating re-open button */
.occ-revisit{display:none;position:fixed;bottom:16px;z-index:999997;width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;background:var(--occ-btn-bg);color:var(--occ-btn-text);box-shadow:0 2px 10px rgba(0,0,0,.3);align-items:center;justify-content:center;padding:0}
.occ-revisit.occ-open{display:flex}
.occ-pos-left{left:16px}
.occ-pos-right{right:16px}

@media (prefers-reduced-motion:reduce){.occ-slider,.occ-slider:before{transition:none}}

/* Hardening against theme / page-builder CSS */
#occ-root .occ-banner.occ-open{display:block!important;visibility:visible!important;opacity:1!important}
#occ-root .occ-modal.occ-open{display:flex!important;visibility:visible!important;opacity:1!important}
#occ-root .occ-overlay.occ-open{display:block!important}
#occ-root .occ-revisit.occ-open{display:flex!important}
#occ-root .occ-banner{z-index:2147483000}
#occ-root .occ-overlay{z-index:2146999999}
#occ-root .occ-modal{z-index:2147483001}
#occ-root .occ-revisit{z-index:2146999998}
#occ-root .occ-modal-body{flex:1 1 auto;min-height:0}
#occ-root button{text-transform:none;letter-spacing:normal;text-shadow:none;margin:0;min-height:0;width:auto;height:auto}
#occ-root .occ-revisit{width:44px;height:44px}
#occ-root .occ-switch input{width:100%;height:100%}

/* Beat theme rules like "input:not(:placeholder-shown)+span{opacity:0}" that hide the toggle */
#occ-root .occ-switch input + .occ-slider,
#occ-root .occ-switch input:focus + .occ-slider,
#occ-root .occ-switch input:not(:placeholder-shown) + .occ-slider,
#occ-root .occ-switch input:checked + .occ-slider{opacity:1!important;visibility:visible!important}
#occ-root .occ-switch .occ-slider{display:block!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;border-radius:24px!important}
#occ-root .occ-switch .occ-slider:before{display:block!important;opacity:1!important}
#occ-root .occ-switch input{opacity:0!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;margin:0!important;z-index:2!important}

/* Preference center: accordion layout */
#occ-root .occ-modal-body{padding-top:14px}
#occ-root .occ-intro{margin:0 0 12px;line-height:1.5}
#occ-root .occ-allow{margin:4px 0 8px}
#occ-root .occ-manage{margin:16px 0 4px;font-size:16px;font-weight:700;color:inherit}
#occ-root .occ-cat{padding:0;border-top:1px solid rgba(127,127,127,.25)}
#occ-root .occ-cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
#occ-root .occ-acc-btn{appearance:none;display:flex;align-items:center;gap:12px;flex:1 1 auto;text-align:left;background:none!important;border:0!important;color:inherit!important;font:inherit;font-weight:700;cursor:pointer;padding:0!important;box-shadow:none!important}
#occ-root .occ-pm{position:relative;display:inline-block;width:14px;height:14px;flex:0 0 14px}
#occ-root .occ-pm:before,#occ-root .occ-pm:after{content:"";position:absolute;background:currentColor;left:0;right:0;top:6px;height:2px}
#occ-root .occ-pm:after{transform:rotate(90deg);transition:transform .15s}
#occ-root .occ-acc-open .occ-pm:after{transform:rotate(0)}
#occ-root .occ-cat-desc{margin:0 0 14px 26px;opacity:.85;line-height:1.5}
#occ-root .occ-cat-desc[hidden]{display:none!important}
#occ-root .occ-always{font-size:13px;font-weight:700;color:var(--occ-btn-bg);white-space:nowrap}
#occ-root .occ-modal-foot{justify-content:flex-end}
