/* CFS v0.2.9 — scoped to Woo classic cart/checkout. Bulk THCA-inspired clarity, not a template fork. */
body.woocommerce-cart .cfs-content-main,
body.woocommerce-checkout .cfs-content-main{padding:30px 0 58px}
body.woocommerce-cart .cfs-content-wrap,
body.woocommerce-checkout .cfs-content-wrap{width:min(1280px,calc(100% - 48px));max-width:1280px;padding:0}
body.woocommerce-cart .cfs-entry-content.prose,
body.woocommerce-checkout .cfs-entry-content.prose{max-width:none;width:100%}
body.woocommerce-cart .cfs-entry-header,
body.woocommerce-checkout .cfs-entry-header{margin:0 0 24px}
body.woocommerce-cart .cfs-entry-header h1,
body.woocommerce-checkout .cfs-entry-header h1{font-size:clamp(2rem,3.4vw,2.6rem);margin:8px 0 0}
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce{max-width:none;margin:0;padding:0}
body.woocommerce-cart .woocommerce::after,
body.woocommerce-checkout .woocommerce::after{content:"";display:block;clear:both}
/* Cart: visual hierarchy and split comparable to Bulk THCA cart. */
body.woocommerce-cart .woocommerce-cart-form{float:left;width:66%;margin:0 0 24px}
body.woocommerce-cart .cart-collaterals{float:right;width:31%;margin:0 0 24px}
body.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:100%;border:1px solid #ddd9d2;background:#fff;padding:20px 22px;border-radius:6px}
body.woocommerce-cart .cart-collaterals .cart_totals h2{font-size:1.35rem;margin:0 0 14px}
body.woocommerce-cart .woocommerce-cart-form table.shop_table{width:100%;table-layout:auto;margin:0;border:0;border-top:1px solid #ddd9d2;border-radius:0;background:#fff}
body.woocommerce-cart table.shop_table thead th{font-size:.79rem;color:#4b4b49;font-weight:700;white-space:nowrap;border-bottom:1px solid #ddd9d2}
body.woocommerce-cart table.shop_table td{border-bottom:1px solid #e9e7e2;vertical-align:middle;padding:14px 8px}
/* Remove action is last in each cart row (after subtotal), not the legacy left X. */
body.woocommerce-cart .woocommerce-cart-form table.shop_table th.product-remove,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove{width:50px;min-width:46px;text-align:right!important;padding-left:8px;padding-right:4px}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove{
    display:inline-flex!important;align-items:center;justify-content:center;
    width:36px!important;height:36px!important;min-width:36px;
    margin-left:auto;margin-right:0;border:1px solid transparent!important;
    border-radius:7px!important;background:transparent!important;
    color:#66717c!important;font-size:0!important;text-decoration:none!important;
    transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove .cfs-cart-trash-icon{display:block;width:19px;height:19px;flex:none;pointer-events:none}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove:hover{background:#fff0ed!important;color:#ad392b!important;border-color:#f5d8d0!important}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove:focus-visible{outline:2px solid #265889!important;outline-offset:2px}
body.woocommerce-cart table.shop_table .product-thumbnail{width:92px;min-width:82px}
body.woocommerce-cart table.shop_table .product-thumbnail img{display:block!important;width:78px!important;height:78px!important;max-width:78px!important;object-fit:cover;border-radius:5px;background:#f1eee8;border:1px solid #e4e0d8}
body.woocommerce-cart table.shop_table .product-name{font-size:.86rem;font-weight:600;line-height:1.4;min-width:170px}
body.woocommerce-cart table.shop_table .product-name a{color:#25496c;text-decoration:none}
body.woocommerce-cart table.shop_table .product-name a:hover{text-decoration:underline}
body.woocommerce-cart table.shop_table .product-name dl.variation{margin:5px 0 0;font-size:.76rem;font-weight:400;color:#666}
body.woocommerce-cart table.shop_table .product-name dl.variation dt{font-weight:600}
body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal{font-size:.85rem;white-space:nowrap;font-variant-numeric:tabular-nums}
body.woocommerce-cart table.shop_table .product-quantity .quantity{display:inline-flex;align-items:center}
body.woocommerce-cart table.shop_table .product-quantity input.qty{width:70px;min-height:36px;text-align:center;padding:4px;border:1px solid #d7d9dc;background:#fff;border-radius:4px;font:500 .88rem Inter,Arial,sans-serif}
body.woocommerce-cart table.shop_table .cfs-price-unit{font-weight:400;color:#777;white-space:nowrap;font-size:.74rem}
body.woocommerce-cart table.shop_table td.actions{padding:12px 4px;border:0}
body.woocommerce-cart table.shop_table td.actions .coupon{display:none!important}
body.woocommerce-cart table.shop_table td.actions button[name="update_cart"]{font-size:.78rem;background:#ecebea;border-radius:4px}
body.woocommerce-cart .cart_totals table.shop_table{margin:0 0 15px;border:0;width:100%}
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td{padding:12px 0;border-bottom:1px solid #ebe8e2;font-size:.87rem}
body.woocommerce-cart .cart_totals table.shop_table td{text-align:right}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout{padding:14px 0 0}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{display:block;width:100%;text-align:center;font-size:.95rem;line-height:1.4;padding:15px 16px;margin:0;border-radius:5px;color:#fff!important;background:#e87524!important}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover{background:#cf611c!important}
/* Checkout: contact left, itemized order and request button right. */
body.woocommerce-checkout form.checkout.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(360px,.94fr);column-gap:42px;align-items:start}
body.woocommerce-checkout form.checkout #customer_details{grid-column:1;grid-row:1;margin:0;min-width:0;width:100%}
body.woocommerce-checkout form.checkout #customer_details.col2-set::before,
body.woocommerce-checkout form.checkout #customer_details.col2-set::after{display:none}
body.woocommerce-checkout form.checkout #customer_details .col-1,
body.woocommerce-checkout form.checkout #customer_details .col-2{float:none;width:100%;margin:0}
body.woocommerce-checkout form.checkout #customer_details .col-2{margin-top:20px}
body.woocommerce-checkout form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0 0 8px;font-size:1.35rem;align-self:start}
body.woocommerce-checkout form.checkout #order_review{grid-column:2;grid-row:1;margin-top:43px;min-width:0;padding:0}
body.woocommerce-checkout form.checkout #order_review .shop_table{width:100%;border:0;border-top:1px solid #ddd9d2;border-radius:0;margin:0 0 18px}
body.woocommerce-checkout form.checkout #order_review .shop_table th,
body.woocommerce-checkout form.checkout #order_review .shop_table td{font-size:.83rem;padding:13px 9px;border-bottom:1px solid #e6e4e0;vertical-align:top}
body.woocommerce-checkout form.checkout #order_review .shop_table td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.woocommerce-checkout form.checkout #order_review .shop_table .product-name{font-weight:500;line-height:1.5}
body.woocommerce-checkout form.checkout #customer_details h3{font-size:1.35rem;margin:0 0 16px}
body.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper::after{content:"";display:block;clear:both}
body.woocommerce-checkout form.checkout .form-row{margin-bottom:13px}
body.woocommerce-checkout form.checkout .form-row label{font-size:.78rem;color:#444;margin-bottom:5px;font-weight:650}
body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout textarea,
body.woocommerce-checkout form.checkout .select2-selection{border:1px solid #d5d9df;background:#fff;border-radius:4px;box-shadow:none}
body.woocommerce-checkout form.checkout input.input-text{min-height:43px}
body.woocommerce-checkout form.checkout textarea{min-height:94px}
body.woocommerce-checkout form.checkout .woocommerce-additional-fields{padding:2px 0 0}
body.woocommerce-checkout form.checkout .woocommerce-additional-fields h3{display:none}
body.woocommerce-checkout form.checkout #payment{border:0;border-radius:0;background:#fff;padding:0;margin:8px 0 0}
body.woocommerce-checkout form.checkout #payment .wc_payment_methods{background:#f4f5f6;padding:14px 16px;border:0;border-radius:5px;margin-bottom:15px}
body.woocommerce-checkout form.checkout #payment .wc_payment_methods li{margin:0}
body.woocommerce-checkout form.checkout #payment .wc_payment_methods label{font-size:.88rem;font-weight:700}
body.woocommerce-checkout form.checkout #payment .payment_box{font-size:.8rem;line-height:1.5;background:none;padding:6px 0 0;margin:0;color:#555}
body.woocommerce-checkout form.checkout #payment .payment_box::before{display:none}
body.woocommerce-checkout form.checkout #payment .form-row.place-order{padding:0;margin:0}
body.woocommerce-checkout form.checkout #place_order{float:none;display:block;width:100%;padding:15px 18px;border-radius:5px;background:#e87524!important;color:#fff!important;font-size:.96rem;font-weight:750;white-space:normal;line-height:1.35}
body.woocommerce-checkout form.checkout #place_order:hover{background:#cf611c!important}
body.woocommerce-checkout form.checkout #payment .woocommerce-privacy-policy-text{color:#666;font-size:.75rem;line-height:1.55;margin:5px 0 14px}
body.woocommerce-checkout form.checkout #payment .woocommerce-privacy-policy-text p{margin:0 0 9px}
/* One restrained status summary; native Woo markup kept for notices and accessibility. */
body.woocommerce-cart .woocommerce-info.cfs-request-notice,
body.woocommerce-checkout .woocommerce-info.cfs-request-notice{clear:both;border:0;border-left:3px solid #265889;background:#f2f5f8;color:#34383b;padding:15px 18px;margin:0 0 12px;font-size:.84rem;line-height:1.65}
body.woocommerce-cart .woocommerce-info.cfs-request-notice::before,
body.woocommerce-checkout .woocommerce-info.cfs-request-notice::before{display:none}
body.woocommerce-cart .cfs-pro-check,
body.woocommerce-checkout .cfs-pro-check{clear:both;margin:0 0 24px;padding:12px 16px;background:#fffaf4;border:1px solid #efdfcd;border-radius:4px;color:#4e473e;font-size:.8rem;line-height:1.6}
body.woocommerce-cart .cfs-pro-check a,
body.woocommerce-checkout .cfs-pro-check a{color:#265889;font-weight:700;text-decoration:underline}
body.woocommerce-cart .woocommerce-message{margin:0 0 16px;font-size:.82rem;padding:12px 18px 12px 48px}
body.woocommerce-cart .woocommerce-message a.button{padding:8px 12px;line-height:1.2;font-size:.78rem}
body.woocommerce-checkout .woocommerce-form-coupon-toggle{display:none!important}
@media(max-width:970px){
  body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals{float:none;width:100%}
  body.woocommerce-cart .cart-collaterals .cart_totals{max-width:none}
  body.woocommerce-checkout form.checkout.woocommerce-checkout{grid-template-columns:minmax(0,1fr);gap:20px}
  body.woocommerce-checkout form.checkout #customer_details,
  body.woocommerce-checkout form.checkout #order_review_heading,
  body.woocommerce-checkout form.checkout #order_review{grid-column:1;grid-row:auto}
  body.woocommerce-checkout form.checkout #order_review{margin-top:0}
  body.woocommerce-checkout form.checkout #order_review_heading{margin-top:10px}
}
@media(max-width:690px){
  body.woocommerce-cart .cfs-content-wrap,body.woocommerce-checkout .cfs-content-wrap{width:calc(100% - 24px)}
  body.woocommerce-cart .cfs-entry-header h1,body.woocommerce-checkout .cfs-entry-header h1{font-size:1.95rem}
  body.woocommerce-cart table.shop_table .product-thumbnail{width:70px;min-width:70px}
  body.woocommerce-cart table.shop_table .product-thumbnail img{width:58px!important;height:58px!important;max-width:58px!important}
  body.woocommerce-cart table.shop_table .product-name{min-width:0}
  body.woocommerce-cart table.shop_table .product-price{font-size:.78rem}
  body.woocommerce-cart table.shop_table td{padding:10px 4px}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table{table-layout:auto}
  body.woocommerce-cart table.shop_table .product-quantity input.qty{width:62px}
  body.woocommerce-checkout form.checkout #order_review .shop_table th,
  body.woocommerce-checkout form.checkout #order_review .shop_table td{padding:10px 6px}
}

/* v0.2.10 — discreet account hint in quote summary; Woo cart-update notices remain visible. */
body.woocommerce-cart .cfs-pro-inline{font-size:.78rem;line-height:1.5;color:#62676a;margin:10px 0 0}
body.woocommerce-cart .cfs-pro-inline a{color:#265889;text-decoration:underline;font-weight:650}

/* v0.2.13 — clear carton totals and automatic quote-cart updates. */
body.woocommerce-cart .product-name dl.variation dt.variation-Totalsquarefootage,
body.woocommerce-cart .product-name dl.variation dd.variation-Totalsquarefootage{
    color:#263f52;font-weight:750;
}
body.woocommerce-cart .product-name .cfs-cart-total-sqft{
    font-size:.88rem;font-weight:800;font-variant-numeric:tabular-nums;
}
body.woocommerce-cart .product-quantity .cfs-cart-qty-unit{
    display:block;color:#666;font-size:.69rem;line-height:1.3;margin-top:4px;text-align:center;
}
body.woocommerce-cart .cfs-cart-update-status{
    font-size:.76rem;color:#475565;line-height:1.45;margin:8px 0 0;
}
body.woocommerce-cart .cfs-cart-update-status[data-status="error"]{color:#a32a20;font-weight:650}
body.woocommerce-cart .cfs-cart-update-status[data-status="working"]{color:#315b7f}

/* v0.2.16 — on stacked mobile cart rows, keep remove in the top-right corner. */
@media(max-width:767px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{position:relative}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove{
    position:absolute!important;top:8px;right:8px;width:auto!important;min-width:0!important;
    display:block!important;padding:0!important;border:0!important;background:transparent!important;
    text-align:right!important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name{padding-right:49px!important}
}
