.tzl-managed-ad{position:relative;box-sizing:border-box;margin:0 auto;max-width:100%;}
.tzl-managed-ad img.tzl-ad-creative,.tzl-managed-ad video.tzl-ad-creative{display:block;width:100%;max-width:100%;height:100%;object-fit:contain;margin:0 auto;}
.tzl-managed-ad a{display:block;width:100%;height:100%;line-height:0;}
.tzl-popup-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.68);box-sizing:border-box;}
.tzl-popup-overlay[hidden]{display:none!important;}
.tzl-popup-dialog{position:relative;width:min(680px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;padding:42px 18px 18px;box-shadow:0 18px 60px rgba(0,0,0,.35);box-sizing:border-box;}
.tzl-popup-dialog .tzl-managed-ad{max-width:100%!important;}
.tzl-popup-close{position:absolute;right:9px;top:7px;width:34px;height:34px;border:0;border-radius:50%;background:#f0f0f0;color:#222;font-size:27px;line-height:1;cursor:pointer;}
.tzl-popup-close:hover,.tzl-popup-close:focus{background:#ddd;outline:2px solid #2271b1;outline-offset:2px;}
body.tzl-popup-open{overflow:hidden;}
@media(max-width:600px){.tzl-popup-dialog{width:96vw;padding:42px 12px 12px;max-height:92vh;}}

/* Five-second shortcode rotation; only the active creative occupies layout space. */
.tzl-ad-rotation-slide[hidden]{display:none!important;}
.tzl-ad-rotation-slide{width:100%;}
