.magup-video{position:relative;width:100%;aspect-ratio:var(--video-ratio,16/9);max-height:78vh;background:#102b2c;border-radius:8px;overflow:hidden;display:grid;place-items:center}
.magup-video>video,.magup-video-poster{width:100%;height:100%;position:absolute;inset:0}
.magup-video>video{object-fit:contain}
.magup-video-poster{border:0;padding:0;background:transparent;color:white;cursor:pointer;display:grid;place-items:center}
.magup-video-poster>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.magup-video-poster>img.video-cover-crop{object-fit:cover}
.magup-video-poster>span{z-index:1;background:#125e60dd;padding:13px 18px;border-radius:40px}
.magup-video [data-video-error]{position:absolute;bottom:0;padding:6px 12px;color:white;background:#172c2ae8;margin:0;pointer-events:none}
.magup-video [hidden],[data-media-stage]>[hidden],.gallery-thumbs [hidden]{display:none!important}
[data-media-panel]>img{display:block;width:100%;max-height:72vh;object-fit:contain}
.video-device-m{display:none}
@media(max-width:767px){.video-device-d{display:none}.video-device-m{display:block}}
.magup-gallery-play{display:grid;place-items:center;min-height:48px;background:#e2f1e9;color:#126f72}
.hm-type-video .hm-content{padding-block:12px}
.magup-video-library{border:1px solid #d6e4dc;border-radius:9px;width:min(740px,94vw);max-height:88vh;padding:16px;box-shadow:0 12px 35px #143d3450}
.magup-video-library::backdrop{background:#19363080}
.magup-video-library header,.video-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.magup-video-library header h2{margin:0 auto 0 0}
.magup-video-library input,.magup-video-library select{max-width:100%}
.magup-video-library ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;list-style:none;padding:0;max-height:45vh;overflow:auto}
.magup-video-library li{min-width:0;background:#eef5f0;padding:8px;border-radius:5px;overflow-wrap:anywhere}
.magup-video-library li img{width:100%;height:85px;object-fit:contain}
.magup-video-library video{display:block;max-width:100%;max-height:32vh}
.magup-video-library progress{width:100%}
.product-media-rows{display:grid;gap:9px;margin:14px 0}
.product-media-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid #d9e6dd;border-radius:6px}
.product-media-row img{width:75px;height:65px;object-fit:contain;background:#edf4ee}
.product-media-row strong{margin-inline-end:auto}
.product-media-row button,.video-tools button{min-height:36px}
