/* Last stylesheet: bounded media surfaces independent of legacy product styles. */
#products .product-media-grid{grid-template-columns:minmax(260px,.8fr) minmax(330px,1.2fr);align-items:start}
#products .product-media-box{min-width:0;align-self:start;display:flex;flex-direction:column;gap:12px}
#products .product-media-box h5{margin:0}
#products .product-media-box .cover-preview{width:min(100%,280px);height:auto;aspect-ratio:1;margin:0;background:#fff}
#products .product-media-box .mall-media-preview{height:100%;min-height:0;position:relative;border-radius:8px}
#products .product-media-box [data-mall-enlarge]{cursor:zoom-in}
#products .product-media-box [data-mall-enlarge]:focus-visible{outline:3px solid #2371c8;outline-offset:3px}
#products .product-media-box input[type=file]{display:block;position:static;width:100%;height:auto;min-height:42px;flex:none;max-width:100%;box-sizing:border-box;margin:0;background:#fff;padding:7px}
#products .product-media-box>button{width:fit-content;min-height:36px;margin:0}
#products .product-detail-image-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:0;max-height:550px;overflow:auto;align-items:start;min-width:0;padding:2px}
#products .product-detail-image-preview[hidden]{display:none}
#products .product-detail-image-item{width:auto;min-width:0;position:static;padding:8px;display:flex;flex-direction:column;gap:8px;margin:0;background:#fff}
#products .product-detail-image-item .mall-media-preview{height:220px;min-height:220px;width:100%;flex:none;background:#f3f5f8}
#products .product-detail-image-item .mall-media-preview img{width:100%;height:100%;object-fit:cover;object-position:top}
#products .product-detail-image-actions{display:flex;gap:8px;flex-wrap:wrap}
#products .product-detail-image-actions button{position:static;flex:1;min-width:64px;height:34px;margin:0;padding:0 8px}
#products .mall-media-help{margin:0;font-size:12px;line-height:1.6;color:#65758b}
#products .mall-media-pending{font-size:12px;color:#99621c;line-height:1.5}
#products .mall-presentation-settings:not(details){padding:0;border:0;background:none}
#products .mall-presentation-page-title{display:flex;gap:12px;align-items:center;margin:0 0 10px}
#products .mall-presentation-page-title small{color:#778399}
#products .mall-presentation-live-preview{padding:12px 14px;border:1px solid #cddff4;border-radius:8px;background:#f3f8ff;margin-bottom:14px;color:#285989;overflow-wrap:anywhere}
.mall-image-viewer{box-sizing:border-box;width:min(1120px,94vw);height:90vh;max-width:94vw;max-height:94vh;padding:0;border:1px solid #d6dfea;border-radius:14px;background:#fff;color:#22344b;overflow:hidden;box-shadow:0 20px 100px #101e3b55}
.mall-image-viewer[open]{display:flex;flex-direction:column}
.mall-image-viewer::backdrop{background:rgba(12,22,37,.7)}
.mall-image-viewer header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e4e9f0;flex:none}
.mall-image-viewer header div{min-width:0}.mall-image-viewer strong{display:block;overflow-wrap:anywhere}.mall-image-viewer small{display:block;color:#6b7c92;font-size:12px;margin-top:4px}
.mall-image-viewer button{appearance:none;background:#fff;color:#285989;border:1px solid #cfdae9;border-radius:6px;font:inherit;font-size:13px;line-height:1.3;min-height:34px;padding:6px 12px;cursor:pointer;white-space:nowrap}
.mall-image-viewer button:disabled{opacity:.4;cursor:default}.mall-image-viewer button:focus-visible{outline:3px solid #82b1ef;outline-offset:2px}
.mall-image-viewer-toolbar{padding:10px 16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:none;background:#f7f9fc;border-bottom:1px solid #e4e9f0;font-size:13px}
.mall-viewer-spacer{flex:1}.mall-image-viewer-stage{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:#e7ebf0;padding:20px;box-sizing:border-box}
.mall-image-viewer-stage img{display:block;max-width:none!important;max-height:none!important;height:auto!important;object-fit:initial!important;margin:0 auto;box-shadow:0 1px 7px #19243b30}
.mall-image-viewer-stage p{padding:20px;text-align:center}
#fulfillment .fw-table-wrap{max-height:calc(100vh - 340px);min-height:260px;overflow:auto}#fulfillment .fw-table thead th{position:sticky;top:0;z-index:1}
@media(max-width:1180px){#products .product-media-grid{grid-template-columns:1fr}#products .product-media-box .cover-preview{width:240px}#products .product-detail-image-preview{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:600px){.mall-image-viewer{width:96vw;max-width:96vw;height:94vh}.mall-image-viewer header{padding:12px}.mall-image-viewer-toolbar{padding:8px}.mall-viewer-spacer{display:none}#products .product-media-grid{display:block}#products .product-media-box{margin-bottom:16px}}
#finance #financeSeries{display:block;height:auto;min-height:235px;overflow:auto;padding:12px 4px 0;box-sizing:border-box}
#finance .fin-series-grid{display:grid;grid-template-columns:repeat(var(--day-count),minmax(58px,1fr));width:100%;min-width:calc(var(--day-count)*58px);gap:0;height:225px}
#finance .fin-day{appearance:none;width:100%;height:225px;min-height:0;border:0;border-radius:0;background:transparent;padding:0 8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;color:#3a506a;cursor:pointer;box-sizing:border-box;font:inherit}
#finance .fin-day-plot{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:190px;flex:none;width:100%;border-bottom:1px solid #bac8d7}
#finance .fin-day-bar{display:block;width:70%;max-width:76px;min-height:0;background:#3976d5;border-radius:5px 5px 0 0}
#finance .fin-day-bar.is-zero{height:0!important;border:0}
#finance .fin-day-date{display:block;font-size:13px;font-weight:500;line-height:1.5;color:#435b76;margin-top:8px;white-space:nowrap;transform:none}
#finance .fin-day:hover,#finance .fin-day.is-selected{background:#f0f6ff}#finance .fin-day:focus-visible{outline:2px solid #2371c8;outline-offset:-2px}
#finance .fin-series-detail{min-height:20px;margin:10px 4px 0;font-size:13px;line-height:1.6;color:#234f80}
#finance .fin-chart-empty{padding:60px 20px;text-align:center;color:#65758b;font-size:14px}
#finance .fin-pagination{flex-wrap:wrap;align-items:center}#finance .fin-pagination label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}#finance .fin-pagination select{width:auto;min-width:70px;min-height:32px;height:32px;padding:4px}
#finance .fin-ledger-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#finance .fin-ledger-filter input{width:240px;max-width:100%;height:36px;min-height:36px;margin:0}
#customerService .cs-order-search{display:flex;gap:8px;align-items:flex-end;margin-bottom:14px}#customerService .cs-order-search label{flex:1;min-width:0;margin:0;font-size:12px;color:#65758b}#customerService .cs-order-search input{width:100%;min-height:34px;height:34px;padding:6px 8px}#customerService .cs-order-search button,#customerService .cs-order-pager button{min-width:0;min-height:34px;height:34px;padding:4px 10px;font-size:12px}#customerService .cs-order-pager{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;padding:12px 0;flex-wrap:wrap}
#fulfillment .fw-empty>button{display:block;margin:12px auto 0}
#products .mall-simple-extras{margin-top:18px;border-top:1px solid #dce5ef;padding-top:18px}
#products .mall-simple-extras fieldset{border:0;padding:0;margin:14px 0 0;min-width:0}#products .mall-simple-extras fieldset:disabled{opacity:.65}
#products .mall-delivery-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;background:#f5f8fc;border:1px solid #dce5f1;border-radius:8px;font-size:13px;line-height:1.6}
#products .mall-delivery-summary span{display:block}.requires-address{color:#855b13}.no-address{color:#5a7088}
#products .mall-simple-delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px;font-size:14px}
#products .mall-simple-extras button{width:auto;min-height:32px;padding:6px 12px;font-size:12px;border-radius:6px}
#products .mall-simple-material{padding:12px;border:1px solid #e0e7f0;border-radius:8px;margin-bottom:10px;background:#fff}
#products .mall-simple-material-fields{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;align-items:end;gap:10px}#products .mall-simple-extras label{margin:0 0 8px;font-size:12px}#products .mall-simple-extras input,#products .mall-simple-extras select{min-height:36px;height:36px}
#products .mall-simple-material-fields button{margin-bottom:8px}#products .mall-extra-empty{margin:0;background:#f8fafc;padding:12px;border-radius:6px;color:#738198;font-size:12px}
#products .mall-material-library{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:#70829a;margin-bottom:12px}
#products .product-editor-guide{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid #e5ebf3;padding-top:16px;margin-top:12px;color:#718299;font-size:12px}#products .product-editor-guide button{min-height:32px;padding:6px 10px;font-size:12px;border-radius:6px;background:#f5f9ff;color:#2766a5;border:1px solid #d8e5f7}
