/* Storefront form primitives. Load after design-tokens.css and site-polish.css.
   No form display override: no-JS forms, hidden shapes and honeypots stay hidden. */
.storefront :is(.request-form,#volume-form,#product-order,#quick-form,.calculator-result,.cart-row,.catalog-browser,.price-controls) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([name=website]),select,textarea){
 width:100%;max-width:100%;min-width:0;padding:var(--space-3) var(--space-4);
 border:1px solid var(--color-control-border);border-radius:var(--radius-control);background-color:var(--color-surface);color:var(--color-text);
 font:inherit;font-size:16px;font-weight:400;line-height:1.4;caret-color:var(--color-text);
}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form,.calculator-result,.cart-row,.catalog-browser,.price-controls) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([name=website]),select){height:var(--control-size);min-height:var(--control-size)}
/* Keep the existing native select and its shared chevron; padding protects the text. */
.storefront :is(.request-form,#volume-form,#product-order,#quick-form,.calculator-result,.cart-row,.catalog-browser,.price-controls) select{padding-right:var(--space-7)}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form,.calculator-result,.cart-row,.catalog-browser,.price-controls) :is(input,textarea)::placeholder{color:var(--color-muted);opacity:1}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form,.calculator-result,.cart-row,.catalog-browser,.price-controls) :is(input,select,textarea):disabled{opacity:.6;cursor:default}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form) textarea{min-height:calc(var(--control-size) * 2);resize:vertical}

/* A label is one text line, including its optional required marker; the field is below it. */
.storefront #volume-form{padding:var(--space-6)}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form) label:not(.consent):not(.trap),
.storefront :is(#product-order,#quick-form) .method legend{margin:0;font-size:14px;line-height:1.45;color:var(--color-text)}
.storefront :is(.request-form,#volume-form,.calculator-result) label>:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){margin-top:var(--space-2)}
.storefront :is(#product-order,#quick-form)>label:not(.consent):not(.trap){margin-bottom:var(--space-2)}
.storefront #quick-form>#quick-quantity{margin:0}
.storefront :is(.request-form,#volume-form) .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
.storefront :is(.request-form,#volume-form) .form-grid>label{min-width:0;margin:0}
.storefront :is(.request-form,#volume-form)>:is(.form-grid,label:not(.consent):not(.trap),label.consent,p:not(.form-status),details){margin:0 0 var(--space-4)}
.storefront #volume-form details>label{margin-block:var(--space-4)}
.storefront #volume-form details>p{margin:0}
.storefront .request-form>.button{margin:0}
.storefront :is(.request-form,#volume-form,#product-order,#quick-form) [hidden]{display:none!important}

/* The quantity stepper is one joined control; its inner input has no independent frame. */
.storefront :is(#product-order,#quick-form,.cart-row) .quantity-row{min-height:var(--control-size);margin:0;border:1px solid var(--color-border);border-radius:var(--radius-control);overflow:hidden;gap:0}
.storefront :is(#product-order,#quick-form,.cart-row) .quantity-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([name=website]){
 min-height:calc(var(--control-size) - 2px);height:calc(var(--control-size) - 2px);padding:0 var(--space-2);border:0;border-radius:0;background:var(--color-surface);text-align:center;
}
.storefront :is(#product-order,#quick-form,.cart-row) .quantity-row button{flex:0 0 calc(var(--control-size) - 2px);min-height:calc(var(--control-size) - 2px);padding:0;border:0;color:var(--color-text)}
.storefront :is(#product-order,#quick-form) .quantity-presets{gap:var(--space-2);margin:var(--space-2) 0 var(--space-4)}
.storefront :is(#product-order,#quick-form) .quantity-presets button{min-height:var(--control-size);border-radius:var(--radius-control);border-color:var(--color-border);font-size:14px;padding:var(--space-2)}
.storefront :is(#product-order,#quick-form) .method{min-width:0;gap:var(--space-2);margin:var(--space-5) 0 var(--space-4)}
.storefront :is(#product-order,#quick-form) .method legend{margin-bottom:var(--space-2)}
.storefront :is(#product-order,#quick-form) .method label{min-width:0;margin:0}
.storefront :is(#product-order,#quick-form) .method span{min-height:var(--control-size);padding:var(--space-3);border-radius:var(--radius-control);font-size:14px;line-height:1.4}
.storefront :is(#product-order,#quick-form)>p.small{margin:var(--space-4) 0;font-size:13px;line-height:1.55;color:var(--color-muted)}
.storefront :is(#product-order,#quick-form)>.button{margin:0}

/* Consent and live feedback use the same spacing in inline, modal and checkout forms. */
.storefront .request-form>.consent{display:flex;align-items:flex-start;gap:var(--space-2);font-size:13px;line-height:1.55;color:var(--color-muted)}
.storefront .request-form .consent input{width:20px;height:20px;min-height:0;flex:0 0 20px;margin:0;accent-color:var(--color-text)}
.storefront .request-form .consent span{min-width:0}
.storefront .request-form .consent a{text-decoration:underline;text-underline-offset:3px;color:var(--color-text)}
.storefront .request-form>p.small{font-size:13px;line-height:1.55;color:var(--color-muted)}
.storefront :is(.request-form,#product-order,#quick-form,.calculator-result)>:is(.form-status,#product-status,#quick-status,#calc-status){margin:var(--space-4) 0 0;font-size:14px;line-height:1.5;color:inherit;overflow-wrap:anywhere}
.storefront :is(.request-form,#product-order,#quick-form,.calculator-result)>:is(.form-status,#product-status,#quick-status,#calc-status):empty{margin:0;min-height:0}
.storefront .request-form>.form-status.error{font-weight:600}
.storefront #quick-form>#quick-detail{display:inline-flex;align-items:center;min-height:var(--control-size);margin-top:var(--space-2)}

/* Dialog framing is shared; native open/closed and backdrop behaviour stay intact. */
.storefront :is(#request-dialog,#quick-order){padding:var(--space-6);border-radius:var(--radius-panel)}
.storefront :is(#request-dialog,#quick-order)>h2{margin:0 var(--space-6) var(--space-5) 0}
.storefront :is(#request-dialog,#quick-order)>:is(.dialog-close,.quick-close){top:var(--space-3);right:var(--space-3)}
.storefront #quick-order>#quick-price{margin:0 0 var(--space-5)}

@media(max-width:600px){
 .storefront #volume-form{padding:var(--space-5)}
 .storefront :is(.request-form,#volume-form) .form-grid{grid-template-columns:1fr;gap:var(--space-4)}
 .storefront #volume-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .storefront .request-form>.button{width:100%;justify-content:center}
 .storefront :is(#request-dialog,#quick-order){padding:var(--space-5)}
}
