@media(max-width:760px){
 html body.design3.small-mobile dialog#modal.mobile-product-dialog{position:fixed!important;inset:var(--product-visible-top,0px) 0 auto!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;height:var(--product-visible-height,100dvh)!important;max-height:var(--product-visible-height,100dvh)!important;border:0!important;border-radius:0!important;box-sizing:border-box;overflow:hidden!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog[open]{display:flex!important;flex-direction:column!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog>.dialoghead{flex:none;padding:12px 16px!important;min-height:58px!important;gap:12px;border-bottom:1px solid #e3e8e9}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog>.dialoghead h2{font-size:20px!important;line-height:1.25;margin:0!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog>.dialoghead button{width:44px!important;height:44px!important;min-width:44px;padding:0!important;background:#b4362b!important;color:white!important;border:0;border-radius:10px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form{flex:1;min-height:0;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 16px 0!important;display:block!important;scroll-padding:16px 0 90px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .intake-primary{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form label{font-size:14px!important;line-height:1.4!important;margin:0!important;display:block}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form :is(input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea){font-size:16px!important;line-height:1.35!important;min-height:46px!important;margin-top:6px!important;width:100%!important;max-width:100%!important;box-sizing:border-box;padding:11px 12px!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form [type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;vertical-align:middle}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .product-category-block{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .two{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form details{margin:0!important;padding:14px 0!important;border:0;border-top:1px solid #e1e6e7;min-width:0}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form summary{padding:4px 0!important;min-height:28px;font-size:15px!important;line-height:1.4;white-space:normal!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form details[open]>:not(summary){margin-top:12px!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .intake-receipt{padding:14px!important;gap:14px!important;background:#f4f8f9}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .intake-receipt h3{font-size:17px!important;line-height:1.3}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .formnote{font-size:13px!important;line-height:1.5;margin:0!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .formfoot{position:sticky!important;bottom:0!important;z-index:4;display:flex!important;padding:12px 0 calc(12px + env(safe-area-inset-bottom))!important;margin:16px 0 0!important;background:#fff!important;border-top:1px solid #e3e8e9;gap:0!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .formfoot>[type=button]{display:none!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .formfoot>[type=submit]{width:100%!important;min-height:48px!important;background:#22667a!important;color:#fff!important;font-size:16px!important;border:0!important;border-radius:10px!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .mobile-product-photo{display:flex!important;gap:12px;align-items:center;min-width:0;border:1px solid #e0e7e9;border-radius:12px;padding:12px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .mobile-product-photo #photopreview{width:72px!important;height:72px!important;min-height:0!important;flex:0 0 72px;padding:0!important;margin:0!important;overflow:hidden;border:0!important;border-radius:8px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .mobile-product-photo #photopreview :is(img,.partphoto,.nophoto){width:72px!important;height:72px!important;min-height:0!important;margin:0!important;object-fit:cover;border:0;padding:0}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .mobile-product-photo>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-photo strong{flex-basis:100%;font-size:14px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form button:not([type=submit]){background:#fff;color:#24596a;border:1px solid #cbd8dc;min-height:44px;padding:9px 12px;font-size:14px;white-space:normal}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;pointer-events:none}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-codes .tools{display:flex;flex-wrap:wrap;gap:8px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-draft{padding:12px;background:#edf5f4;border-radius:10px;margin-bottom:16px}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-draft button{margin:4px}
 body.design3.small-mobile #mobileDock .nav[hidden]{display:none!important}
 body.design3.small-mobile #mobileDock .nav{font-size:12px!important}
 .mobile-more-dialog,.mobile-product-close-review{width:calc(100% - 24px);max-width:420px;max-height:85dvh;padding:16px;border:0;border-radius:16px;box-sizing:border-box;overflow:auto}
 .mobile-more-dialog::backdrop,.mobile-product-close-review::backdrop{background:#142b3b88}
 .mobile-more-list,.mobile-product-close-actions{display:grid;gap:10px}
 .mobile-more-list .nav{display:flex;align-items:center;gap:12px;min-height:48px;background:#f2f6f7;color:#204b5b;padding:12px;border:0;border-radius:10px;text-align:left}
 .mobile-more-list .nav svg{width:22px;height:22px;flex:none}
 .mobile-product-close-review h2{font-size:20px}.mobile-product-close-review p{font-size:15px;line-height:1.5}
 .mobile-product-close-actions button{min-height:46px;font-size:15px}
 .mobile-product-close-actions .primary{background:#22667a;color:#fff}
 .mobile-product-edit{margin-top:8px;min-height:44px;background:#edf4f6;color:#24596a;border:1px solid #d2dfe3;border-radius:8px}
 .mobile-catalog-cards{display:grid;gap:10px;margin-top:12px}.mobile-catalog-cards article{padding:14px;background:#fff;border:1px solid #e0e5e6;border-radius:10px}.mobile-catalog-cards p{margin:6px 0 0}
}

@media(max-width:760px){
 html body.design3.small-mobile dialog#modal.mobile-product-dialog[open]{transform:none!important;left:0!important;top:var(--product-visible-top,0px)!important;min-height:0!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog>#modalform.mobile-product-form{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:hidden!important}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-fields{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;scroll-padding:16px;-webkit-overflow-scrolling:touch}
 html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .formfoot{position:static!important;flex:0 0 auto!important;margin:0!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important}
 html body.design3.small-mobile #mobileDock .nav.mobile-more-only{display:none!important}
}
@media(max-width:760px){
 html body.design3.small-mobile dialog:is(.mobile-more-dialog,.mobile-product-close-review)[open]{position:fixed!important;inset:auto 12px calc(12px + env(safe-area-inset-bottom))!important;transform:none!important;margin:0 auto!important;width:calc(100% - 24px)!important;max-width:420px!important;height:auto!important;min-height:0!important;max-height:85dvh!important;padding:16px!important;overflow:auto!important;display:block!important}
 html body.design3.small-mobile dialog.mobile-more-dialog .dialoghead{padding:0 0 12px!important}
}

/* Seller order/detail tables must not hide amounts and actions off-screen. */
@media(max-width:760px){
 body.design3.small-mobile[data-role=seller] .tablewrap{overflow:visible;max-width:100%}
 body.design3.small-mobile[data-role=seller] .tablewrap>table{display:block!important;min-width:0!important;width:100%!important;table-layout:auto}
 body.design3.small-mobile[data-role=seller] .tablewrap>table thead{display:none}
 body.design3.small-mobile[data-role=seller] .tablewrap>table tbody{display:block;width:100%}
 body.design3.small-mobile[data-role=seller] .tablewrap>table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;width:100%;padding:16px;border-bottom:1px solid #e1e5e6}
 body.design3.small-mobile[data-role=seller] .tablewrap>table td{display:block;min-width:0;width:auto!important;padding:0!important;border:0;white-space:normal!important;overflow-wrap:anywhere}
 body.design3.small-mobile[data-role=seller] .tablewrap>table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#687670;margin-bottom:4px}
 body.design3.small-mobile[data-role=seller] .tablewrap>table td:first-child,body.design3.small-mobile[data-role=seller] .tablewrap>table td:last-child{grid-column:1/-1}
 body.design3.small-mobile[data-role=seller] .tablewrap>table td[colspan]::before{display:none}
 body.design3.small-mobile[data-role=seller] .tablewrap>table td button{max-width:100%;white-space:normal}
}

.photo-background-editor{padding:12px;border:1px solid #ddd;border-radius:10px;margin:10px 0;max-width:100%;min-width:0}.photo-background-editor canvas{display:block;max-width:100%;max-height:340px;width:auto;height:auto;margin:10px auto;border:1px solid #ddd}.photo-background-editor canvas[hidden]{display:none}.photo-background-editor input[type=range]{width:100%;min-width:0}.photo-background-editor .tools{flex-wrap:wrap}

.mobile-product-photo>.photo-background-editor{grid-column:1/-1;order:3;flex-basis:100%;width:100%;box-sizing:border-box}.mobile-product-photo>#photopreview{min-width:0}.photo-background-editor .product-site-choice{white-space:normal;display:flex!important;align-items:flex-start}.photo-background-editor>summary{white-space:normal}.photo-background-editor>canvas{max-width:100%}.intake-primary>.product-site-choice{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}

html body.design3.small-mobile dialog#modal.mobile-product-dialog .mobile-product-form .mobile-product-photo{flex-wrap:wrap}.photo-background-editor{grid-column:1/-1}.intake-primary>.product-site-choice{grid-column:1/-1}

@media(max-width:760px){
 #content .mobile-product-footer{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box;display:grid;gap:12px;border-top:1px solid #e4e9eb;padding-top:12px;margin-top:2px}
 #content .mobile-product-footer>.product-site-choice{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;min-width:0;width:100%;font-size:13px;line-height:1.45}
 #content .mobile-product-footer>.product-site-choice>span{flex:1;min-width:0;white-space:normal;overflow-wrap:break-word}
 #content .mobile-product-footer>.product-site-choice>input{flex:0 0 20px!important;width:20px!important;height:20px!important;margin:0!important}
 #content .mobile-product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
 #content .mobile-product-actions>button{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%!important;max-width:100%;min-width:0!important;min-height:48px;margin:0!important;padding:10px 8px!important;font-size:13px!important;line-height:1.35;white-space:normal!important;text-align:center;border-radius:8px}
}
@media(max-width:360px){#content .mobile-product-actions{grid-template-columns:minmax(0,1fr)}}
