/* Supplier quotes remain separate from platform retail prices. */
#productDialog{--editor-bg:#fff;--editor-surface:#f5f6f8;--editor-text:#272b32;--editor-muted:#646d7a;--editor-line:#dfe3e8;--editor-accent:#2465d9;--editor-selected:#edf3ff;background:var(--editor-bg);color:var(--editor-text);border-color:var(--editor-line);width:min(1080px,calc(100% - 40px));letter-spacing:0}
#productDialog [hidden]{display:none!important}
#productDialog[open]{display:flex;flex-direction:column;height:min(894px,calc(100dvh - 24px))}
#productDialog>.dialog-heading{padding:16px 24px;border-color:var(--editor-line)}
#productDialog>.dialog-heading{flex:none}
#productDialog h2{font-size:18px;line-height:1.5}
#productDialog .product-editor-layout{display:flex;flex-direction:column;flex:1;height:auto;max-height:none;min-height:0}
#productSections{display:flex;flex:none;gap:24px;padding:0 24px;background:var(--editor-bg);border:0;border-bottom:1px solid var(--editor-line);overflow-x:auto;scroll-padding-inline:14px}
#productDialog #productSections button{flex:none;width:auto;margin:0;padding:12px 2px;min-height:44px;white-space:nowrap;border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:var(--editor-muted);font-size:14px;font-weight:400}
#productDialog #productSections button[aria-selected=true]{border-bottom-color:var(--editor-accent);color:var(--editor-accent);font-weight:600}
#productDialog #productSections button:hover,#productDialog #productSections button:focus-visible{background:var(--editor-selected);color:var(--editor-accent)}
#productForm{display:flex;flex-direction:column;flex:1;padding:0 24px;overflow:auto;min-height:0;gap:0;scroll-padding:18px}
#productEditorStatus{flex:none;margin:0;padding:10px 0;font-size:12px;line-height:1.7;color:var(--editor-muted);border-bottom:1px solid var(--editor-line);overflow-wrap:anywhere}
#productForm .product-panel{flex:1 0 auto;min-width:0;padding-bottom:16px}
#productForm .editor-section{display:grid;gap:12px;padding:16px 0;border-color:var(--editor-line);background:transparent;border-radius:0;box-shadow:none}
#productForm .product-panel>.editor-section:first-child{border-top:0}
#productForm .editor-section>.icon{justify-self:start}
#productForm #product-basic{padding-top:16px}
#productForm h3{font-size:14px;line-height:1.6;color:var(--editor-text)}
#productForm .form-grid,#productForm .three-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#productForm label,#productForm .product-choice-field{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:start;gap:14px;font-size:13px;font-weight:400;line-height:1.6;min-width:0;overflow-wrap:anywhere}
#productForm label>span,#productForm .product-choice-caption{padding-top:6px}
#productForm input,#productForm select,#productForm textarea{color:var(--editor-text);background:var(--editor-bg);border-color:var(--editor-line);font-size:14px;line-height:1.5;min-width:0;min-height:36px;padding:6px 10px}
#productForm input:not([type=checkbox]):not([type=radio]),#productForm select{height:36px}
#productForm .product-choice-content{display:grid;gap:6px;min-width:0}
#productForm .product-choices{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#productForm .product-choices label{display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0;cursor:pointer}
#productForm .product-choices label>span{padding:0}
#productForm .product-type-choice{border:1px solid var(--editor-line);border-radius:4px;padding:0 10px;background:var(--editor-bg)}
#productForm .product-type-choice:has(:checked){border-color:var(--editor-accent);background:var(--editor-selected);color:var(--editor-accent)}
#productForm .product-type-choice:has(:disabled){cursor:default;color:var(--editor-muted)}
#productForm .product-type-choice:has(:checked:disabled){color:var(--editor-text)}
#productForm .product-type-choice:focus-within{outline:2px solid var(--editor-accent);outline-offset:2px}
#productForm .product-choices input[type=radio]{width:15px;height:15px;min-height:15px;margin:0;padding:0;flex:none;accent-color:var(--editor-accent)}
#productForm .product-spec-choice{padding-right:12px}
#productForm .product-more-types{min-width:0}
#productForm .product-more-types summary{cursor:pointer;color:var(--editor-muted);font-size:12px;width:fit-content;padding:3px 0}
#productForm .product-more-types[open] summary{margin-bottom:8px}
#productForm .spec-mode-error{margin:0;color:#c03646;font-size:12px}
#productForm input:disabled,#productForm select:disabled{background:var(--editor-surface);color:var(--editor-muted);opacity:1}
#productDialog button{color:var(--editor-text);background:var(--editor-bg);border-color:var(--editor-line)}
#productDialog button.primary{background:var(--editor-accent);border-color:var(--editor-accent);color:#fff}
#productForm .product-image-editor>label{max-width:none}
#productForm .product-image-editor figure,#productForm #productImageStatus{margin-left:124px}
#productForm .product-image-editor img{width:112px;height:96px;border-color:var(--editor-line)}
#productForm .sku-row,#productForm .sku-stock-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;padding:14px 0;gap:10px;border-top:1px solid var(--editor-line);border-radius:0;background:transparent;box-shadow:none;min-width:0}
#productForm .sku-stock-row:first-child{border-top:0;padding-top:0}
#productForm .sku-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;font-size:13px}
#productForm .stock-sku-name{margin:0 0 2px;font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.6}
#productForm .sku-advanced{min-width:0}
#productForm .sku-advanced summary{cursor:pointer;color:var(--editor-muted);font-size:12px;line-height:1.6;padding:6px 0;margin-left:124px}
#productForm .sku-advanced[open] summary{margin-bottom:6px}
#productForm .sku-attributes{grid-column:auto}
#productForm .sku-attributes textarea{max-width:none}
#productForm .gallery-row{grid-template-columns:minmax(0,1fr);gap:12px;border-color:var(--editor-line)}
#productForm .gallery-rows:empty{display:none}
#productForm .gallery-row>img{margin-left:124px}
#productForm .gallery-row>label,#productForm .gallery-row>small,#productForm .gallery-row>.editor-actions{grid-column:1}
#productForm .gallery-row>.editor-actions{justify-content:flex-end}
#productForm .checkout-field-row{border-color:var(--editor-line);padding:14px 0}
#productForm .editor-actions>label{flex:1;min-width:240px}
#productForm .check-field{grid-template-columns:110px minmax(0,1fr);min-height:38px}
#productForm .check-field input{justify-self:start;width:18px;height:18px;min-height:18px;margin:9px 0}
#productForm .template-status{margin:0;color:var(--editor-muted);font-size:12px;line-height:1.6}
#productForm .template-status:empty{display:none}
#productForm .editor-note{background:transparent;color:var(--editor-muted);border:0;padding:0;margin:0;font-size:12px}
#productForm .legacy-note{padding-top:12px}
#productForm .editor-prose{grid-template-columns:minmax(0,1fr);gap:0}
#productForm .editor-prose>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
#productForm .editor-prose textarea{min-height:260px}
#productForm .rich-toolbar,#productForm .rich-body{background:var(--editor-bg);border-color:var(--editor-line);color:var(--editor-text)}
#productForm .rich-body{min-height:220px;max-height:360px;overflow-wrap:anywhere}
#productForm .legacy-config{background:var(--editor-surface);color:var(--editor-text);white-space:pre-wrap;overflow-wrap:anywhere}
#productForm>.form-error{flex:none;color:#c03646}
#productForm .dialog-footer{position:sticky;bottom:0;flex:none;z-index:3;min-height:66px;margin-top:auto;padding:12px 0;background:var(--editor-bg);border-color:var(--editor-line);box-shadow:0 -8px 0 var(--editor-bg);gap:10px;flex-wrap:wrap}
#productForm .dialog-footer>span{color:var(--editor-muted);margin-right:auto;font-size:12px}
#productForm .dialog-footer button{min-height:42px;white-space:nowrap}
@media(prefers-color-scheme:dark){#productDialog{color-scheme:dark;--editor-bg:#1b1d21;--editor-surface:#25282e;--editor-text:#e5e7eb;--editor-muted:#aeb5c0;--editor-line:#434852;--editor-accent:#397ce8;--editor-selected:#25354e}#productForm>.form-error,#productForm .spec-mode-error{color:#ff9ca8}}
:root[data-theme=dark] #productDialog{color-scheme:dark;--editor-bg:#1b1d21;--editor-surface:#25282e;--editor-text:#e5e7eb;--editor-muted:#aeb5c0;--editor-line:#434852;--editor-accent:#397ce8;--editor-selected:#25354e}
:root[data-theme=light] #productDialog{color-scheme:light;--editor-bg:#fff;--editor-surface:#f5f6f8;--editor-text:#272b32;--editor-muted:#646d7a;--editor-line:#dfe3e8;--editor-accent:#2465d9;--editor-selected:#edf3ff}
@media(max-width:760px){
  #productDialog{width:calc(100% - 12px);max-width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:0}
  #productDialog[open]{height:calc(100dvh - 12px)}
  #productDialog>.dialog-heading{padding:12px 14px}
  #productSections{gap:18px;padding:0 14px}
  #productDialog #productSections button{font-size:13px;padding:12px 0}
  #productForm{padding:0 14px}
  #productForm label,#productForm .check-field,#productForm .product-choice-field{grid-template-columns:minmax(0,1fr);gap:6px}
  #productForm label>span,#productForm .product-choice-caption{padding:0}
  #productForm .check-field{grid-template-columns:1fr 24px;align-items:center}
  #productForm input,#productForm select,#productForm textarea{font-size:16px;min-height:36px;padding:5px 10px}
  #productForm .product-image-editor figure,#productForm #productImageStatus,#productForm .gallery-row>img,#productForm .sku-advanced summary{margin-left:0}
  #productForm .editor-actions>label{min-width:100%;flex:auto}
  #productForm .dialog-footer{gap:8px;min-height:70px}
  #productForm .dialog-footer>span{display:none}
  #productForm .dialog-footer button{padding:8px 10px;font-size:12px}
}
