body{min-height:100vh;display:flex;flex-direction:column}body>main{flex:1}.product-card{border:2px solid transparent;transition:border-color .15s,box-shadow .15s}.product-card:hover,.product-card:focus-within{border-color:var(--accent,#f0b429);box-shadow:0 6px 22px #0b2b3b20}
.catalog-filter{overflow:visible}.catalog-search{border-radius:18px 18px 0 0}.filter-attributes{border-radius:0 0 18px 18px;grid-template-columns:76px minmax(0,1fr) max-content}.filter-attributes .parameter-expand{width:auto;min-width:104px;padding:0 12px}.parameter-multiselect[open]{z-index:45}.parameter-options.opens-up{top:auto;bottom:calc(100% + 5px)}
.sidebar .nav-standalone{flex-wrap:nowrap;white-space:nowrap}.sidebar .pending-publish{font-size:0!important;width:9px;height:9px;min-width:9px;padding:0;border-radius:50%;background:#f0b429;margin-left:auto;flex-shrink:0}
.template-current-row{background:#fff8df!important;box-shadow:inset 4px 0 #e7a619}.template-current-note{padding:10px;border:1px solid #e7a619;border-radius:7px;background:#fff8df;color:#634600}.gallery-tools{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.gallery-list{display:grid;gap:8px}.gallery-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #dbe2ea;border-radius:7px}.gallery-row label{display:flex!important;flex-direction:row!important;flex:1;align-items:center;gap:10px;min-width:0;margin:0}.gallery-row img{width:64px;height:48px;object-fit:contain}.gallery-row span{overflow-wrap:anywhere}.gallery-row input[type=checkbox]{width:18px!important;min-height:0;flex-shrink:0}.gallery-row small{display:block;color:#64748b}.gallery-row[hidden]{display:none}.asset-purpose{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}.asset-purpose small{font-weight:400;color:#64748b}.ratio-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.ratio-tools input{width:80px}.page-entry-note{padding:12px;border:1px solid #dbe2ea;border-radius:8px;margin:12px 0}.contact-product{font-weight:600;margin:10px 0;color:var(--heading_text)}
@media(max-width:700px){.filter-attributes{grid-template-columns:minmax(0,1fr) max-content}.gallery-row{flex-wrap:wrap}}
.sidebar-links>a,.sidebar-links .nav-group>summary{box-sizing:border-box;min-height:46px;margin:4px 0;padding:0 12px!important;border:0;border-radius:8px;font-size:16px;font-weight:700;line-height:1.4}
.sidebar-links .nav-group>summary{padding:0!important}.sidebar-links .nav-group-link{box-sizing:border-box;min-height:46px;padding:0 12px!important;font-size:16px;font-weight:700;line-height:1.4;border-radius:8px}
.sidebar-links .nav-group>summary{padding-left:0!important}.sidebar-links .nav-group-link.current{padding-left:12px!important}.sidebar-links>a.current{padding-left:12px!important}
.sidebar-links .nav-icon{display:block;margin-right:10px}.sidebar-links .nav-group-toggle{margin-left:auto;flex:0 0 32px}.account-menu a,.account-menu [data-password-open]{background:transparent;color:#0b526d;font:inherit}.account-menu a:hover,.account-menu [data-password-open]:hover{background:#eef3fa}
.sidebar-links{display:flex;flex-direction:column;gap:4px}.sidebar-links>h2{margin-bottom:12px}.sidebar-links>.nav-group{margin:0}.sidebar .sidebar-links>a{display:flex!important;align-items:center;border:0!important;margin:0;text-decoration:none}.sidebar-links .nav-group>summary{margin:0}.sidebar .sidebar-links>a.current{box-shadow:inset 3px 0 #f0b429}
.password-dialog{width:min(92vw,560px)}.password-dialog .form-grid{grid-template-columns:1fr}.password-success{position:fixed;top:20px;left:50%;transform:translateX(-50%);padding:12px 24px;background:#ecfdf5;color:#166534;border:1px solid #86efac;border-radius:10px;z-index:200}
.category-sticky .section-sub{margin:14px 0 4px;overflow-wrap:anywhere}.category-sticky{box-shadow:0 5px 10px -10px #0b2b3b70}.category-sticky .category-nav{max-height:20vh;overflow:auto}
@media(max-width:700px){.category-sticky{padding:8px 0}.category-sticky .category-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-height:none;gap:8px;padding:10px;border-radius:16px}.category-sticky .category-btn{flex:0 0 auto;white-space:nowrap;margin:0}.category-sticky h2{font-size:1.25rem}.category-sticky .section-sub{font-size:.85rem;line-height:1.5;max-height:20vh;overflow:auto;margin-top:8px}}
.sidebar .sidebar-links a,.sidebar .sidebar-links summary,.sidebar .sidebar-links .nav-group-link,.sidebar .sidebar-links .nav-group-toggle{color:#d6e5ed!important;text-decoration:none!important}.sidebar .sidebar-links a:hover,.sidebar .sidebar-links summary:hover{background:#224658;color:#fff!important}.sidebar .sidebar-links a.current{background:#224658;color:#fff!important;box-shadow:inset 3px 0 #f0b429;border-left:0!important}.sidebar .sidebar-links .nav-icon,.sidebar .sidebar-links .ui-chevron{color:inherit!important}
.discard-dialog{width:min(960px,95vw)}.discard-dialog form{margin-top:16px}.discard-tools{display:flex;gap:10px}.discard-dialog section{border:1px solid #dbe2ea;border-radius:10px;margin:14px 0;padding:14px}.discard-dialog label,.association-dialog label[data-confirm]{display:flex;align-items:center;gap:10px}.discard-dialog section>label{font-weight:700}.discard-item{border-top:1px solid #e2e8f0;margin-top:10px;padding-top:10px}.discard-item details{margin:6px 0 0 26px;font-size:13px}.discard-item pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;padding:10px;background:#f5f7fc}.association-dialog{width:min(650px,95vw)}.association-dialog form>label{display:grid;gap:6px;margin:14px 0}.page-associations{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.page-associations button{font-size:12px;padding:4px 8px}.page-associations small{flex-basis:100%;color:#64748b}
.notice-editor{grid-column:1/-1}.notice-row{border:1px solid #dbe2ea;border-radius:12px;padding:16px;margin:12px 0}.notice-row h3{margin:0 0 8px}.notice-row>small{display:block;color:#64748b;margin-bottom:12px}.notice-row label{margin:10px 0}.notice-row button{margin-right:8px}
.asset-crop-stage{--crop-height-limit:54vh;width:min(100%,calc(var(--crop-height-limit)*var(--crop-stage-ratio,1.5)));max-height:none;border-radius:4px}.asset-free-crop{position:absolute;border:2px solid #fff;box-shadow:0 0 0 1px #0b2b3b,0 0 0 2000px #0b2b3b66;cursor:move;touch-action:none}.asset-free-crop:before,.asset-free-crop:after{content:'';position:absolute;inset:33.333% 0;border-top:1px solid #ffffff90;border-bottom:1px solid #ffffff90;pointer-events:none}.asset-free-crop:after{inset:0 33.333%;border:0;border-left:1px solid #ffffff90;border-right:1px solid #ffffff90}.asset-free-crop .crop-handle{position:absolute;z-index:2;width:16px;height:16px;min-width:0;padding:0;border:2px solid #0b2b3b;background:#fff;border-radius:3px;transform:translate(-50%,-50%)}.crop-nw{left:0;top:0;cursor:nwse-resize}.crop-n{left:50%;top:0;cursor:ns-resize}.crop-ne{left:100%;top:0;cursor:nesw-resize}.crop-e{left:100%;top:50%;cursor:ew-resize}.crop-se{left:100%;top:100%;cursor:nwse-resize}.crop-s{left:50%;top:100%;cursor:ns-resize}.crop-sw{left:0;top:100%;cursor:nesw-resize}.crop-w{left:0;top:50%;cursor:ew-resize}
@media(max-width:900px){.asset-crop-stage{--crop-height-limit:42vh;max-height:none}}
.sidebar .sidebar-links .nav-group>a,.sidebar .sidebar-links .nav-group>a.current{padding-left:28px!important;border-left:0!important}.catalog-filter+.live-filter-chips+.live-filter-status.is-error:empty{height:0;min-height:0;margin:0}
/* Keep upload confirmation reachable; only editor content scrolls. */
.asset-editor-dialog[open]{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;height:min(860px,94dvh);padding:0}
.asset-editor-dialog>.dialog-heading{flex:none;margin:0;padding:18px 22px;border-bottom:1px solid #e1e9f0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.asset-editor-dialog>.dialog-heading h3{margin:0}
.asset-editor-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 22px;scrollbar-gutter:stable}
.asset-editor-dialog>.asset-editor-footer{flex:none;margin:0;padding:12px 22px;border-top:1px solid #d5e1eb;background:#fff;box-shadow:0 -3px 12px #102a4308;flex-wrap:wrap}
.asset-editor-dialog .asset-crop-stage{--crop-height-limit: min(42dvh,420px)}
.asset-editor-dialog .asset-result-preview{height:150px}
@media(max-width:900px){.asset-editor-dialog .asset-editor-grid{grid-template-columns:minmax(0,1fr)}.asset-editor-dialog .asset-crop-stage{--crop-height-limit:36dvh}.asset-editor-dialog .asset-editor-side{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:500px){.asset-editor-dialog[open]{width:98vw;height:96dvh;max-height:96dvh}.asset-editor-dialog>.dialog-heading,.asset-editor-dialog>.asset-editor-footer{padding:12px}.asset-editor-body{padding:12px}.asset-editor-dialog .asset-editor-side{grid-template-columns:1fr}.asset-editor-dialog .asset-purpose{align-items:stretch;flex-direction:column}.asset-editor-dialog>.asset-editor-footer button{flex:1}.asset-editor-dialog .asset-result-preview{height:120px}}
@media(max-height:540px){.asset-editor-dialog .asset-crop-stage{--crop-height-limit:48dvh}.asset-editor-dialog>.dialog-heading,.asset-editor-dialog>.asset-editor-footer{padding:8px 14px}.asset-editor-body{padding:10px 14px}}
/* One aligned composite label: checkbox, preview and three lines of information. */
.gallery-list{container-type:inline-size}.gallery-row{flex-wrap:nowrap;gap:8px;padding:10px;min-width:0;min-height:106px;background:#fff;box-sizing:border-box}
.gallery-row.is-selected{background:#f3f8fc;border-color:#c5d9e8}.gallery-row>label{gap:10px;align-self:center;align-items:center!important;min-width:0}
.gallery-row>label>input[type=checkbox]{width:22px!important;height:22px;min-height:22px;margin:0;flex:0 0 22px;cursor:pointer}
.gallery-row>label>img{width:96px;height:72px;flex:0 0 96px;display:block;object-fit:contain;border:1px solid #e5e9ee;border-radius:4px;background:#fff;box-sizing:border-box}
.gallery-row .gallery-image-copy{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;flex:1;line-height:1.45;text-align:left}
.gallery-image-copy .gallery-image-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:500}
.gallery-image-copy small{font-size:11px;margin:0;line-height:1.5;overflow-wrap:anywhere}.gallery-image-ratio{color:#536d7f!important}
.gallery-row-actions{flex:0 0 72px;display:grid;grid-template-rows:26px 30px 26px;align-items:center;justify-items:stretch;gap:3px}
.gallery-row-actions button{margin:0;padding:2px 4px;min-height:26px;line-height:1.2;font-size:12px;white-space:nowrap}.gallery-row-actions .gallery-crop{grid-row:2}.gallery-row-actions [data-gallery-up]{grid-row:1}.gallery-row-actions [data-gallery-down]{grid-row:3}
.gallery-row-actions .gallery-move{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s}.gallery-row:hover .gallery-move,.gallery-row:focus-within .gallery-move{visibility:visible;opacity:1;pointer-events:auto}.gallery-row-actions .gallery-move:disabled{opacity:.25;cursor:default}
.gallery-ratio-note{font-size:12px;color:#64748b;line-height:1.6;margin:0 0 10px}
@media(hover:none){.gallery-row-actions .gallery-move{visibility:visible;opacity:1;pointer-events:auto}.gallery-row-actions .gallery-move:disabled{opacity:.25}.gallery-row-actions{grid-template-rows:34px 34px 34px}}
@container(max-width:360px){.gallery-row{padding:8px;gap:6px}.gallery-row>label{gap:7px}.gallery-row>label>img{width:72px;height:60px;flex-basis:72px}.gallery-row-actions{flex-basis:66px}.gallery-image-copy .gallery-image-name{font-size:12px}.gallery-image-copy small{font-size:10px}}
@container(max-width:320px){.gallery-row>label>img{width:58px;height:58px;flex-basis:58px}.gallery-row>label>input[type=checkbox]{flex-basis:20px;width:20px!important;height:20px;min-height:20px}.gallery-row>label{gap:5px}}
@media(prefers-reduced-motion:reduce){.gallery-row-actions .gallery-move{transition:none}}

.gallery-image-copy .gallery-image-ratio{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-image-copy .gallery-image-ratio.is-low-fit{color:#9b6c2e!important}
/* Override the older product editor's wrapping rule without changing other media lists. */
#contentForm[data-module="products"] .gallery-list .gallery-row{flex-wrap:nowrap}
#contentForm[data-module="products"] .gallery-list .gallery-row>label{flex:1 1 0;min-width:0}
/* Image rows keep a permanent handle slot; only the hovered row shows its handle. */
.gallery-drag-handle{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:34px;min-width:0;padding:0;margin:0;border:0;background:transparent;color:#8c9aa8;font-size:23px;line-height:1;opacity:0;pointer-events:none;cursor:grab;touch-action:none;transition:opacity .12s}
.gallery-row:hover>.gallery-drag-handle,.gallery-drag-handle:focus-visible,.gallery-sort-ghost .gallery-drag-handle{opacity:1;pointer-events:auto}.gallery-drag-handle:hover{background:#eaf1f6;color:#346584;border-radius:4px}
.gallery-row-actions{display:flex;align-items:center;justify-content:center;flex:0 0 72px}.gallery-row-actions .gallery-crop{width:100%;min-height:30px}
.gallery-sort-gap{display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px dashed #bdcfdd;border-radius:7px;background:#f3f8fc;color:#7892a5;font-size:12px;flex-shrink:0}
.gallery-sort-ghost{position:fixed;z-index:2600;pointer-events:none;opacity:.94;background:#fff;border-radius:7px;box-shadow:0 10px 30px #17364f30;overflow:hidden}.gallery-sort-ghost.is-invalid{opacity:.5}.gallery-sort-ghost .gallery-row{margin:0;display:flex;align-items:center;flex-wrap:nowrap}.gallery-sort-copy>label{flex:1 1 0!important;min-width:0}.gallery-sort-copy .gallery-image-copy{font-weight:400}.is-sorting-gallery,.is-sorting-gallery *{cursor:grabbing!important;user-select:none!important}
.gallery-sort-arrived{animation:gallery-sort-insert .7s ease-out}@keyframes gallery-sort-insert{from{box-shadow:inset 0 0 0 2px #b3d4ea}to{box-shadow:inset 0 0 0 2px transparent}}
@media(hover:none){.gallery-drag-handle{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.gallery-drag-handle{transition:none}.gallery-sort-arrived{animation:none;outline:1px solid #b3d4ea}}

.gallery-list-heading{position:relative;height:38px;flex-shrink:0;margin-bottom:8px;border:1px solid #dbe2ea;border-radius:7px;background:#f5f8fb;color:#52657b;font-size:12px;font-weight:600;box-sizing:border-box}
.gallery-list-heading>span{position:absolute;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
#contentForm .gallery-row-actions .gallery-crop{background:#fff;color:#49657c;border:1px solid #cbd8e3;border-radius:5px;box-shadow:none;font-weight:400;padding:5px 6px;font-size:12px;line-height:1.3;transition:background .12s,border-color .12s}
#contentForm .gallery-row-actions .gallery-crop:hover{background:#edf5fb;border-color:#8eafc9;color:#244f70}
#contentForm .gallery-row-actions .gallery-crop:focus-visible{outline:2px solid #5488b0;outline-offset:2px}
#contentForm .gallery-row-actions .gallery-crop:disabled{opacity:.5;cursor:wait}

.gallery-list-heading{font-size:14px}
.gallery-row:not(.is-selected)>.gallery-drag-handle{visibility:hidden;opacity:0;pointer-events:none}
.gallery-list-footer{display:flex;justify-content:flex-end;margin-top:8px;padding:0 6px}
#contentForm .gallery-reset-height{background:transparent;color:#60758a;border:1px solid #d4dfe8;border-radius:5px;padding:5px 10px;font-size:12px;min-height:30px;box-shadow:none}
#contentForm .gallery-reset-height:hover{background:#edf5fb;color:#244f70;border-color:#8eafc9}
