.video-upload-progress{padding:14px;background:#fff5e7;border:1px solid #ffd29b;border-radius:12px;margin:0 0 16px}.video-upload-progress>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}.video-upload-progress progress{display:block;width:100%;height:7px;accent-color:#ff8000;margin:10px 0}.video-upload-progress small{font-size:12px;color:#666}.video-draft-panel{margin:18px 0}.video-draft-panel h3{font-size:16px}.video-draft-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.video-draft-card{min-width:0;border:1px solid #eee;border-radius:12px;overflow:hidden;padding-bottom:10px;background:#fff}.video-draft-card img{display:block;width:100%;height:150px;object-fit:cover;background:#eee}.video-draft-card strong,.video-draft-card p{display:block;margin:9px 10px;font-size:13px;overflow-wrap:anywhere}.video-draft-card p{color:#666}.video-draft-card button{margin:3px 8px;background:#fff0dd;color:#915000;border:0;padding:8px;border-radius:8px;font-size:12px}.shopril-starting .stage{visibility:hidden}#shoprilStartup{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#101010;color:#fff;gap:0;padding:0;text-align:center}#shoprilStartup img{width:var(--startup-width,140px);height:var(--startup-logoHeight,50px);object-fit:contain}#shoprilStartup p{display:flex;align-items:center;justify-content:center;min-height:var(--startup-textHeight,45px);font:18px/1.4 system-ui;margin:0;padding:0 20px}#shoprilStartup .startup-bar{position:relative;display:block;width:var(--startup-width,140px);height:var(--startup-barHeight,12px);overflow:hidden}#shoprilStartup .startup-bar::before{content:"";position:absolute;left:0;right:0;top:50%;height:3px;background:#ff800033}#shoprilStartup .startup-bar::after{content:"";position:absolute;top:50%;left:-40%;width:40%;height:3px;background:#ff8000;animation:startup-progress 1.2s ease-in-out infinite}#shoprilStartup button{background:#ff8000;border:0;border-radius:12px;padding:12px 22px;color:#171717;font:600 15px system-ui;margin-top:16px}@keyframes startup-progress{to{left:100%}}@media(prefers-reduced-motion:reduce){#shoprilStartup .startup-bar::after{animation:none;left:30%}}

.video-draft-panel{padding:0 14px}.video-draft-card img{height:auto;aspect-ratio:3/4}.video-upload-progress>div{flex-wrap:wrap}.upload-media-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}@media(max-width:380px){.upload-media-fields{grid-template-columns:1fr!important}}

#productMediaStep .product-video-picker-label{display:none!important}.video-upload-progress{padding:0;background:#fff;border:1px solid #eee;overflow:hidden}.upload-full-video{position:relative!important;display:block!important;width:100%;height:min(55vh,480px);background:#111}.upload-full-video video{display:block;width:100%;height:100%;object-fit:contain;background:#111}.upload-video-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:#0003;color:white;pointer-events:none}.upload-video-overlay[hidden]{display:none}.upload-video-spinner{width:48px;height:48px;border:4px solid #ffffff55;border-top-color:#ff8000;border-radius:50%;animation:upload-video-rotate .8s linear infinite}.upload-video-percent{font-size:16px;font-weight:700;text-shadow:0 1px 4px #000}.upload-full-status{display:grid!important;gap:8px;padding:12px 14px}.upload-change-video{justify-self:start;border:0;border-radius:9px;padding:8px 12px;background:#fff0dd;color:#965300;font:600 13px system-ui}.upload-change-video:disabled{opacity:.5}#productMediaStep .upload-media-fields{grid-template-columns:1fr!important}#productMediaStep .upload-media-fields>label>small{font-size:12px}@keyframes upload-video-rotate{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.upload-video-spinner{animation:none}}

/* Use the modal's actual available height, including older Android WebViews. */
@media(max-width:1099px){
 #uploadVideoModal{position:fixed;inset:0;padding:0;align-items:stretch;overflow:hidden}
 #uploadVideoModal>.sheet{display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;min-height:0;padding:0;border-radius:0;overflow:hidden;box-sizing:border-box}
 #uploadVideoModal .sheet-head{position:relative;top:auto;flex:0 0 auto;margin:0;padding:16px 20px;border-radius:0}
 #uploadVideoModal .upload-note{flex:0 0 auto;margin:12px 20px 16px}
 #uploadVideoModal #testVideoForm{flex:1 1 auto;min-height:0;width:100%;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;margin:0 auto;padding:0 16px 28px;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:28px;box-sizing:border-box}
 #uploadVideoModal #uploadTestVideo{margin:10px 0 0}
}

/* Compact draft cards with a single row of actions. */
.video-draft-panel{padding:0 14px;margin:20px 0 24px}
.video-draft-panel h3{margin:0 0 12px;font-size:18px;font-weight:750;color:#202c3b}
.video-draft-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.video-draft-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;padding:14px;border:1px solid #e7e9ed;border-radius:18px;background:#fff;box-shadow:0 4px 16px #202c3b08;align-items:start}
.video-draft-card img{width:88px;height:116px;aspect-ratio:3/4;border-radius:11px;object-fit:cover;background:#f1f2f4}
.video-draft-copy{min-width:0;padding-top:2px}
.video-draft-card strong{margin:0;font-size:16px;font-weight:700;line-height:1.4;color:#202c3b;overflow-wrap:anywhere}
.video-draft-card p{margin:10px 0 0;font-size:14px;line-height:1.45;color:#747a83}
.video-draft-actions{grid-column:1/-1;display:flex;gap:10px;border-top:1px solid #f0f1f3;padding-top:12px}
.video-draft-card .video-draft-actions button{flex:1;min-width:0;min-height:44px;margin:0;padding:10px 8px;border-radius:11px;background:#ff8000;color:#171717;font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap}
.video-draft-card .video-draft-actions .video-draft-delete{background:#fff2ef;color:#b33b2e;border:1px solid #f7dcd7}
.video-draft-actions button:active{transform:scale(.98)}
@media(max-width:360px){.video-draft-grid{grid-template-columns:minmax(0,1fr)}.video-draft-card{grid-template-columns:74px minmax(0,1fr);gap:12px}.video-draft-card img{width:74px;height:99px}}

.upload-choose-video{display:block;width:100%;padding:22px;margin:0 0 16px;border:2px dashed #f5a623;border-radius:16px;background:#fff5e5;color:#202c3a;font:700 18px inherit;cursor:pointer}.upload-choose-video[hidden]{display:none}
/* Drafts share the processing product card layout. */
#portalContent .video-draft-panel{padding:0;margin:14px 10px}
#portalContent .video-draft-panel>h3{display:none}
#portalContent .video-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#portalContent .video-draft-card{display:block;position:relative;padding:0;border:1px solid #eee;border-radius:12px;box-shadow:none;overflow:hidden}
#portalContent .video-draft-card img{display:block;width:100%;height:auto;aspect-ratio:3/4;border-radius:0;object-fit:cover}
#portalContent .video-draft-copy{padding:0}
#portalContent .video-draft-card strong{display:block;margin:0;padding:10px 10px 4px;font-size:14px;line-height:1.4}
#portalContent .video-draft-card p{margin:4px 0;padding:0 10px 12px;font-size:12px;color:#997013}
#portalContent .video-draft-actions{display:block;border:0;padding:5px}
#portalContent .video-draft-actions button{display:block;width:100%;min-height:0;margin:0;padding:11px 14px;text-align:left;background:#fff;color:#202c3b;font-size:14px;white-space:normal;border:0}
#portalContent .video-draft-actions .video-draft-delete{background:#fff;color:#ba3028;border:0}
@media(min-width:700px){#portalContent .video-draft-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#uploadVideoModal:not(.video-editor-first) video.original-sound-locked::-webkit-media-controls-mute-button,#uploadVideoModal:not(.video-editor-first) video.original-sound-locked::-webkit-media-controls-volume-slider{display:none!important}

.upload-preview-controls{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:6px;align-items:center;padding:12px;background:linear-gradient(transparent,#000c);color:#fff;z-index:2;box-sizing:border-box}
.upload-preview-controls button{display:grid;place-items:center;width:44px;height:44px;padding:8px;border:0;border-radius:50%;background:#ffffff20;color:#fff;font-size:20px;cursor:pointer}
.upload-preview-controls button:disabled{opacity:.45;cursor:default}.upload-preview-time{font-size:14px;font-variant-numeric:tabular-nums}.upload-preview-controls input{grid-column:1/-1;width:100%;min-width:0;height:24px;margin:0;accent-color:#ff8000}.video-editor-first .upload-preview-controls{display:none}
