/* CabinetryStock Save Cart */
.cs-sc-hidden { display: none !important; }
.cs-sc-panel { border: 1px solid #e2e2e2; border-radius: 6px; padding: 14px 16px; margin: 0 0 24px; background: #fafafa; }
.cs-sc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cs-sc-title { font-weight: 600; }
.cs-sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-sc-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.cs-sc-row input[type="text"] { flex: 1 1 240px; min-width: 0; }
.cs-sc-guest { margin: 12px 0 0; }
.cs-sc-link { font-size: .9em; text-decoration: underline; }
.cs-sc-msg:empty { display: none; }
.cs-sc-msg { margin-top: 12px; padding: 8px 12px; border-radius: 4px; }
.cs-sc-msg-success { background: #edf7ed; color: #1e4620; }
.cs-sc-msg-notice { background: #fff8e1; color: #5d4200; }
.cs-sc-msg-error { background: #fdecea; color: #611a15; }
.cs-sc-list { margin-top: 12px; border-top: 1px solid #e2e2e2; }
.cs-sc-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee; }
.cs-sc-meta { font-size: .88em; opacity: .75; }
.button.cs-sc-secondary { background: transparent; border: 1px solid currentColor; color: inherit; }
.button.cs-sc-danger { background: transparent; border: 1px solid #b32d2e; color: #b32d2e; }
.cs-sc-classic-slot { width: 100%; }
.cs-sc-classic-slot .cs-sc-panel { margin: 0; }

/* My Account */
.cs-sc-account h3 { margin-top: 1.5em; }
.cs-sc-save-form { padding: 14px 16px; border: 1px solid #e2e2e2; border-radius: 6px; background: #fafafa; }
.cs-sc-save-form h3 { margin-top: 0; }
.cs-sc-card { border: 1px solid #e2e2e2; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.cs-sc-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.cs-sc-inline { display: inline; margin: 0; }
.cs-sc-items { margin-top: 12px; overflow-x: auto; }
.cs-sc-table { width: 100%; }
.cs-sc-attrs { font-size: .85em; opacity: .75; }
.cs-sc-unavailable { color: #b32d2e; }
@media (max-width: 600px) {
	.cs-sc-actions .button { flex: 1 1 auto; text-align: center; }
}
.cs-sc-label { display: block; margin: 12px 0 0; font-weight: 600; }
.cs-sc-label + .cs-sc-row { margin-top: 6px; }
.cs-sc-eyebrow { display: block; font-size: .75em; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }

/* Brand headings in the cart table and checkout order summary */
.cs-brand-h--row td{padding:18px 0 8px!important;font-weight:700;font-size:.8em;letter-spacing:.06em;text-transform:uppercase;border-top:2px solid #e2e2e2}
tr.cs-brand-h--row:first-child td{border-top:0;padding-top:4px!important}
.cs-brand-h--sum{font-weight:700;font-size:.75em;letter-spacing:.06em;text-transform:uppercase;margin:14px 0 6px;padding-top:10px;border-top:1px solid #e2e2e2}

/* v1.6.0 compact toolbar (cart + checkout) */
.cs-sc-panel{padding:10px 14px;margin:0 0 18px}
.cs-sc-bar{gap:8px 14px}
.cs-sc-title{font-weight:600;font-size:.9em}
.cs-sc-bar .cs-sc-actions{gap:8px 14px}
.cs-sc-bar .button{padding:7px 14px!important;min-height:0!important;line-height:1.3!important;font-size:12px!important}
.cs-sc-bar .cs-sc-save-toggle{background:#1f1f1f!important;color:#fff!important;border-color:#1f1f1f!important}
.cs-sc-textlink{background:none!important;border:0!important;padding:0!important;min-height:0!important;font-size:.85em!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;text-decoration:underline;cursor:pointer;color:inherit;box-shadow:none!important}
.cs-sc-danger-link{color:#b32d2e!important}
.cs-sc-link{font-size:.85em}
@media (max-width:600px){
	.cs-sc-title{flex-basis:100%}
	.cs-sc-bar .cs-sc-actions .button{flex:0 0 auto!important}
}
/* SKU under each product name */
.cs-sku{font-size:.78em;opacity:.7;margin:2px 0 4px;letter-spacing:.02em}

/* Checkout: no "Additional order information" step (project name box) and no order-note box.
   The project name still reaches the order from the saved/loaded project (the field stays registered, just not shown). */
.wp-block-woocommerce-checkout-additional-information-block,
.wp-block-woocommerce-checkout-order-note-block{display:none!important}

/* Checkout: Save Cart panel sits under the Place Order button */
.cs-sc-checkout-slot{margin-top:18px}
.cs-sc-checkout-slot .cs-sc-panel{margin:0}

/* Cart: Save Cart panel sits under the Proceed to Checkout button (narrow sidebar) */
.cs-sc-cart-slot{margin-top:16px}
.cs-sc-cart-slot .cs-sc-panel{margin:0}
.cs-sc-cart-slot .cs-sc-title{flex-basis:100%}

/* Checkout order summary: compact review list (name, SKU, qty, price). Full details stay on the cart page. */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-sale-badge{display:none!important}

/* v1.8.0 */
/* Phones: WooCommerce repeats the whole order summary above Place Order; only the collapsible one at the top stays. */
.wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block{display:none!important}

/* Checkout order summary: more than 4 products show the first few and a "Show all N products" link, so the totals
   sit near Place Order instead of below a long list. */
.cs-sum-long>.wc-block-components-order-summary__content{display:block!important;width:100%} /* WooCommerce renders it as a table, which ignores max-height */
.cs-sum-long:not(.cs-sum-open)>.wc-block-components-order-summary__content{max-height:250px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
.cs-sum-toggle{display:block!important;width:100%!important;margin:6px 0 0!important;padding:8px 0!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important;color:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.3!important;text-transform:none!important;letter-spacing:0!important;text-decoration:underline;text-align:center;cursor:pointer}

/* Cart totals: added Subtotal and Freight lines */
.cs-cart-lines .wc-block-components-totals-item+.wc-block-components-totals-item{margin-top:8px}
.cs-cart-lines .cs-line-muted{font-size:.9em;opacity:.75}

/* Desktop cart: the totals and Proceed to Checkout stay in view while scrolling a long cart (only when the window
   is tall enough to show the whole box). */
@media (min-width:1025px) and (min-height:800px){
	.wc-block-cart.is-large .wc-block-cart__sidebar{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 110px);align-self:flex-start}
}
/* Desktop checkout: once the summary is short enough WooCommerce keeps it in view on its own (is-sticky); on tall
   windows start it below the theme's sticky header so the "Order summary" title is not hidden. */
@media (min-width:1025px) and (min-height:800px){
	.wc-block-checkout__sidebar.is-sticky{top:calc(var(--wp-admin--admin-bar--height,0px) + 110px)!important}
}

/* Shipping options: the price column no longer takes half the width, so long names (pickup address) do not squeeze */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label{flex:0 0 auto!important;margin-left:12px}

/* v1.8.1: phones: the order total right above Place Order (the full summary copy there is hidden) */
.cs-place-total{display:none}
.wc-block-checkout.is-mobile .cs-place-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 0 12px;padding-top:12px;border-top:1px solid #e2e2e2}
.cs-place-total__label{font-size:15px;font-weight:600}
.cs-place-total__value{font-size:20px;font-weight:700;white-space:nowrap}

/* v1.9.0 */
/* Empty cart: the panel lists saved projects to load (no Save / Clear) */
.cs-sc-panel--empty .cs-sc-list{margin-top:8px}
/* Cart totals: the Freight line already says it; drop WooCommerce's "Shipping will be calculated at checkout" note */
.wc-block-cart:has(.cs-cart-lines .cs-line-muted) .wc-block-components-totals-footer-item-shipping{display:none}
