.buteco-ad{max-width:100%;margin:1.25em auto;clear:both;box-sizing:border-box}
.buteco-ad *{box-sizing:border-box}
.buteco-ad-stage{position:relative;overflow:hidden;width:100%;aspect-ratio:var(--bad-ratio,16/9);background:#252525;isolation:isolate;border-radius:7px;user-select:none;-webkit-user-select:none}
.buteco-ad-stage.buteco-ad-ratio-auto{aspect-ratio:16/9}
.buteco-ad-imgwrap{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.buteco-ad-imgwrap img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border:0!important;margin:0!important;padding:0!important;display:block!important;opacity:1!important;filter:none!important;transform:none!important}
.buteco-ad-imgwrap-before{clip-path:inset(0 calc(100% - var(--bad-pos,50%)) 0 0)}
.buteco-ad-imgwrap-before img{object-position:var(--bad-before-position,50% 50%)}
.buteco-ad-imgwrap-after img{object-position:var(--bad-after-position,50% 50%)}
.buteco-ad-label{position:absolute;top:14px;z-index:2;max-width:38%;padding:5px 11px;background:rgba(0,0,0,.72);color:white!important;border-radius:4px;font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.04em;overflow-wrap:anywhere;pointer-events:none;text-shadow:none}
.buteco-ad-label-before{left:14px}.buteco-ad-label-after{right:14px}
.buteco-ad-divider{position:absolute;top:0;bottom:0;left:var(--bad-pos,50%);width:3px;background:var(--bad-line,#fff);transform:translateX(-50%);z-index:3;pointer-events:none;box-shadow:0 0 4px rgba(0,0,0,.42)}
.buteco-ad-handle{position:absolute;top:50%;left:50%;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);width:49px;height:49px;border-radius:50%;border:3px solid var(--bad-line,#fff);background:rgba(30,30,30,.8);color:#fff;font-size:25px;font-weight:700;letter-spacing:2px;line-height:1;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.buteco-ad-range{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;z-index:4!important;cursor:ew-resize!important;appearance:none!important;-webkit-appearance:none!important;background:transparent!important;touch-action:pan-y}
.buteco-ad-range:focus-visible + .buteco-ad-error{outline:0}
.buteco-ad-stage:focus-within .buteco-ad-handle{outline:3px solid #ffce57;outline-offset:3px}
.buteco-ad-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:48px;height:48px;cursor:ew-resize}
.buteco-ad-range::-moz-range-thumb{width:48px;height:48px;cursor:ew-resize}
.buteco-ad-actions{display:flex;justify-content:flex-end;padding:8px 0 0}
.buteco-ad-open{border:1px solid currentColor!important;border-radius:5px!important;background:transparent!important;color:inherit!important;padding:6px 12px!important;font-size:13px!important;line-height:1.5!important;cursor:pointer!important;box-shadow:none!important;text-transform:none!important}
.buteco-ad-open:hover,.buteco-ad-open:focus-visible{background:rgba(128,128,128,.12)!important}
.buteco-ad-error[hidden]{display:none!important}
.buteco-ad-error:not([hidden]){position:absolute;inset:auto 12px 12px;z-index:6;padding:12px;background:#fff;color:#842b2b;border-radius:4px;font-size:13px}
.buteco-ad-lightbox{position:fixed!important;inset:0!important;z-index:2147483640!important;background:rgba(0,0,0,.92)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:70px 24px 24px;box-sizing:border-box;color:#fff;font-family:system-ui,-apple-system,sans-serif}
.buteco-ad-lightbox[hidden]{display:none!important}
.buteco-ad-lightbox img{display:block;max-width:min(95vw,1500px)!important;max-height:calc(100vh - 180px)!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important;border:0!important;box-shadow:none!important}
.buteco-ad-lightbox-top{position:absolute;top:15px;left:15px;right:15px;display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.buteco-ad-lightbox button{border:1px solid #aaa!important;border-radius:5px!important;color:#fff!important;background:#242424!important;cursor:pointer!important;padding:8px 14px!important;font-size:14px!important}
.buteco-ad-lightbox button[aria-pressed=true]{background:#fff!important;color:#111!important}
.buteco-ad-lightbox .buteco-ad-lightbox-close{margin-left:auto}
.buteco-ad-lightbox-caption{color:#fff;text-align:center;margin-top:10px;font-size:13px}
@media(prefers-reduced-motion:reduce){.buteco-ad *{transition:none!important}}
