:root{font-family:system-ui,-apple-system,sans-serif;color:#202b39;background:#f3f5f7}*{box-sizing:border-box}body{margin:0}header{background:#fff;padding:22px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;border-bottom:1px solid #dce0e6}header strong{font-size:26px;color:#002f6c}header span{display:block;color:#666d75;font-size:13px;margin-top:5px}main{max-width:1180px;margin:28px auto;padding:0 24px}h1{font-size:28px}h2{font-size:22px}p{line-height:1.6}.panel,article{background:white;border:1px solid #dce0e6;border-radius:16px;padding:24px;margin-bottom:20px}.narrow{max-width:440px;margin:50px auto}button{cursor:pointer;background:#002f6c;border:0;color:white;border-radius:9px;padding:11px 18px;font-size:14px}button:hover{background:#00587c}button:disabled{opacity:.5;cursor:wait}.secondary,nav button{background:#e4e8ee;color:#202b39}.heading,nav{display:flex;align-items:center;gap:12px;justify-content:space-between}.heading{margin:12px 0}nav{justify-content:flex-start;margin-bottom:24px}label{display:block;margin:14px 0;font-size:14px}input,textarea,select{display:block;width:100%;margin-top:7px;border:1px solid #bec4cc;border-radius:8px;padding:11px;font:inherit}input[type=file]{background:#f3f5f8}input[type=checkbox]{width:auto;margin:0}.check{display:flex;gap:10px;align-items:center}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;color:#666d75}td,th{padding:14px 10px;border-bottom:1px solid #e2e6eb}td small{display:block;color:#666d75;margin-top:5px}dialog{width:min(600px,95vw);border:1px solid #dce0e6;border-radius:16px;padding:24px;max-height:90vh}dialog::backdrop{background:#17233388}summary{cursor:pointer;font-weight:600}footer{padding:30px;text-align:center;color:#666d75;font-size:13px}#message,#editor-error{color:#a33030}.order-header{display:flex;justify-content:space-between;gap:18px}article select{width:auto;min-width:180px}.badge{background:#e4e8ee;padding:5px 10px;border-radius:20px;font-size:13px}[hidden]{display:none!important}@media(max-width:650px){main{padding:0 14px}header{padding:18px}.panel,article{padding:16px}.grid{gap:12px}.order-header{display:block}}

#message{color:#002f6c}#message.error,#editor-error{color:#a33030}
.admin-auth.panel { max-width:460px; margin:44px auto; padding:30px; border-color:#dce5ef; border-radius:22px; box-shadow:0 10px 40px #17365d08; }
.admin-auth-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.admin-auth-symbol { display:grid; place-items:center; width:44px; height:44px; border-radius:13px; color:#002f6c; background:#fff2cf; }
.admin-auth-symbol svg { width:25px; height:25px; }
.admin-auth-step { color:#8190a3; font-size:12px; }
.admin-auth h1 { margin:0; font-size:27px; line-height:1.25; letter-spacing:-.6px; color:#002f6c; }
.admin-auth-description { margin:12px 0 24px; color:#718096; font-size:13px; line-height:1.65; }
.admin-auth .admin-auth-field { margin:0 0 20px; color:#33455d; font-size:13px; font-weight:500; }
.admin-auth input[type=tel],.admin-auth input[inputmode=numeric] { height:52px; margin-top:9px; border-color:#d2deed; border-radius:11px; background:#fbfcfe; color:#002f6c; font-size:16px; }
.admin-auth input:focus { outline:0; border-color:#6b92bf; box-shadow:0 0 0 3px #eaf1fa; }
.admin-auth input[aria-invalid=true] { border-color:#bf625a; background:#fff8f7; }
.admin-auth-methods { display:grid; gap:8px; margin:0 0 22px; padding:0; border:0; min-width:0; }
.admin-auth-methods legend { margin-bottom:10px; color:#52657d; font-size:12px; }
.admin-auth .admin-auth-method { display:flex; align-items:center; gap:11px; margin:0; padding:12px 13px; border:1px solid #dce5f0; border-radius:11px; cursor:pointer; }
.admin-auth-method:has(input:checked) { background:#f0f5fc; border-color:#7a9cc4; }
.admin-auth-method:has(input:focus-visible) { outline:3px solid #c8d9ed; outline-offset:2px; }
.admin-auth-method input { flex:0 0 16px; width:16px; height:16px; margin:0; accent-color:#002f6c; }
.admin-auth-method strong { display:block; color:#002f6c; font-size:12px; font-weight:600; }
.admin-auth-method small { display:block; margin-top:4px; color:#7b899d; font-size:11px; line-height:1.5; }
.admin-auth button.admin-auth-primary { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:50px; border-radius:11px; font-weight:600; }
.admin-auth-primary > span:last-child { margin-left:auto; font-size:19px; }
.admin-auth-primary > span:nth-last-child(2) { margin-left:auto; }
.admin-auth button:disabled { opacity:1; color:#8b9aae; background:#eaf0f6; cursor:default; }
.admin-auth-loader { display:none; width:16px; height:16px; border:2px solid #ffffff66; border-top-color:white; border-radius:50%; animation:admin-auth-spin .7s linear infinite; }
.admin-auth[aria-busy=true] .admin-auth-primary .admin-auth-loader { display:block; }
.admin-auth[aria-busy=true] .admin-auth-primary { color:white; background:#002f6c; }
.admin-auth-phone { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; padding:11px 13px; background:#f0f5fb; border-radius:11px; }
.admin-auth-phone small { display:block; margin-bottom:4px; color:#7d8da2; font-size:10px; }
.admin-auth-phone strong { display:block; color:#002f6c; font-size:14px; }
.admin-auth-phone button { padding:6px 0; color:#637f9f; background:transparent; font-size:12px; }
.admin-auth-notice { margin:0 0 18px; color:#647b97; font-size:13px; line-height:1.65; }
.admin-auth .admin-auth-code input { height:62px; text-align:center; font-size:28px; letter-spacing:9px; padding-left:20px; font-variant-numeric:tabular-nums; }
.admin-auth-expiry { margin:12px 0 20px; text-align:center; color:#8190a4; font-size:12px; }
.admin-auth-expiry.is-expired { color:#ac554e; }
.admin-auth-dial { display:flex; flex-direction:column; align-items:center; gap:11px; margin:0 0 18px; padding:20px 12px; border:1px solid #cbdcf1; border-radius:13px; background:#eff5fd; text-decoration:none; color:#002f6c; }
.admin-auth-dial small,.admin-auth-dial span { font-size:12px; color:#7288a4; }
.admin-auth-dial strong { font-size:25px; line-height:1.4; white-space:nowrap; }
.admin-auth-dial:not([href]) { opacity:.55; }
.admin-auth #login-call-status { min-height:20px; color:#627c9d; font-size:13px; text-align:center; }
.admin-auth #login-call-check { width:100%; min-height:44px; border-radius:10px; font-size:13px; }
.admin-auth-retry { display:grid; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid #edf1f6; }
.admin-auth-retry button { width:100%; min-height:42px; font-size:12px; }
.admin-auth-link { color:#58799f; background:transparent; }
.admin-auth-link:hover { background:#f2f6fc; color:#002f6c; }
.admin-auth-error { margin:16px 0 0; padding:12px 14px; border-radius:10px; background:#fff0ed; color:#a54940; font-size:13px; line-height:1.6; }
.admin-auth-footer { margin:20px 0 0; color:#8a97a9; font-size:11px; line-height:1.65; text-align:center; }
@keyframes admin-auth-spin { to { transform:rotate(360deg); } }
@media(max-width:650px) { .admin-auth.panel { margin:20px auto 28px; padding:24px 20px; border-radius:18px; }.admin-auth h1 { font-size:25px; }.admin-auth-dial strong { font-size:23px; } }
@media(max-width:360px) { .admin-auth.panel { padding:20px 16px; }.admin-auth h1 { font-size:23px; }.admin-auth-dial strong { font-size:21px; } }
@media(prefers-reduced-motion:reduce) { .admin-auth-loader { animation:none; } }
.product-site-link{color:#002f6c;text-decoration:none}.product-site-link:hover,.product-site-link:focus-visible{text-decoration:underline}
.brand-directory-logo{display:block;width:120px;height:48px;object-fit:contain;object-position:left center}#brand-logo-preview{display:block;max-width:100%;width:240px;height:100px;object-fit:contain;object-position:left center;margin:16px 0}#brand-error{color:#a33030}#brand-editor{width:min(480px,calc(100vw - 28px))}#brands-panel .heading{flex-wrap:wrap}
#message.save-toast{position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:10000;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:14px 22px;border:1px solid #b8dcc4;border-radius:12px;background:#effaf2;color:#205c36;box-shadow:0 6px 24px #17233326;pointer-events:none;animation:save-toast-fade 4s both}
@keyframes save-toast-fade{0%{opacity:0}8%,85%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#message.save-toast{animation:none}}

.product-main-row td{border-bottom:0;padding-bottom:8px}.product-warehouse-row td{padding-top:0;padding-bottom:20px}.product-warehouse-row .warehouse-stock-grid{background:#f3f5f8;border-radius:10px;padding:12px}

.inline-price{min-width:110px;max-width:145px;margin:0}.inline-stock{min-width:85px;max-width:110px;margin:0}.inline-save{margin:6px 0 0 6px}.inline-error{max-width:240px}td .inline-error{color:#002f6c}

.warehouse-stock-grid{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:12px;min-width:456px}.warehouse-stock-grid label{margin:0;overflow-wrap:anywhere}.warehouse-stock-grid .inline-stock{width:100%;max-width:none;margin-top:7px}#product-warehouse-stocks{grid-template-columns:repeat(4,minmax(105px,1fr));gap:12px;overflow-x:auto}#product-warehouse-stocks label{margin:0;overflow-wrap:anywhere}#product-warehouse-stocks:empty{display:none}

#products-filter-fields fieldset{border:1px solid #dce0e6;border-radius:10px;margin:16px 0;padding:8px 16px}#products-filter-fields legend{font-weight:600;padding:0 8px}#products-filter-total{font-weight:600;color:#002f6c}#products-filter-dialog .heading{flex-wrap:wrap}#products-filter-summary{margin-bottom:0;color:#666d75}

#user-error{color:#a33030}.spinner{width:28px;height:28px;border:3px solid #dce0e6;border-top-color:#002f6c;border-radius:50%;animation:spin .8s linear infinite;margin:12px auto}@keyframes spin{to{transform:rotate(360deg)}}
.broadcast-preview{background:#eef1f5;border:1px solid #dce0e6;border-radius:12px;padding:16px}.broadcast-preview p,#broadcast-history p{white-space:pre-wrap;overflow-wrap:anywhere}#broadcast-dialog{max-width:520px}#broadcast-error{color:#a33030}
.collection-item{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #dce0e6}.collection-item span{flex:1}.collection-item button{margin:0}
.collection-tools{display:flex;gap:8px;flex-wrap:wrap}.collection-picker-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #dce0e6}.collection-picker-item small{display:block;color:#666d75;margin-top:4px}#collection-picker{width:min(760px,95vw)}#collection-import-result p{margin:6px 0}
.order-groups{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.order-groups button{margin:0;background:#fff;color:#002f6c;border:1px solid #dce0e6}.order-groups button[aria-pressed="true"]{background:#002f6c;color:#fff;border-color:#002f6c}.order-groups button:focus-visible{outline:3px solid #9aacc4;outline-offset:2px}
.tariff-editor{width:min(1100px,95vw);max-width:1100px}.tariff-editor td input{width:105px;min-width:90px}.tariff-editor th{white-space:normal;min-width:120px}.tariff-editor [role="alert"]{color:#a33030}
.tariff-editor th input[type="text"]{width:220px;max-width:none}.tariff-editor th button{font-size:12px;padding:6px 10px}
.product-edit-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:10px;vertical-align:middle}
.product-editor-page{width:100%;margin:0 0 24px}
.product-editor-page #product-form{max-width:none;margin:0}
.product-editor-heading{align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.product-editor-heading h2{margin:0;font-size:24px}
.product-editor-page .product-editor-workspace{padding:0}
#product-editor-tabs{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:0 8px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line);border-radius:16px 16px 0 0}
#product-editor-tabs button{position:relative;padding:12px 10px;margin:0;border:0;border-radius:0;background:transparent;color:#52647d;font-size:14px}
#product-editor-tabs button:hover{color:var(--green);background:#f5f7fa}
#product-editor-tabs button[aria-selected=true]{color:var(--green)}
#product-editor-tabs button[aria-selected=true]::after{content:'';position:absolute;inset:auto 8px 0;height:2px;background:currentColor}
.product-editor-pane{padding:24px}
.product-editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.66fr);gap:24px;align-items:start}
@media(min-width:1051px){
  #product-editor-pane-main{grid-template-columns:clamp(210px,26%,280px) minmax(0,1fr);grid-template-areas:"photos fields"}
  #product-editor-pane-main .product-editor-fields{grid-area:fields}
  #product-editor-pane-main .product-editor-photos{grid-area:photos}
}
.product-editor-fields{display:grid;gap:20px;min-width:0}
.product-editor-card{display:grid;gap:12px;min-width:0}
.product-editor-fields .product-editor-card+.product-editor-card{padding-top:18px;border-top:1px solid var(--line)}
.product-editor-photos{width:100%;max-width:280px;gap:10px}
.product-editor-pane #product-pack-editor{margin:0;padding:0;border:0}
.product-editor-card h3,.product-editor-card p{margin:0}
.product-editor-card h3{font-size:17px}
#product-oracle-details{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));
  gap:16px;
}
#product-oracle-details section{
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
}
#product-oracle-details dl{margin:8px 0 0}
#product-oracle-details dl>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,auto);
  align-items:baseline;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
#product-oracle-details dl>div:last-child{padding-bottom:0;border-bottom:0}
#product-oracle-details dt{color:#52647d;font-size:14px}
#product-oracle-details dd{
  margin:0;
  text-align:right;
  font-variant-numeric:tabular-nums;
  font-weight:600;
  overflow-wrap:anywhere;
}
.product-editor-card label{margin:0;min-width:0}
.product-editor-card label:not(.check){display:grid;gap:5px}
.product-editor-card :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-width:0;margin:0}
.product-editor-card textarea{resize:vertical;min-height:92px}
.product-editor-card #description{min-height:136px}
.product-editor-card #attribute-rows:empty,.product-editor-card #product-images:empty,.product-editor-card #product-editor-documents:empty{display:none}
.product-editor-card #product-editor-documents:not(:has(label:not([hidden]))){display:none}
.product-editor-grid,.product-editor-dimensions .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-editor-dimensions{min-width:0;margin:0;padding:0;border:0}
.product-editor-dimensions legend{margin:0 0 12px;padding:0;font-size:17px;font-weight:650;color:var(--ink)}
#attribute-rows{display:grid;gap:8px}
#attribute-rows .grid{grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:8px}
.product-editor-photos #product-images{display:grid;gap:5px}
.product-editor-photo-upload{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:stretch;gap:5px}
.product-editor-photo-upload button{min-height:40px;padding:0;font-size:18px}
#product-photo-preview{display:grid;gap:7px}
.product-editor-preview-picture{position:relative;aspect-ratio:3/4;overflow:hidden;background:#f5f7fa;border:1px solid var(--line);border-radius:8px}
.product-editor-preview-picture img,.product-editor-photo-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.product-editor-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#product-photo-thumbnails{display:contents}
.product-editor-photo-tile{position:relative;min-width:0}
.product-editor-photo-tile .product-editor-photo-thumb{width:100%}
.product-editor-photo-remove{position:absolute;z-index:1;top:4px;right:4px;display:grid;place-items:center;width:28px;min-height:28px;height:28px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:18px;line-height:1;text-shadow:0 0 3px #fff}
.product-editor-photo-remove:hover{background:transparent;color:#8e3028}
.product-editor-photo-thumb,.product-editor-media-grid .product-editor-photo-picker{position:relative;display:grid;place-items:center;aspect-ratio:4/5;min-height:0;margin:0;padding:4px;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#f5f7fa;color:var(--green)}
.product-editor-photo-thumb:hover,.product-editor-media-grid .product-editor-photo-picker:hover{background:#e7f2ff}
.product-editor-preview-picture[draggable=true],.product-editor-photo-thumb[draggable=true]{cursor:grab}
#product-images .is-dragging{opacity:.55}
#product-images .is-drop-target{outline:2px solid var(--green);outline-offset:-2px}
.product-editor-media-grid .product-editor-photo-picker{align-content:center;gap:3px;text-align:center;cursor:pointer;border-style:dashed}
.product-editor-photo-picker:focus-within{outline:2px solid var(--green)}
.product-editor-photo-picker span{font-size:22px;line-height:1}
.product-editor-photo-picker strong{font-size:11px}
.product-editor-photo-picker input{position:absolute;inset:0;height:100%;opacity:0;cursor:pointer}
.product-editor-make-cover{justify-self:start;min-height:34px;padding:5px 8px;margin:0;font-size:12px}
.product-editor-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 -3px 16px #14263d12}
.product-editor-footer #editor-error{margin:0 auto 0 0;color:#a43b30;overflow-wrap:anywhere}
.product-editor-footer #editor-error:empty{display:none}
.product-editor-footer #product-editor-save-state{margin:0 auto 0 0;font-size:13px;color:#32734c}
.product-editor-footer #product-editor-save-state.is-dirty{color:#835500}
.product-editor-footer:has(#editor-error:not(:empty)) #product-editor-save-state{display:none}
.product-editor-footer #save-product{min-height:44px;margin:0;flex-shrink:0}
@media(max-width:1050px){.product-editor-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){
  .product-editor-page .product-editor-workspace{scroll-margin-top:58px}
  #product-editor-tabs{top:58px}
}
@media(max-width:520px){
  .product-editor-pane{padding:14px}
  #product-editor-tabs{gap:0 3px;padding:0 8px}
  #product-editor-tabs button{padding:10px 7px;font-size:13px;min-height:44px}
  .product-editor-heading h2{font-size:21px}
  #attribute-rows .grid{grid-template-columns:minmax(0,1fr) auto}
  #attribute-rows .grid input:first-child{grid-column:1/-1}
  .product-editor-footer{flex-wrap:wrap}
  .product-editor-footer #editor-error{width:100%}
}
#inventory-list{overflow-x:auto;margin-top:20px;border:1px solid #bec4cc;border-radius:12px}.inventory-table th{white-space:nowrap}.inventory-table td:first-child{min-width:220px;max-width:340px;overflow-wrap:anywhere}.inventory-table input{width:110px;min-width:90px;margin:0}.inventory-table td{vertical-align:middle}.inventory-table td:nth-last-child(2){font-weight:600;white-space:nowrap}.inventory-table form{min-width:130px}.inventory-table [role=status]{display:block;max-width:260px;white-space:normal;margin-top:6px}#warehouses-panel .panel{max-width:850px}#warehouses-panel #warehouses-list p{display:flex;flex-wrap:wrap;gap:12px;align-items:center}#warehouse-error{overflow-wrap:anywhere}
.product-save-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:10px;vertical-align:middle}
.product-action-buttons{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.product-action-buttons .inline-save{margin:0}.product-action-buttons button{flex-shrink:0}
.inventory-filter-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inventory-filter-toolbar select{width:auto;min-width:180px;max-width:100%;flex:1;margin:0}.inventory-filter-toolbar button{min-height:44px}
.product-import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-import-actions button{flex:0 0 auto;min-height:44px}.product-import-actions input[type=file]{flex:1 1 240px;width:auto;min-width:0;margin:0}
.product-import-upload{display:flex;flex-direction:column;gap:16px}.xlsx-picker{position:relative;display:flex;align-items:center;gap:16px;margin:0;padding:22px;border:2px dashed var(--line,#bec4cc);border-radius:14px;background:var(--canvas,#f4f5f7);cursor:pointer}.xlsx-picker:hover{border-color:var(--green,#002f6c)}.xlsx-picker:focus-within{outline:2px solid var(--green,#002f6c);outline-offset:3px}.xlsx-picker>svg{flex-shrink:0;color:var(--green,#002f6c)}.xlsx-picker-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.xlsx-picker-copy strong{overflow-wrap:anywhere;color:var(--ink,#192535)}#xlsx-file-hint{font-size:12px;color:var(--muted,#7a8089)}.xlsx-picker-action{flex-shrink:0;border:1px solid var(--line,#bec4cc);border-radius:9px;padding:10px 14px;font-size:13px}.xlsx-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}@media(max-width:600px){.xlsx-picker{padding:16px;gap:12px;flex-wrap:wrap}.xlsx-picker-action{margin-left:44px}}
.inventory-filter-toolbar .category-tree-trigger{flex:1;min-width:180px;max-width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#category-tree-dialog{width:min(720px,95vw)}#category-tree-search{margin-bottom:14px}#category-tree-body{margin-top:16px;max-height:55vh;overflow:auto}#category-tree-body ul{list-style:none;padding-left:22px;margin:4px 0}#category-tree-body>ul{padding-left:0}#category-tree-body h3{font-size:14px;color:var(--muted,#7a8089);margin:16px 0 8px}.category-tree-row{display:flex;align-items:center;gap:6px;margin:4px 0}.category-tree-toggle,.category-tree-spacer{width:34px;min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0}.category-tree-choice{flex:1;text-align:left;min-height:40px;white-space:normal;overflow-wrap:anywhere}.category-tree-choice[aria-pressed=true]{background:var(--green,#002f6c);color:white}.category-tree-trigger:focus-visible,.category-tree-choice:focus-visible,.category-tree-toggle:focus-visible{outline:2px solid var(--green,#002f6c);outline-offset:2px}
.product-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-header-actions button{min-height:44px}#products-panel>.heading{align-items:center;gap:16px}#products-panel>.heading h1{margin:0}#products-panel .table-wrap>.inventory-filter-toolbar{margin-bottom:12px}
#products-panel .inventory-filter-toolbar #product-filter{flex:2;min-width:200px;width:auto;margin:0;min-height:44px}#products-panel #products-filter-summary{margin:8px 0 10px;font-size:13px;color:var(--muted,#7a8089)}
#inventory-panel .inventory-filter-toolbar #inventory-search{flex:2;min-width:200px;width:auto;margin:0;min-height:44px}#inventory-panel #inventory-filter-summary{margin:8px 0 10px;font-size:13px;color:var(--muted,#7a8089)}#inventory-panel #inventory-list{margin-top:0}
.catalog-management>.catalog-page-heading{min-height:44px;margin:0 0 20px;gap:16px}.catalog-management>.catalog-page-heading h1{margin:0}.catalog-management>.catalog-table-panel{padding:20px}.catalog-management .catalog-table-scroll{overflow-x:auto}.catalog-management .catalog-table-panel>.inventory-filter-toolbar{margin-bottom:12px}.catalog-management .catalog-table-panel>p[role=status]{margin:8px 0 12px;font-size:13px;color:var(--muted,#7a8089)}#inventory-panel #inventory-list{border:0;border-radius:0;margin:0}.catalog-management table td{vertical-align:middle}.catalog-management table .product-main-row td{padding:15px 12px;border-bottom:1px solid #edeff1}.catalog-management table td:first-child{min-width:220px;max-width:340px;overflow-wrap:anywhere}.catalog-management .inline-price,.catalog-management .inventory-table input{width:110px;min-width:90px;max-width:110px;min-height:42px;margin:0}.catalog-management .catalog-table-panel>.heading{margin:16px 0 0;min-height:44px;gap:12px}.catalog-management .catalog-table-panel>.heading>span{font-size:13px;color:var(--muted,#7a8089)}.catalog-management .inventory-table form{min-width:42px}.catalog-management .inventory-table [role=status]:empty{display:none}@media(max-width:650px){.catalog-management>.catalog-table-panel{padding:16px}.catalog-management>.catalog-page-heading{margin-bottom:16px}}
.inline-discount-label{font-size:11px;margin:8px 0 0;color:var(--muted,#7a8089)}.inline-discount{width:110px;min-height:36px;margin:4px 0 0}.inline-discount-label+small{font-size:11px;max-width:145px;color:var(--green,#002f6c)}
.inline-earn-rate{width:110px;min-height:36px;margin:4px 0 0}.inline-earn-rate:disabled{opacity:.5}
.warehouse-address-options{display:grid;gap:8px;margin-top:12px}.warehouse-address-options button{text-align:left;white-space:normal}.warehouse-address-options button:disabled{cursor:default}#warehouse-address-status{font-size:13px;color:var(--muted,#68788b)}#warehouses-list small{display:block;font-size:12px;margin:5px 0}.pickup-map-settings{margin-top:20px}.pickup-map-settings>summary{cursor:pointer;font-weight:600}.pickup-map-settings p{font-size:13px;line-height:1.6}
#prices-list{overflow-x:auto}.prices-table th{white-space:nowrap}.prices-table input{width:110px;min-width:90px;min-height:42px;margin:0}.prices-table small{display:block;margin-top:6px}.prices-table td{vertical-align:middle}#prices-search{flex:2;min-width:200px;width:auto;margin:0;min-height:44px}.prices-table .inline-error:empty{display:none}
.delivery-schedule-editor input[type="checkbox"],.delivery-schedule-editor td input[type="checkbox"]{width:20px;min-width:20px;max-width:20px;height:20px;vertical-align:middle;margin-right:8px}.delivery-schedule-editor .heading{flex-wrap:wrap;gap:12px}.delivery-schedule-editor .heading input[type="time"],.delivery-schedule-editor input[type="date"]{width:auto;max-width:180px}.delivery-schedule-editor td{vertical-align:middle}.delivery-schedule-editor input[type="time"]{min-height:40px}
.legal-settings-form{max-width:960px}.legal-settings-form textarea{width:100%;min-height:100px;resize:vertical}.legal-settings-form label{display:block;margin:12px 0}.legal-settings-form p{font-size:13px;line-height:1.5}.legal-settings-form .check{display:flex;align-items:flex-start;gap:9px}.legal-settings-form .check input{width:auto}#legal-document-preview{max-width:960px}#legal-document-preview details{padding:14px 0}#legal-document-preview summary{cursor:pointer;font-weight:600}#legal-document-preview p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.sc-transfer-list{display:grid;gap:14px}.sc-transfer-row{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px;border:1px solid #dce3ed;border-radius:12px}.sc-transfer-row label{min-width:0}.sc-transfer-row select,.sc-transfer-row input{max-width:100%}.sc-transfer-week{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px}.sc-transfer-week label{display:flex;align-items:center;gap:4px}.sc-transfer-week input{width:auto}.sc-transfer-row>p{grid-column:1/-1}.sc-transfer-settings form>button{margin:12px 8px 0 0}@media(max-width:600px){.sc-transfer-row{grid-template-columns:minmax(0,1fr)}}
.sc-warehouse-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.sc-warehouse-tabs button[aria-selected=true]{background:#002f6c;color:white}.sc-warehouse-tabs button[aria-selected=false]{background:#edf3fa;color:#002f6c}.sc-warehouse-card{padding:16px 0;border-top:1px solid #e4eaf2}.sc-warehouse-card h3{margin:0 0 8px}.sc-warehouse-card p{overflow-wrap:anywhere}.sc-warehouse-card .heading{flex-wrap:wrap;gap:8px}#warehouse-editor-dialog{width:min(650px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:22px}#warehouse-editor-dialog form{margin-top:16px}#warehouse-editor-dialog label{min-width:0}#warehouse-editor-dialog input,#warehouse-editor-dialog select,#warehouse-editor-dialog textarea{max-width:100%;box-sizing:border-box}#warehouse-reset{display:none}
.sc-warehouse-card{padding:16px;margin-top:12px}.sc-warehouse-card .heading{justify-content:flex-start}
#delivery-zones-dialog{width:min(1400px,calc(100vw - 24px));max-width:none;height:94vh;max-height:94vh;padding:14px;overflow:hidden}#delivery-zones-dialog>.heading{margin:0 0 10px;gap:12px}#delivery-zones-dialog h2{margin:0;font-size:18px}#delivery-zones-dialog iframe{border:0;border-radius:10px;width:100%;height:calc(100% - 52px);display:block}@media(max-width:600px){#delivery-zones-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:8px}#delivery-zones-dialog h2{font-size:15px}}
.sc-centre-card{margin-top:12px;padding:18px;background:#f7faff;border-color:#dce6f3;box-shadow:none}.sc-warehouse-heading,.sc-point-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sc-warehouse-identity{display:flex;align-items:center;gap:10px;min-width:0}.sc-warehouse-identity h3{font-size:17px;margin:0;overflow-wrap:anywhere}.sc-warehouse-kind{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:5px 7px;background:#e5edf8;border-radius:7px;font-size:11px;color:#164a86;font-weight:700}.sc-centre-card>p{margin:7px 0 10px;font-size:12px;color:#75849a}.sc-warehouse-heading>button,.sc-point-heading>button{flex-shrink:0;padding:7px 11px;font-size:12px;min-height:34px}.sc-warehouse-location{min-width:0}.sc-warehouse-location>p{margin:4px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}#warehouses-list .sc-warehouse-location>small{font-size:11px;color:#7b899b;margin:3px 0}.sc-centre-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:14px;font-size:12px;color:#6b7c93}.sc-delivery-state{padding:5px 8px;border-radius:7px;background:#edf0f5;color:#6b7c93}.sc-delivery-state.is-ready{background:#e5f3eb;color:#24734e}.sc-centre-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #dfe7f2}.sc-centre-actions button{padding:8px 11px;font-size:12px}.sc-points-heading{display:flex;align-items:center;gap:9px;margin:22px 0 10px}.sc-points-heading h2{margin:0;font-size:16px}.sc-points-heading>span{font-size:11px;padding:3px 7px;border-radius:10px;background:#e8eef6;color:#627690}.sc-points-list{border:1px solid #e3e9f2;border-radius:12px;overflow:hidden}#warehouses-list .sc-point-row{margin:0;padding:13px 16px;border:0;border-radius:0;box-shadow:none;background:#fff}#warehouses-list .sc-point-row+.sc-point-row{border-top:1px solid #e8edf4}.sc-point-row .sc-warehouse-identity h3{font-size:14px}.sc-point-row .sc-warehouse-location{margin-left:48px}.sc-point-details{display:flex;flex-wrap:wrap;gap:5px 18px;margin:7px 0 0 48px;color:#7b899b;font-size:11px}.sc-points-empty{padding:20px;border:1px dashed #d8e2ef;border-radius:12px;color:#728199;font-size:13px}.sc-points-empty p{margin:7px 0 0;line-height:1.5}@media(max-width:600px){.sc-centre-card{padding:14px}.sc-warehouse-heading,.sc-point-heading{align-items:flex-start;gap:8px}.sc-warehouse-identity{gap:7px}.sc-warehouse-identity h3{font-size:16px}.sc-centre-summary{gap:7px 12px}.sc-centre-actions button{flex:1 1 135px}.sc-warehouse-tabs button{max-width:100%;white-space:normal;text-align:left}.sc-point-row .sc-warehouse-location,.sc-point-details{margin-left:0}#warehouses-list .sc-point-row{padding:12px}.sc-point-heading>button{padding:7px 8px}.sc-points-heading h2{font-size:15px}}

/* Courier planning */
.courier-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.courier-controls label{flex:1;min-width:160px}.courier-order{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #dce3ec;align-items:start}.courier-order>input{width:auto;flex:none;margin-top:4px}.courier-order>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.courier-map{display:block;width:100%;height:430px;border:1px solid #dce3ec;border-radius:14px;margin-top:16px}.courier-saved{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0}#courier-sequence li{padding:6px;overflow-wrap:anywhere}#courier-sequence button{margin-left:8px;padding:4px 10px}.courier-summary{margin-top:20px}@media(max-width:600px){.courier-map{height:330px}.courier-controls label{min-width:100%;}.courier-saved>b{width:100%}}

#courier-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.courier-directory-card{padding:16px;border:1px solid #dce3ec;border-radius:14px;min-width:0}.courier-directory-card h3{margin-top:0}.courier-directory-card p{overflow-wrap:anywhere}#courier-finish-options{display:flex;flex-wrap:wrap;gap:8px}#courier-finish-options button{max-width:100%;white-space:normal}#courier-finish-map iframe{width:100%;height:320px;border:1px solid #dce3ec;border-radius:14px;margin-top:12px}
#product-pack-editor{min-width:0;overflow-wrap:anywhere;margin-top:16px}
#product-pack-editor .panel{min-width:0}
#pack-product-picker{width:min(760px,94vw);max-width:94vw;max-height:88vh;overflow:auto}
#pack-product-picker .panel{overflow-wrap:anywhere}
#product-pack-editor{border:1px solid #dfe6ee;border-radius:14px;padding:16px 18px;background:#fff}
#product-pack-editor>legend{padding:0 7px;font-size:16px;font-weight:650}
.pack-editor-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.pack-editor-header p{margin:0 0 5px;font-size:13px;color:#68778c}
.pack-editor-count{font-size:11px;font-weight:600;color:#68778c}
.pack-editor-header button{padding:9px 12px;font-size:12px;white-space:nowrap}
.pack-editor-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.65fr);gap:14px;margin-bottom:14px}
#product-pack-editor label{margin:0;font-size:11px;font-weight:500;color:#68778c}
#product-pack-editor input,#product-pack-editor select{margin-top:5px;padding:9px 10px;font-size:13px;min-width:0}
.pack-editor-list{border:1px solid #e1e7ee;border-radius:11px;overflow:hidden}
.pack-editor-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr) 32px;align-items:start;gap:14px;padding:13px 14px}
.pack-editor-row+.pack-editor-row{border-top:1px solid #e6ebf1}
.pack-editor-row.is-current{background:#f5f8fc}
.pack-editor-identity{min-width:0;padding-top:3px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.pack-editor-identity strong,.pack-editor-identity>a{font-size:13px;line-height:1.4;font-weight:600}
.pack-editor-identity>a{color:#315f96;text-decoration:none}
.pack-editor-identity>a:hover,.pack-editor-identity>a:focus-visible{text-decoration:underline}
.pack-editor-identity small{font-size:11px;color:#7a8798}
.pack-current-badge{font-size:10px;padding:2px 6px;border-radius:5px;background:#e7edf7;color:#526f99}
.pack-editor-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,.75fr);gap:10px}
.pack-label-field{display:flex;flex-direction:column;gap:10px;min-width:0}
.pack-label-field>small{font-size:11px;color:#68778c}
.pack-label-preview{font-size:13px;font-weight:600;color:#445368;padding:7px 0;overflow-wrap:anywhere}
.pack-auto-note{display:block;font-size:10px;color:#638377;margin-top:4px}
.pack-auto-note[hidden]{display:none}
#product-pack-editor .pack-remove,#pack-product-picker .pack-picker-close{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border-radius:8px;background:transparent;color:#8490a0;font-size:22px;line-height:1}
#product-pack-editor .pack-remove{margin-top:22px}
#product-pack-editor .pack-remove:hover{background:#fff0ee;color:#b54e45}
.pack-editor-empty{padding:22px 16px;text-align:center;display:grid;gap:6px;background:#fafbfd}
.pack-editor-empty strong{font-size:13px;font-weight:600;color:#445368}
.pack-editor-empty span{font-size:12px;color:#7a8798}
.pack-editor-footer{display:block;margin-top:10px;font-size:11px;color:#8490a0}
.pack-editor-status{margin:10px 0 0;font-size:12px}.pack-editor-status:empty{display:none}
#pack-product-picker{padding:20px;border:1px solid #dfe6ee;border-radius:16px}
.pack-picker-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.pack-picker-header h2{margin:0;font-size:19px}
.pack-picker-note{font-size:12px;color:#7a8798;margin:10px 0}
.pack-picker-results{border:1px solid #e1e7ee;border-radius:10px;overflow:hidden;margin-bottom:12px}
.pack-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto 125px;align-items:center;gap:14px;padding:12px}
.pack-picker-row+.pack-picker-row{border-top:1px solid #e6ebf1}
.pack-picker-identity,.pack-picker-details{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.pack-picker-identity strong{font-size:13px;font-weight:600;line-height:1.4}
.pack-picker-identity small,.pack-picker-details small{font-size:11px;color:#8490a0}
.pack-picker-identity .pack-match-note{color:#28734e;font-weight:600}
.pack-picker-details span{font-size:13px;font-weight:600;white-space:nowrap}
.pack-picker-row button{padding:8px;font-size:11px;white-space:normal}
.pack-picker-row.is-selected{background:#f6f9fc}
@media(max-width:650px){
  #product-pack-editor{padding:12px}
  .pack-editor-header{align-items:flex-start;flex-direction:column;gap:10px}
  .pack-editor-header button{width:100%}
  .pack-editor-settings{grid-template-columns:minmax(0,1fr);gap:10px}
  .pack-editor-row{grid-template-columns:minmax(0,1fr) 32px;gap:10px;padding:12px}
  .pack-editor-identity{grid-column:1;grid-row:1}.pack-editor-inputs{grid-column:1/-1;grid-row:2}
  #product-pack-editor .pack-remove{grid-column:2;grid-row:1;margin-top:0}
  #pack-product-picker{padding:14px}
  .pack-picker-row{grid-template-columns:minmax(0,1fr) 100px;gap:8px 12px}
  .pack-picker-identity{grid-column:1;grid-row:1}.pack-picker-details{grid-column:1;grid-row:2;flex-direction:row;flex-wrap:wrap;gap:5px 10px}
  .pack-picker-row button{grid-column:2;grid-row:1/3}
}

.admin-nav-tree [hidden]{display:none!important}.admin-access-dialog{width:min(760px,95vw);max-height:90vh;overflow:auto}.admin-permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 16px}#role-error,#staff-error{color:#a43b30}#roles-panel td{vertical-align:top}#roles-panel td button{margin:3px}
#ip-blocklist-panel{min-width:0;overflow-wrap:anywhere}#ip-blocklist-form{max-width:680px}#ip-blocklist-form [role=alert]{color:#a43b30}#ip-blocklist-entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}#ip-blocklist-entries .panel{margin:0;min-width:0}#ip-blocklist-entries strong{font-family:monospace;font-size:16px}
.product-bulk-bar{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:80;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:max-content;max-width:calc(100% - 24px);padding:14px 18px;border:1px solid #d8dfe3;border-radius:16px;background:#fff;box-shadow:0 6px 30px #0003}.product-bulk-bar[hidden]{display:none}.product-bulk-visible{padding-bottom:160px}.product-bulk-bar button{min-height:44px}.product-bulk-bar span{font-weight:600}#products [data-select-product],#product-select-all{width:20px;height:20px;min-width:20px;margin:0 12px 0 0;vertical-align:middle;cursor:pointer}#product-bulk-dialog{width:min(620px,calc(100% - 24px));max-height:90vh;overflow:auto}#product-bulk-dialog::backdrop{background:#0006}.product-bulk-field{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin:12px 0}.product-bulk-field label{display:flex;gap:8px;align-items:center;margin:0}.product-bulk-field input[type=checkbox]{width:20px;height:20px}.product-bulk-field input,.product-bulk-field select{min-width:0}#product-bulk-form>[role=alert]{color:#a43b30}#product-bulk-form>button{margin:6px 8px 0 0}@media(max-width:650px){.product-bulk-bar{width:calc(100% - 24px);padding:12px;gap:8px}.product-bulk-bar span{width:100%;text-align:center}.product-bulk-bar button{flex:1;padding:10px;font-size:13px}.product-bulk-field{grid-template-columns:1fr;gap:8px}}
#product-bulk-dialog{width:min(1280px,calc(100% - 24px));padding:20px;max-height:94vh}#product-sheet-hint{font-size:13px;color:#626b75;margin-bottom:12px}.product-sheet-scroll{overflow:auto;max-height:min(60vh,calc(94vh - 230px));min-height:120px;border:1px solid #ccd5de;border-radius:8px}#product-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1000px}#product-sheet th,#product-sheet td{padding:0;border:0;border-right:1px solid #dbe1e7;border-bottom:1px solid #dbe1e7;vertical-align:middle;background:#fff}#product-sheet thead th{position:sticky;top:0;z-index:3;background:#eef2f5;padding:10px 8px;font-size:13px;white-space:nowrap}#product-sheet tr>:first-child{position:sticky;left:0;width:40px;min-width:40px;background:#eef2f5;text-align:center;font-weight:500;z-index:2}#product-sheet thead th:first-child{z-index:4}#product-sheet tr>:nth-child(2){width:260px}#product-sheet td:nth-child(2){padding:8px 10px}#product-sheet td:nth-child(2) strong{display:block;font-size:13px;overflow-wrap:anywhere}#product-sheet td:nth-child(2) small{display:block;color:#7a8089}#product-sheet input,#product-sheet select{width:100%;min-width:0;min-height:44px;margin:0;padding:10px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px}#product-sheet input:focus,#product-sheet select:focus{outline:2px solid #19744d;outline-offset:-2px}#product-sheet td.is-dirty{background:#fff2c9}.product-sheet-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.product-sheet-actions [role=status]{margin:0 auto 0 0;font-size:13px}.product-sheet-actions button{min-height:44px}#product-bulk-form>[role=alert]{margin:10px 0 0}@media(min-width:761px){#product-sheet tr>:nth-child(2){position:sticky;left:40px;z-index:1}#product-sheet thead th:nth-child(2){z-index:4}}@media(max-width:650px){#product-bulk-dialog{padding:14px}.product-sheet-actions [role=status]{width:100%}.product-sheet-actions button{flex:1;font-size:13px;padding:10px}.product-sheet-scroll{max-height:calc(94vh - 280px)}}

#product-sheet{min-width:3100px}#product-sheet textarea{width:100%;min-height:66px;max-height:180px;margin:0;padding:10px;border:0;border-radius:0;resize:vertical;background:transparent}#product-sheet button{width:100%;min-height:44px;padding:8px;border:0;border-radius:0;background:transparent;color:#174b79;text-align:left}#product-sheet button:focus,#product-sheet textarea:focus{outline:2px solid #19744d;outline-offset:-2px}.product-sheet-cell-dialog{width:min(780px,calc(100% - 24px));max-height:90vh;overflow:auto}.product-sheet-cell-dialog::backdrop{background:#0006}.product-sheet-attribute,.product-sheet-pack,.product-sheet-photo{display:flex;align-items:center;gap:8px;margin:8px 0}.product-sheet-attribute input,.product-sheet-pack input{min-width:0}.product-sheet-photo img{width:56px;height:56px;object-fit:contain}.product-sheet-photo span{flex:1}.product-sheet-cell-dialog form>button{margin:12px 8px 0 0}.product-sheet-cell-dialog [role=alert]{color:#a43b30}@media(max-width:650px){.product-sheet-attribute,.product-sheet-pack{flex-wrap:wrap}.product-sheet-attribute input,.product-sheet-pack input{flex:1;min-width:100px}.product-sheet-cell-dialog{padding:16px}}

#products .product-selection-title{display:flex;align-items:flex-start;gap:12px}#products .product-selection-title [data-select-product]{display:block;flex:0 0 20px;margin:2px 0 0;align-self:flex-start}#products .product-selection-name{display:block;min-width:0;flex:1}#products .product-selection-name .product-site-link{display:block}#products .product-selection-name small{display:block}@media(max-width:650px){.product-bulk-bar button{flex:1 1 calc(50% - 8px)}}

.product-sheet-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}.product-sheet-pager button{min-height:44px}

#product-delete-confirmation{width:min(540px,calc(100% - 24px))}#product-delete-confirmation strong{display:block;font-size:32px;margin:12px 0}#product-delete-confirmation button{margin:12px 8px 0 0}#product-delete-confirmation [role=alert]{color:#a43b30}.product-sheet-window{margin:0;padding:0;background:#fff}.product-sheet-window>p{padding:24px}.product-sheet-window #product-bulk-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100vh;max-height:none;border:0;border-radius:0;box-sizing:border-box}.product-sheet-window #product-bulk-form{display:flex;flex-direction:column;height:100%;min-height:0}.product-sheet-window .product-sheet-scroll{flex:1;max-height:none;min-height:120px}.product-sheet-window #product-bulk-dialog::backdrop{background:#fff}

.product-select-heading{display:flex;align-items:center;gap:12px;white-space:nowrap}.product-select-heading #product-select-all{display:block;flex:0 0 20px;margin:0}
.product-list-photo{align-self:center}
.product-photo-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:5px;background:#eef2f7;border-radius:12px;width:fit-content;max-width:100%}
.product-photo-tabs [role=tab]{margin:0;padding:10px 22px;border:0;border-radius:8px;background:transparent;color:#52647d;font-weight:600}
.product-photo-tabs [aria-selected=true]{background:#fff;color:#002f6c;box-shadow:0 2px 6px #1a365514}
.product-photo-tabs [role=tab]:focus-visible{outline:2px solid #002f6c;outline-offset:2px}
.product-photo-tabs[hidden],.product-photo-tabs [role=tab][hidden]{display:none}
#products-in-stock-control[hidden]{display:none}
@media(max-width:600px){.product-photo-tabs{width:100%}.product-photo-tabs [role=tab]{flex:1;padding:10px 12px}}

/* Product category assignments */
.product-extra-categories{min-width:0;margin:2px 0 0;padding:0;border:0}
.product-extra-categories legend{padding:0;margin-bottom:6px;color:#586270;font-size:14px;font-weight:500}
.product-extra-selected{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.product-extra-selected button{min-height:34px;margin:0;padding:5px 9px;text-align:left;font-size:12px;overflow-wrap:anywhere}
.product-extra-categories details{padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.product-extra-categories summary{padding:3px 0;font-size:13px;color:var(--green)}
.product-extra-categories details>input{margin:8px 0}
.product-extra-choices{max-height:220px;overflow:auto;overscroll-behavior:contain}
.product-extra-choices label{padding:7px 0;overflow-wrap:anywhere}
.product-extra-categories details>p{font-size:13px}
.brand-actions{white-space:nowrap}
.review-reply-editor{margin-top:16px}
#promo-editor{box-sizing:border-box;width:min(900px,calc(100% - 24px));max-height:90vh;padding:0;overflow:hidden}
#promo-form{display:flex;flex-direction:column;max-height:calc(90vh - 2px);margin:0}
.promo-editor-header,.promo-editor-footer{padding:14px 20px;background:#fff}
.promo-editor-header{border-bottom:1px solid var(--line)}
.promo-editor-header h2{margin:0}
.promo-editor-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;min-height:0;overflow:auto;padding:16px 20px;background:var(--canvas)}
.promo-editor-column,.promo-editor-card{display:grid;gap:12px;min-width:0}
.promo-editor-card{padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}
.promo-editor-card h3,.promo-editor-card p{margin:0}
.promo-editor-card h3{font-size:16px}
.promo-editor-card label{display:grid;gap:5px;margin:0}
.promo-editor-card input:not([type=checkbox]),.promo-editor-card select{box-sizing:border-box;width:100%;min-width:0;margin:0}
.promo-editor-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}
#promo-collection-options{max-height:280px;overflow:auto;overscroll-behavior:contain}
#promo-collection-options label{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line);cursor:pointer;overflow-wrap:anywhere}
#promo-collection-options label:last-child{border-bottom:0}
#promo-collection-options input{flex:none;margin:0}
.promo-editor-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line)}
.promo-editor-footer button{margin:0}
#promo-form-status{flex:1;min-width:12ch;margin:0;color:#a43b30;overflow-wrap:anywhere}
#promo-form-status:empty{display:none}
@media(max-width:640px){
  .promo-editor-body{grid-template-columns:minmax(0,1fr);padding:12px}
  .promo-editor-header,.promo-editor-footer{padding:10px 12px}
  #promo-form-status{flex-basis:100%}
}
#brands-list .brand-delete{margin-left:6px;min-width:36px;padding-inline:8px;font-size:20px;line-height:1}
#brands-list .brand-delete:not(:disabled):hover{color:#b34538;background:#faeeeb}
.catalog-category-heading{margin:0 0 12px;flex-wrap:wrap}
.catalog-category-heading h2{margin:0}
.catalog-category-hint{margin:0 0 14px;font-size:13px}
.catalog-category-search{width:min(100%,340px);margin:0 0 10px}
.catalog-category-tree-cell{display:flex;align-items:center;min-height:30px;gap:6px;padding-left:calc(var(--category-depth)*12px);overflow-wrap:anywhere}
.catalog-category-tree-cell:not(:has(button)){padding-left:calc(var(--category-depth)*12px + 34px)}
.catalog-category-tree-cell .catalog-category-expand{flex:0 0 28px;width:28px;min-height:28px;margin:0;padding:0}
.catalog-category-section-root td{background:#f4f7fc;font-weight:650;color:var(--ink)}
#catalog-pets-content #pet-settings-category{max-width:460px}
#catalog-pets-content #pet-settings-status:empty{display:none}
.catalog-category-row-actions,.catalog-category-editor-actions{display:flex;align-items:center;gap:8px}
.catalog-category-row-actions{justify-content:flex-end}
.catalog-category-row-actions button{margin:0;min-height:36px;padding:7px 12px;font-size:13px}
.catalog-category-row-actions .catalog-category-remove{color:#a43b30}
.catalog-category-editor{box-sizing:border-box;width:min(570px,calc(100% - 24px));max-height:90vh;overflow:auto}
.catalog-category-editor h2{margin:0 0 14px}
.catalog-category-editor label{margin:0 0 12px}
.catalog-category-editor input,.catalog-category-editor select{min-width:0}
.catalog-category-editor-fields{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px}
.catalog-category-editor-actions{justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.catalog-category-editor [role=alert]{color:#a43b30;overflow-wrap:anywhere}
.catalog-category-editor [role=alert]:empty{display:none}
@media(max-width:540px){
  .catalog-category-editor-fields{grid-template-columns:minmax(0,1fr)}
  .catalog-category-row-actions{align-items:stretch;flex-direction:column}
}
