/* CXC shell/controller. Legacy popup appearance comes from paoc-legacy-public.css. */
.cxc-popup{position:fixed;inset:0;z-index:165000;display:none;box-sizing:border-box;pointer-events:none}.cxc-popup.is-open{display:block}.cxc-popup-overlay{position:fixed;inset:0;z-index:0;background:rgba(0,0,0,.5);opacity:1;pointer-events:none}.cxc-popup-stage{position:fixed!important;inset:0!important;z-index:1!important;width:100%!important;height:100%!important;display:flex!important;overflow:auto!important;padding:20px;box-sizing:border-box;pointer-events:none}.cxc-popup-stage.custombox-x-center{justify-content:center}.cxc-popup-stage.custombox-x-left{justify-content:flex-start}.cxc-popup-stage.custombox-x-right{justify-content:flex-end}.cxc-popup-stage.custombox-y-center{align-items:center}.cxc-popup-stage.custombox-y-top{align-items:flex-start}.cxc-popup-stage.custombox-y-bottom{align-items:flex-end}.cxc-popup.is-open .paoc-cb-popup-body{display:block}.cxc-popup .paoc-cb-popup-body{z-index:2;pointer-events:auto;resize:none;overflow:auto;min-width:280px;min-height:140px;transform-origin:center center;position:relative}.cxc-popup-resize-handle{position:absolute;right:3px;bottom:3px;width:18px;height:18px;z-index:30;cursor:nwse-resize;pointer-events:auto;border-radius:2px;background:linear-gradient(135deg,transparent 0 45%,currentColor 46% 52%,transparent 53% 62%,currentColor 63% 69%,transparent 70%);opacity:.55;color:#555}.cxc-popup-resize-handle:hover{opacity:.9}.cxc-popup .paoc-cb-popup-body.cxc-popup-resizing,.cxc-popup .paoc-cb-popup-body.cxc-popup-resizing *{user-select:none!important}.cxc-popup .paoc-cb-popup-body.cxc-popup-resizing{cursor:nwse-resize!important}.cxc-popup .paoc-popup-mheading,.cxc-popup .paoc-popup-sheading{cursor:move;user-select:none}.cxc-popup .paoc-cb-popup-body.cxc-popup-dragging,.cxc-popup .paoc-cb-popup-body.cxc-popup-dragging *{cursor:grabbing!important;user-select:none!important}.cxc-popup.cxc-popup-active .paoc-cb-popup-body{box-shadow:0 14px 46px rgba(0,0,0,.26)}.cxc-popup-open{overflow:auto!important}.cxc-popup-trigger{cursor:pointer}.paoc-pro-popup-button{display:inline-block;text-decoration:none}@media(max-width:600px){.cxc-popup-stage{padding:10px}.cxc-popup .paoc-cb-popup-body{max-width:100%!important}}

/* User-resized modal: make the legacy inner structure follow the resized shell. */
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized{overflow:hidden!important;display:flex!important;flex-direction:column!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized>.paoc-popup-inr-wrap{width:100%!important;height:100%!important;max-height:none!important;overflow:hidden!important;display:flex!important;flex:1 1 auto!important;min-height:0!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-con-bg{width:100%!important;height:100%!important;max-height:none!important;display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-inr{width:100%!important;height:100%!important;max-height:none!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-mheading,.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-sheading{flex:0 0 auto!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-secondary-con{width:100%!important;max-width:100%!important;flex:0 0 auto!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content img{max-width:100%!important;height:auto!important}
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content table{max-width:100%!important}

/* v1.0.11: once the user resizes a popup, override legacy per-popup max-height rules (often max-height:500px!important). */
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-inr-wrap,
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-con-bg,
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-inr { box-sizing:border-box!important; }
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content { max-height:none!important; height:auto!important; flex:1 1 0!important; min-height:0!important; overflow:auto!important; box-sizing:border-box!important; }
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content > :first-child { margin-top:0; }
.cxc-popup .paoc-cb-popup-body.cxc-popup-user-sized .paoc-popup-content img { max-width:100%!important; height:auto!important; }


/* v1.0.12: centralized CXC site-wide educational popup presentation.
 * These were historically duplicated in _aoc_custom_css on many popup records.
 * Keep only truly popup-specific overrides in each popup's saved custom CSS.
 */
.cxc-popup .paoc-modal-design-3 .paoc-popup-con-bg {
    background-color:#043a4e !important;
}
.cxc-popup div.paoc-popup-margin.paoc-popup-mheading,
.cxc-popup div.paoc-popup-margin.paoc-popup-sheading {
    background-color:#043a4e;
    font-weight:400 !important;
    font-size:16px !important;
    color:#fff !important;
    font-family:robotolight, sans-serif;
    line-height:2 !important;
}
.cxc-popup .paoc-popup-margin { margin-bottom:0 !important; }
.cxc-popup .paoc-popup-content {
    background-color:#fff !important;
    font-size:12pt !important;
    font-style:normal !important;
    font-weight:400 !important;
    max-height:500px !important;
    overflow-y:auto !important;
}
.cxc-popup .paoc-popup-content ol li { margin-bottom:5px !important; }
.cxc-popup .paoc-popup-content table:not(.shop_table)>tbody>tr>td { padding:5px 5px !important; }
.cxc-popup .paoc-popup-content table:not(.shop_table)>tbody>tr>td:hover {
    background-color:#00b0f0 !important;
    color:#fff !important;
}
.cxc-popup .paoc-pro-close-popup {
    background-color:#d5440b !important;
    color:#fff !important;
}
/* Deliberately no fixed .paoc-modal-design-3 z-index here: CXC owns stacking dynamically. */
