/* Shared commerce frame. Fields follow their content, never the viewport width. */
body.fsc-shop-layout{--fs-commerce-width:960px;--fs-commerce-form-width:640px;--fs-layout-content-max:var(--fs-commerce-width)}
body.fsc-shop-layout #content :is(.fsc-material-order,.fsc-selfpay,.fsc-yard-selfpay,.fsc-order-wizard){box-sizing:border-box;width:100%;max-width:100%;margin-inline:0}
body.fsc-shop-layout #content .entry-content>:is(.gm-shell,.is-style-fs-content-frame){width:100%;max-width:100%}
body.fsc-shop-layout .fsc-cart-product{max-width:var(--fs-commerce-form-width);gap:20px}
body.fsc-shop-layout .fsc-material-selector__formats{max-width:var(--fs-commerce-form-width)}
body.fsc-shop-layout .fsc-cart-address{max-width:var(--fs-commerce-form-width);grid-template-columns:minmax(0,1fr) 100px 140px;gap:14px 16px}
.fsc-cart-address>label:has([name=billing_address_1]),.fsc-cart-address>label:has([name=billing_address_2]){grid-column:1/-1}
body.fsc-shop-layout :is(.fsc-cart-plans,.fsc-cart-timing,.fsc-delivery-calculator>form){max-width:var(--fs-commerce-form-width)}
body.fsc-shop-layout .fsc-selfpay :is(.fsc-selfpay__grid,form.checkout,.fsc-qr-receipt){max-width:var(--fs-commerce-form-width)}
body.fsc-shop-layout .fsc-selfpay>form:not(.checkout){max-width:var(--fs-commerce-form-width)}
body.fsc-shop-layout .fsc-selfpay button[type=submit]{width:auto;min-width:224px;max-width:100%}
body.fsc-shop-layout .fsc-yard-pay button[type=submit]{width:224px}
body.fsc-shop-layout .fsc-delivery-calculator__search{max-width:var(--fs-commerce-form-width)}
body.fsc-shop-layout .fsc-delivery-calculator__quantities input{width:120px;max-width:100%}
@media(min-width:801px){
 body.fsc-shop-layout .fsc-cart-line{display:grid;grid-template-columns:minmax(160px,1fr) 100px 180px minmax(100px,auto) 60px;gap:6px 16px;align-items:center;padding-block:20px}
 body.fsc-shop-layout .fsc-cart-line h2{grid-column:1;grid-row:1;font-size:1.1rem}
 body.fsc-shop-layout .fsc-cart-line>p:first-of-type{grid-column:1;grid-row:2;font-size:.9375rem}
 body.fsc-shop-layout .fsc-cart-line>label{grid-row:1/3;margin:0;align-self:center}
 body.fsc-shop-layout .fsc-cart-line>label:first-of-type{grid-column:2}
 body.fsc-shop-layout .fsc-cart-line>label:last-of-type{grid-column:3}
 body.fsc-shop-layout .fsc-cart-line>p:last-of-type{grid-column:4;grid-row:1/3}
 body.fsc-shop-layout .fsc-cart-line>button{grid-column:5;grid-row:1/3}
 body.fsc-shop-layout .fsc-cart-line input[type=number]{width:100%}
 body.fsc-shop-layout .woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
 body.fsc-shop-layout .woocommerce-billing-fields__field-wrapper>.form-row{grid-column:1/-1;float:none;width:auto;margin:0;padding:0;min-width:0}
 body.fsc-shop-layout .woocommerce-billing-fields__field-wrapper>:is(#billing_first_name_field,#billing_last_name_field,#billing_state_field,#billing_postcode_field){grid-column:auto}
 body.fsc-shop-layout .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper{display:block;min-width:0}
 body.fsc-shop-layout .woocommerce-billing-fields__field-wrapper .select2-container{width:100%!important}
}
@media(max-width:800px){
 body.fsc-shop-layout .fsc-cart-address{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.fsc-shop-layout .fsc-cart-address>label:has([name=billing_city]){grid-column:1/-1}
}
@media(max-width:600px){
 body.fsc-shop-layout .fsc-selfpay button[type=submit]{width:100%;min-width:0}
 body.fsc-shop-layout .fsc-yard-pay button[type=submit]{width:224px}
}

body.fsc-shop-layout .fsc-delivery-calculator>form{display:block}
