/* The same catalog form geometry applies to repair, retail and service. */
html body #catalogEditor .catalog-modal-card{width:min(1000px,calc(100vw - 32px))!important}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;
}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label:not(.hidden):not([hidden]):not(.catalog-auto-media-option){
 display:grid!important;grid-template-rows:20px 46px auto;gap:6px!important;align-content:start;
 min-width:0!important;margin:0!important;padding:0!important;line-height:20px!important;font-size:13px!important;
}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label>span:first-child{
 display:block;min-height:20px;margin:0!important;padding:0;line-height:20px;
}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label>:is(input:not([type=hidden]):not([type=checkbox]),select,.ltn-catalog-preset){
 box-sizing:border-box!important;width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;margin:0!important;
}
html body #catalogEditor #catalogEditorForm .ltn-catalog-preset>input{height:100%!important;min-height:0!important;margin:0!important;font-size:14px;line-height:20px}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label:not(.hidden):not([hidden]):not(.catalog-auto-media-option):has(>textarea),
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label.catalog-alias-field:not(.hidden):not([hidden]):not(.catalog-auto-media-option){grid-template-rows:auto auto auto}
html body #catalogEditor #catalogEditorForm textarea{margin:0!important;min-height:88px;width:100%;box-sizing:border-box}
html body #catalogEditor #catalogEditorForm :is(input:not([type=checkbox]):not([type=file]):not([type=hidden]),select,textarea):focus:not([aria-invalid="true"]){outline:0!important;box-shadow:none!important;border-color:#075deb!important}
html body #catalogEditor #catalogEditorForm .catalog-field-hint{margin:0!important;line-height:17px!important;font-size:12px!important}
html body #catalogEditor #catalogEditorForm .catalog-preset-chips{margin:0!important;gap:5px}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>.catalog-availability-lead>div{height:46px;align-items:center}
html body #catalogEditor #catalogEditorForm .catalog-availability-lead input{height:46px!important;min-height:46px!important;margin:0!important}
html body #catalogEditor #catalogEditorForm .ltn-retail-category-manage{min-height:30px;margin:0!important;padding:5px 9px}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>label>.ltn-retail-category-heading{display:flex!important;align-items:center;gap:4px;min-width:0}
html body #catalogEditor #catalogEditorForm .ltn-retail-category-heading .ltn-retail-category-manage{min-height:22px;height:22px;line-height:20px;padding:0 6px;margin:0 0 0 auto!important;font-size:11px;white-space:nowrap}
html body #catalogEditor #catalogEditorForm input[type=hidden],
html body #catalogEditor #catalogEditorForm input[type=hidden]+.ltn-catalog-preset-toggle{display:none!important}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>.ltn-retail-meta-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>.ltn-retail-meta-row>label{display:grid!important;grid-template-rows:20px 46px;gap:6px!important;margin:0!important}
html body #catalogEditor #catalogEditorForm .catalog-editor-fields>.ltn-retail-meta-row :is(input,select){height:46px!important;min-height:46px!important;margin:0!important}
html body #catalogEditor #catalogEditorForm .catalog-editor-actions{column-gap:14px!important;padding-left:4px!important;padding-right:4px!important}
/* Retail filter captions and controls share the same baselines. */
#products .ltn-retail-filters{display:grid!important;grid-template-columns:minmax(140px,1.1fr) repeat(3,minmax(120px,1fr)) auto!important;gap:10px!important;align-items:end!important}
#products .ltn-retail-filters>label{display:grid!important;grid-template-rows:18px 40px;gap:6px;min-width:0;margin:0!important}
#products .ltn-retail-filters select,#products #ltnRetailFilterClear{height:40px!important;min-height:40px!important;margin:0!important;box-sizing:border-box;align-self:end}
@media(max-width:768px){
 html body #catalogEditor .catalog-modal-card{width:100%!important}
 html body #catalogEditor #catalogEditorForm .catalog-editor-fields{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body #catalogEditor #catalogEditorForm .ltn-catalog-preset>input{font-size:16px!important}
 html body #catalogEditor #catalogEditorForm .catalog-editor-actions{padding-left:0!important;padding-right:0!important}
 #products .ltn-retail-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #products #ltnRetailFilterClear{grid-column:1/-1;width:100%}
}
