/* Native Woo controls inherit the accepted type, rule and paper treatment. */
#content > .slime-root { display:block; }
#dn-page-content { min-height:40vh; }
.slime-root .woocommerce { font-family:var(--body-face); color:var(--ink); }
.slime-root .woocommerce input.input-text,.slime-root .woocommerce select,.slime-root .woocommerce textarea { font:inherit; color:inherit; border:1px solid var(--line); background:var(--paper-light); padding:12px; min-height:46px; max-width:100%; }
.slime-root .woocommerce button.button,.slime-root .woocommerce a.button,.slime-root .single_add_to_cart_button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:13px 24px; background:var(--petrol); color:#fff; font:700 16px var(--body-face); border:1px solid var(--petrol); border-radius:0; cursor:pointer; }
.slime-root form.cart { display:flex; gap:12px; align-items:end; margin-block:22px; }
.slime-root form.cart .qty { width:76px; min-height:48px; font:inherit; border:1px solid var(--line); background:var(--paper-light); padding:10px; }
.slime-root .woocommerce table.shop_table { border:0; border-collapse:collapse; width:100%; }
.slime-root .woocommerce table.shop_table th,.slime-root .woocommerce table.shop_table td { border-bottom:1px solid var(--line); padding:18px 12px; text-align:left; }
.slime-root .woocommerce table.shop_table img { width:96px; height:96px; object-fit:contain; }
.slime-root .woocommerce .cart-collaterals { display:flex; justify-content:flex-end; margin-top:32px; }
.slime-root .woocommerce .cart_totals { float:none; width:min(100%,460px); background:#e1e8e6; padding:26px; }
.slime-root .woocommerce .cart_totals h2,.slime-root .woocommerce h3 { font:500 30px var(--display); margin-bottom:18px; }
.slime-root .woocommerce .col2-set { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.slime-root .woocommerce .col2-set .col-1,.slime-root .woocommerce .col2-set .col-2 { float:none; width:auto; }
.slime-root .woocommerce .form-row { padding:0; margin-bottom:18px; }
.slime-root .woocommerce label { display:block; margin-bottom:6px; line-height:1.5; }
.slime-root .woocommerce #order_review { background:#e1e8e6; padding:24px; }
.slime-root .woocommerce #payment { background:transparent; }
.slime-root .woocommerce ul { list-style:none; }
.slime-root .woocommerce-error,.slime-root .woocommerce-message,.slime-root .woocommerce-info { margin:16px 0; padding:16px; border:1px solid var(--line); background:#e1e8e6; line-height:1.5; }
.slime-root .woocommerce .product-remove a { display:flex; align-items:center; justify-content:center; width:44px; height:44px; }
.slime-root #customer_login { max-width:900px; margin:auto; }
.slime-root .woocommerce form.login,.slime-root .woocommerce form.register { border:1px solid var(--line); padding:24px; }
@media(max-width:800px){.slime-root .woocommerce .col2-set{grid-template-columns:1fr}.slime-root .woocommerce table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--line);padding:12px 0}.slime-root .woocommerce table.shop_table_responsive thead{display:none}.slime-root .woocommerce table.shop_table_responsive td{display:flex;justify-content:space-between;align-items:center;gap:14px;border:0;padding:9px 0}.slime-root .woocommerce table.shop_table_responsive td::before{content:attr(data-title);font-weight:700}.slime-root .woocommerce .cart_totals{padding:20px;width:100%}.slime-root .woocommerce .cart-collaterals{display:block}.slime-root form.cart{flex-wrap:wrap}}
/* Keep native Woo output in the accepted page composition. */
.slime-root #product-add-cart .single_add_to_cart_button { background:var(--petrol); color:var(--paper-light); border:1px solid var(--petrol); border-radius:0; font:750 16px var(--body-face); padding:13px 22px; min-height:48px; }
.slime-root .stock-search label.field:has(input[type=search]) { grid-column:1 / -1; }
@media(min-width:801px){.slime-root .stock-search label.field:has(input[type=search]){grid-column:auto}}
.slime-root .stock-search .button { background:var(--petrol); color:var(--paper-light); }
.slime-root .native-cart .woocommerce { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,.42fr); gap:clamp(25px,4vw,65px); align-items:start; }
.slime-root .native-cart .woocommerce-notices-wrapper { grid-column:1 / -1; }
.slime-root .native-cart .woocommerce-cart-form { min-width:0; }
.slime-root .native-cart .cart-collaterals { display:block; margin:0; }
.slime-root .native-cart .cart_totals { width:100%; border-top:3px solid var(--petrol); }
.slime-root .native-cart .cart_totals h2 { font-size:34px; }
.slime-root .native-cart table.cart thead { display:none; }
.slime-root .native-cart table.cart tbody tr { display:grid; grid-template-columns:44px 90px minmax(100px,1fr) 78px 78px; grid-template-areas:'remove photo name qty sum' 'remove photo price qty sum'; align-items:center; border-top:1px solid var(--line); padding-block:20px; }
.slime-root .native-cart table.cart td { border:0; padding:3px 6px; }
.slime-root .native-cart .product-remove { grid-area:remove; }
.slime-root .native-cart .product-thumbnail { grid-area:photo; }
.slime-root .native-cart .product-name { grid-area:name; font:600 24px/1.05 var(--display); }
.slime-root .native-cart .product-price { grid-area:price; font:400 15px/1.5 var(--body-face); }
.slime-root .native-cart .product-quantity { grid-area:qty; }
.slime-root .native-cart .product-quantity .qty { width:65px; min-height:44px; padding:8px; font:inherit; }
.slime-root .native-cart .product-subtotal { grid-area:sum; font:750 16px/1.5 var(--body-face); }
.slime-root .native-cart table.cart tbody tr:has(.actions) { display:block; border:0; padding-top:10px; }
.slime-root .native-cart .actions { display:block; text-align:right; }
.slime-root .native-cart .coupon { display:none; }
.slime-root .native-cart .cart_totals table.shop_table th,.slime-root .native-cart .cart_totals table.shop_table td { padding:12px 0; font:400 15px/1.5 var(--body-face); }
.slime-root .native-cart .wc-proceed-to-checkout a.checkout-button { background:var(--petrol); color:var(--paper-light); border-radius:0; font:750 16px var(--body-face); padding:15px; width:100%; }
.slime-root .native-checkout .woocommerce-form-coupon-toggle { display:none; }
.slime-root .native-checkout form.checkout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.47fr); gap:0 clamp(28px,5vw,72px); align-items:start; }
.slime-root .native-checkout #customer_details { display:block; grid-column:1; grid-row:1 / 4; background:var(--paper-light); border-top:1px solid var(--line); padding:26px; }
.slime-root .native-checkout #customer_details .col-1,.slime-root .native-checkout #customer_details .col-2 { float:none; width:100%; }
.slime-root .native-checkout #order_review_heading { grid-column:2; grid-row:1; margin:0; padding:23px 24px 0; border-top:3px solid var(--petrol); background:#e1e8e6; font:600 34px/1.1 var(--display); }
.slime-root .native-checkout #order_review { grid-column:2; grid-row:2; padding:16px 24px 24px; }
.slime-root .native-checkout #order_review table th,.slime-root .native-checkout #order_review table td { padding:11px 0; font:400 15px/1.5 var(--body-face); }
.slime-root .native-checkout .woocommerce-billing-fields h3 { font:600 34px/1.1 var(--display); }
.slime-root .native-checkout .form-row input.input-text { width:100%; }
.slime-root .native-account #customer_login { display:block; max-width:640px; margin:0; }
.slime-root .native-account #customer_login > div { width:100%; float:none; background:var(--paper-light); border-top:1px solid var(--line); padding:clamp(22px,3vw,38px); }
.slime-root .native-account #customer_login h2 { font:600 34px/1.1 var(--display); }
.slime-root .native-account .woocommerce form.login,.slime-root .native-account .woocommerce form.register { border:0; padding:20px 0 0; margin:0; }
.slime-root .native-account .woocommerce input.input-text { width:100%; }
.slime-root .native-account .account-switch { width:min(100%,640px); margin:0; background:var(--paper-light); padding:8px 24px; }
.slime-root .native-account .account-switch button { background:transparent; border:0; color:var(--ink); font:750 16px var(--body-face); min-height:44px; padding:6px 0; cursor:pointer; }
.slime-root .native-account .account-switch button[aria-pressed=true] { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:800px){
 .slime-root .native-cart .woocommerce{display:block}
 .slime-root .native-cart table.cart tbody tr{grid-template-columns:44px 68px minmax(0,1fr) 68px;grid-template-areas:'remove photo name qty' 'remove photo price sum';gap:3px 4px;padding-block:16px}
 .slime-root .native-cart table.cart td{display:block;text-align:left!important}
 .slime-root .native-cart table.cart td::before{display:none}
 .slime-root .native-cart .product-name{font-size:23px}
 .slime-root .native-cart .product-thumbnail img{width:68px;height:88px}
 .slime-root .native-cart .product-quantity .qty{width:60px}
 .slime-root .native-cart .cart-collaterals{margin-top:24px}
 .slime-root .native-checkout form.checkout{display:block}
 .slime-root .native-checkout #customer_details{padding:22px 18px}
 .slime-root .native-checkout #order_review_heading{margin-top:24px}
 .slime-root .native-checkout .form-row-first,.slime-root .native-checkout .form-row-last{width:100%;float:none}
 .slime-root .native-account #customer_login>div{padding:24px}
}

/* Resolve Woo's higher-order responsive table and totals rules locally. */
#native-cart .cart-collaterals { width:100%; }
#native-cart .cart-collaterals .cart_totals { width:100%; float:none; }
#native-cart .woocommerce-notices-wrapper:empty { display:none; }
#native-cart .woocommerce:has(.cart-empty) { display:block; }
#native-cart button[name=update_cart] { color:#fff!important; background:#163d46; }
#native-cart button[name=update_cart]:disabled { color:#fff!important; opacity:.65; }
@media(max-width:800px){
 #native-cart table.cart td.product-thumbnail { display:block!important; }
 #native-cart .cart_totals table.shop_table td { display:block; text-align:right!important; }
 #native-cart .cart_totals table.shop_table td:before { display:none; }
 #native-cart .cart_totals table.shop_table tr { display:table-row; }
 #native-cart .cart_totals table.shop_table th { display:table-cell; width:30%; }
 #native-cart .cart_totals table.shop_table td { display:table-cell; width:70%; }
 #native-cart .cart_totals .shipping-calculator-button { display:inline-block; }
}

@media(max-width:380px){
 #native-cart table.cart tbody tr:not(:has(.actions)){grid-template-columns:44px 58px minmax(0,1fr) 68px;grid-template-areas:'remove photo name name' 'remove photo price qty' '. . sum sum';gap:8px 4px}
 #native-cart .product-name{font-size:22px;overflow-wrap:anywhere}
 #native-cart .product-thumbnail img{width:58px;height:78px}
 #native-cart .product-subtotal{text-align:right!important}
}

#native-cart table.cart td.product-remove { padding:0; }
