/* Site-only alignment of native Woo controls with the approved Toeform layouts. */
body:has(#toeform-shell){background:#f6f2ea}
#toeform-shell #header{width:100%}
#toeform-body{min-width:0}
#toeform-shell .slime-cart-count:empty{display:none}
#toeform-body .product-layout .woocommerce-product-gallery{width:100%!important;float:none;margin:0;opacity:1!important}
#toeform-body .woocommerce-product-gallery__wrapper{margin:0}
#toeform-body .woocommerce-product-gallery__image{background:var(--soft)}
#toeform-body .woocommerce-product-gallery__image img{width:100%;aspect-ratio:1.3;object-fit:contain;mix-blend-mode:multiply}
#toeform-body .flex-control-thumbs{display:flex;overflow-x:auto;margin:9px 0 0;gap:8px;padding:0 0 6px;list-style:none}
#toeform-body .flex-control-thumbs li{flex:0 0 68px;float:none}
#toeform-body .flex-control-thumbs img{width:100%;aspect-ratio:1;object-fit:contain;border:1px solid var(--line);cursor:pointer;mix-blend-mode:multiply}
#toeform-body .flex-control-thumbs .flex-active{border-color:var(--accent)}
#toeform-body .product-form .cart{display:block;margin:0}
#toeform-body .product-form .variations{width:100%;margin:0 0 12px;text-align:left}
#toeform-body .product-form .variations td,#toeform-body .product-form .variations th{padding:0;display:block;text-align:left}
#toeform-body .product-form select{width:100%;margin:4px 0;min-height:47px}
#toeform-body .product-form .quantity input{width:75px;min-height:46px;padding:8px}
#toeform-body .product-form .single_variation_wrap .variations_button{display:flex;gap:10px;align-items:center}
#toeform-body .product-form .woocommerce-variation-price{display:none}
#toeform-body .product-form .reset_variations{font-size:.85rem}
#toeform-body .product-form .dimension-note{margin-top:8px;font-size:.87rem}
#toeform-body .product-form .single_add_to_cart_button,
#toeform-body .toeform-transaction .button,
#toeform-body .toeform-transaction button.button{min-height:44px;background:var(--walnut);color:#fff5e7;border:1px solid var(--walnut);border-radius:0;padding:8px 15px;font-weight:700;text-decoration:none}
#toeform-body .toeform-transaction :is(input.input-text,select,textarea){width:100%;min-height:44px;border:1px solid #927c6a;background:#fcf7ee;padding:8px;color:var(--ink)}
#toeform-body .toeform-transaction .qty{width:54px;min-width:54px}
#toeform-body .toeform-transaction .woocommerce-cart-form{margin-bottom:34px}
#toeform-body .toeform-transaction table.shop_table{border:1px solid var(--line);border-radius:0}
#toeform-body .toeform-transaction table.shop_table :is(th,td){border-color:var(--line);padding:10px}
#toeform-body .toeform-transaction .cart_totals,#toeform-body .toeform-transaction #payment{background:var(--soft);padding:18px}
#toeform-body .toeform-transaction .restore-item{font-weight:700}
#toeform-body .toeform-transaction form :is(h2,h3){font-size:clamp(24px,3vw,40px);margin-bottom:12px}
#toeform-body .toeform-transaction .woocommerce-info{border-color:var(--accent);background:var(--soft)}
#toeform-body .toeform-transaction .woocommerce-billing-fields__field-wrapper{display:flow-root}
#toeform-body .toeform-transaction .woocommerce form .required{color:var(--accent)}
#toeform-body .toeform-transaction .woocommerce-MyAccount-navigation a{display:block;padding:10px 0}
#toeform-body .toeform-transaction .woocommerce-form-login{border-color:var(--line);border-radius:0}
@media(max-width:650px){
 #toeform-body .product-layout .gallery{min-width:0}
 #toeform-body .flex-control-thumbs li{flex-basis:54px}
 #toeform-body .toeform-transaction .woocommerce table.cart td.actions .coupon{display:flex;gap:8px}
 #toeform-body .toeform-transaction .woocommerce table.cart td.actions .coupon>:is(button,input){width:auto;min-width:0}
 #toeform-body .toeform-transaction :is(.form-row-first,.form-row-last){width:100%}
}

/* A stable first image while Woo's gallery measures and attaches its slider. */
#toeform-body .woocommerce-product-gallery .flex-viewport{height:auto!important;aspect-ratio:1.3}
#toeform-body .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper{display:flex}
#toeform-body .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image{flex:0 0 auto;max-width:100cqw}
#toeform-body .product-layout .gallery{container-type:inline-size;overflow:hidden}
#toeform-body .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:not(:first-child){display:none}
#toeform-body .search-form button.primary{background:var(--walnut);border-color:var(--walnut);color:#fff5e7}
#toeform-body #cart-area :is(.quantity input.qty,input.qty){width:66px;max-width:100%}
#toeform-body #cart-area .cart_totals{float:none;width:100%}
#toeform-body #checkout-area #ship-to-different-address{font:700 1rem/1.35 "Avenir Next",Arial,sans-serif;letter-spacing:0}
#toeform-body #checkout-area #ship-to-different-address label{display:flex;align-items:center;gap:8px}
#toeform-body #checkout-area #ship-to-different-address input{width:18px;height:18px;min-height:0;margin:0}
#toeform-body #checkout-area #customer_details{padding:clamp(14px,1.7vw,25px);background:var(--soft)}
#toeform-body #checkout-area #customer_details :is(.col-1,.col-2){float:none;width:100%}
#toeform-body #checkout-area #customer_details .col-2{margin-top:18px}
#toeform-body #checkout-area #order_review_heading{margin-top:20px}
#toeform-body #checkout-area #order_review{min-width:0}
#toeform-body #account-area .woocommerce-form-login{background:var(--soft);padding:clamp(14px,1.7vw,25px)}
body.logged-in .toeform-account-layout{display:block}
body.logged-in .toeform-account-layout .account-photo{display:none}
@media(min-width:920px){
 #toeform-body #cart-area>.woocommerce:has(.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:16px clamp(22px,4vw,55px);align-items:start}
 #toeform-body #cart-area .woocommerce-notices-wrapper{grid-column:1/-1}
 #toeform-body #cart-area .cart-collaterals{grid-column:2;width:100%;margin:0}
 #toeform-body #cart-area .cart-collaterals .cart_totals h2{font-size:clamp(29px,3.1vw,47px);margin-bottom:10px}
 #toeform-body #cart-area .shop_table td.product-name{overflow-wrap:anywhere}
 #toeform-body #checkout-area form.checkout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:0 clamp(22px,4vw,55px);align-items:start}
 #toeform-body #checkout-area #customer_details{grid-column:1;grid-row:1/3}
 #toeform-body #checkout-area #order_review_heading{grid-column:2;grid-row:1;margin:0;background:var(--soft);padding:20px 18px 10px}
 #toeform-body #checkout-area #order_review{grid-column:2;grid-row:2;background:var(--soft);padding:0 18px 18px}
 #toeform-body #checkout-area #order_review :is(.shop_table,#payment){margin-top:0}
}
