.upload-open{flex:0 0 auto;padding:10px 16px;background:#0000ff;color:#fff;font:600 14px Arial,sans-serif;cursor:pointer;white-space:nowrap;min-height:42px}
.upload-dialog{padding:0;border:1px solid #111;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;background:#edf0f1;color:#111;box-shadow:4px 4px 0 #0004}
.upload-dialog::backdrop{background:#0009}
.upload-heading{background:#0000ff;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font:600 16px Arial,sans-serif}
.upload-close{width:32px;height:32px;padding:6px;border:0;background:transparent;color:#fff;cursor:pointer}.upload-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3}
.upload-form{display:grid;gap:16px;padding:20px;font:14px/1.5 Arial,sans-serif}.upload-form label{display:grid;gap:6px;font-weight:600}.upload-form label span{font-weight:400;color:#606575}.upload-form input{box-sizing:border-box;width:100%;min-width:0;font:16px Arial,sans-serif;padding:10px;background:#fff;border:1px solid #aeb3be;border-radius:0;color:#111}.upload-help,.upload-status{margin:0}.upload-help{font-size:13px;color:#545b6a}.upload-submit{padding:12px;background:#0000ff;color:white;font:600 16px Arial,sans-serif;cursor:pointer}.upload-form button:disabled{opacity:.6;cursor:wait}.upload-form progress{width:100%;accent-color:#0000ff}.upload-view,.community-load-status button{font:inherit;text-decoration:underline;border:0;background:transparent;color:#0000ff;cursor:pointer;padding:0}.community-load-status{font:13px Arial,sans-serif}
@media(max-width:780px){.upload-open{width:100%;grid-column:1/-1}.upload-form{padding:16px}}

@media(min-width:781px){.gallery-folder .upload-open{order:-1}.toolbar:has(.upload-open){grid-template-columns:minmax(0,1fr) minmax(200px,330px) auto}}

/* Match the homepage shop buttons and use one toolbar control height. */
body[data-upload-collection]{--gallery-control-height:30px}
.upload-open,.upload-submit{border:0;border-radius:0;font-family:'Inter Tight',sans-serif;font-weight:600;box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #0a0b0d,inset 2px 2px 0 #dee1e7,inset -2px -2px 0 #5b616e}
.upload-open:active,.upload-submit:active{box-shadow:inset 1px 1px 0 #0a0b0d,inset -1px -1px 0 #fff,inset 2px 2px 0 #5b616e,inset -2px -2px 0 #dee1e7;transform:translate(1px,1px)}
body[data-upload-collection] .upload-open{height:var(--gallery-control-height);min-height:0;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
body[data-upload-collection] .receipt-path,body[data-upload-collection] .path{box-sizing:border-box;height:var(--gallery-control-height);min-height:0;padding:0 10px}
body[data-upload-collection] #gallerySearch,body[data-upload-collection] #videoSearch{box-sizing:border-box;height:var(--gallery-control-height);min-height:0;padding:0 36px 0 12px;line-height:normal}
body[data-upload-collection] .search-wrap{height:var(--gallery-control-height)}
