/* Cape Cabinet Depot: cart grouped by door style ([ccd_cart]). */
.ccd-cart{--ccd-navy:#263a95;--ccd-navy-dk:#1a2a72;--ccd-ink:#1f2433;--ccd-muted:#5e5a52;--ccd-line:#efe3cf;--ccd-edge:#e6d6bc;--ccd-tan:#f6ebd8;--ccd-red:#8c2a1e;--ccd-green:#1e6b3a;max-width:1280px;margin:0 auto;padding:0 24px 24px;box-sizing:border-box;color:var(--ccd-ink);font-family:"Nunito Sans",sans-serif;text-align:left}
.ccd-cart *,.ccd-cart *::before,.ccd-cart *::after{box-sizing:border-box}
.ccd-cart a{color:var(--ccd-navy)}
.ccd-cart a:hover{color:var(--ccd-navy-dk)}

/* Head */
.ccd-cart__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin:0 0 18px}
.ccd-cart__title{margin:0;font-family:Poppins,sans-serif;font-weight:500;font-size:2.4rem;line-height:1.15;color:var(--ccd-ink)}
.ccd-cart__count{margin:4px 0 0;color:var(--ccd-muted);font-size:1rem}
.ccd-cart__actions{display:flex;flex-wrap:wrap;gap:10px}
.ccd-cart .ccd-cart__btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid var(--ccd-navy);border-radius:6px;background:transparent;color:var(--ccd-navy);font:inherit;font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;line-height:1.2}
.ccd-cart .ccd-cart__btn:hover{background:var(--ccd-navy);color:#ffeed5}

/* Job name / PO */
.ccd-cart__job{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 22px;padding:14px 18px;background:#fff;border:1px solid var(--ccd-edge);border-radius:10px}
.ccd-cart__job label{font-weight:800;margin:0}
.ccd-cart__job input{flex:1 1 240px;max-width:420px;min-height:44px;padding:8px 12px;border:1px solid #cdbb9c;border-radius:6px;background:#fffdf8;font:inherit;color:var(--ccd-ink)}
.ccd-cart__job input:focus{outline:2px solid var(--ccd-navy);outline-offset:1px}
.ccd-cart__job-note{font-size:.875rem;color:var(--ccd-muted)}
.ccd-cart__job-note.is-saved{color:var(--ccd-green);font-weight:700}

/* Layout */
.ccd-cart__layout{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.ccd-cart__list{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:22px;margin:0}
.ccd-cart__side{flex:1 1 320px;max-width:400px;position:sticky;top:24px;margin:0;float:none;width:auto}
.woocommerce .ccd-cart .cart-collaterals .cart_totals,.ccd-cart .cart-collaterals .cart_totals{float:none;width:100%;margin:0}
.ccd-cart .woocommerce-cart-form__cart-item p:empty{display:none}
/* The theme's body{overflow-x:hidden} makes body a scroll box, which stops position:sticky. clip hides the same overflow without that. */
body.woocommerce-cart{overflow-x:clip;overflow-y:visible}
.ccd-cart__hidden{display:none}

/* Style group */
.ccd-cart__group{background:#fff;border:1px solid var(--ccd-edge);border-radius:10px;overflow:hidden}
.ccd-cart__ghead{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 20px;background:var(--ccd-tan);border-bottom:1px solid var(--ccd-edge)}
.ccd-cart__swatch{flex:none;width:48px;height:48px;border-radius:6px;border:1px solid rgba(0,0,0,.15);background:#e4d9c4 center/cover no-repeat}
.ccd-cart__gname{flex:1 1 180px;min-width:0;display:flex;flex-direction:column}
.ccd-cart__eyebrow{font-size:.75rem;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--ccd-muted)}
.ccd-cart__style{font-family:Poppins,sans-serif;font-size:1.3rem;font-weight:600;line-height:1.25}
.ccd-cart__gtotal{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.ccd-cart__gtotal span{font-size:.875rem;color:var(--ccd-muted)}
.ccd-cart__gtotal strong{font-size:1.1rem;font-weight:800}

.ccd-cart__cols,.ccd-cart__line{display:grid;grid-template-columns:88px minmax(0,1fr) 150px 120px;gap:16px;padding:0 20px}
.ccd-cart__cols{padding-top:10px;padding-bottom:10px;border-bottom:1px solid var(--ccd-line);font-size:.75rem;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--ccd-muted)}
.ccd-cart__cols span:nth-child(3){text-align:center}
.ccd-cart__cols span:nth-child(4){text-align:right}
.ccd-cart__line{align-items:center;padding-top:16px;padding-bottom:16px;border-bottom:1px solid var(--ccd-line)}
.ccd-cart__line:last-child{border-bottom:0}
.ccd-cart__thumb{width:88px;height:88px;border:1px solid var(--ccd-line);border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ccd-cart__thumb a{display:block;width:100%;height:100%}
.ccd-cart__thumb img{width:100%!important;height:100%!important;object-fit:contain;margin:0!important;max-width:none}
.ccd-cart__info{min-width:0}
.ccd-cart__name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
.ccd-cart__name>a,.ccd-cart__name>span:first-child{font-weight:800;font-size:1.1rem;color:var(--ccd-navy-dk);text-decoration:none}
.ccd-cart__desc{color:var(--ccd-muted);font-size:.95rem}
.ccd-cart__chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.ccd-cart__chip{margin:0;padding:3px 10px;background:var(--ccd-tan);border:1px solid var(--ccd-edge);border-radius:999px;font-size:.8125rem;font-weight:600;line-height:1.4}
.ccd-cart__chip-k{font-weight:400;color:var(--ccd-muted)}
.ccd-cart__links{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:6px;font-size:.875rem;font-weight:700}
.ccd-cart__links a{display:inline-block;padding:6px 0;text-decoration:none}
.ccd-cart__links a:hover{text-decoration:underline}
.ccd-cart .ccd-cart__remove,.ccd-cart a.remove.ccd-cart__remove{color:var(--ccd-red)!important;background:none!important;width:auto!important;height:auto!important;font-size:inherit!important;line-height:inherit!important;border-radius:0!important;font-weight:700}
.ccd-cart .ccd-cart__remove:hover{color:#6a1d14!important}

.ccd-cart__qty{display:flex;flex-direction:column;align-items:center;gap:6px}
.ccd-cart__stepper{display:flex;align-items:center;border:1px solid #cdbb9c;border-radius:6px;background:#fff}
.ccd-cart .ccd-cart__step{width:40px;height:42px;padding:0;border:0;background:transparent;color:var(--ccd-navy);font-size:1.25rem;line-height:1;cursor:pointer;border-radius:6px;box-shadow:none}
.ccd-cart .ccd-cart__step:hover{background:var(--ccd-tan);color:var(--ccd-navy-dk)}
.ccd-cart__stepper .quantity{margin:0!important;display:block}
.ccd-cart__stepper .quantity input.qty{width:44px;min-height:42px;padding:0;margin:0;border:0!important;background:transparent;text-align:center;font:inherit;font-weight:800;color:var(--ccd-ink);-moz-appearance:textfield;box-shadow:none}
.ccd-cart__stepper .quantity input.qty::-webkit-outer-spin-button,.ccd-cart__stepper .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ccd-cart__each{font-size:.8125rem;color:var(--ccd-muted);white-space:nowrap}
.ccd-cart__qty-one{font-weight:800}
.ccd-cart__line-total{text-align:right;font-weight:800;font-size:1.1rem}

/* Summary */
.ccd-cart .ccd-cart__summary{width:auto;float:none;margin:0;padding:22px;background:#fff;border:1px solid var(--ccd-edge);border-radius:10px}
.ccd-cart__stitle{margin:0 0 14px!important;font-family:Poppins,sans-serif!important;font-weight:500!important;font-size:1.5rem!important;text-align:left!important;color:var(--ccd-ink)!important;background:none!important;padding:0!important;border:0!important}
.ccd-cart__bystyle{list-style:none;margin:0;padding:0 0 12px;border-bottom:1px solid var(--ccd-line);display:flex;flex-direction:column;gap:6px;font-size:.9375rem;letter-spacing:0;color:var(--ccd-muted)}
.ccd-cart__bystyle li,.ccd-cart__rows>div{display:flex;justify-content:space-between;gap:12px;margin:0}
.ccd-cart__bystyle li>span:first-child{flex:1 1 auto;min-width:0}
.ccd-cart__bystyle li>span:last-child{flex:none;white-space:nowrap}
.ccd-cart__rows{margin:0;padding:12px 0 0;display:flex;flex-direction:column;gap:10px;font-size:1rem}
.ccd-cart__rows dt{margin:0;font-weight:400}
.ccd-cart__rows dd{margin:0;font-weight:700;text-align:right}
.ccd-cart__rows .order-total{align-items:baseline;margin-top:4px;padding-top:12px;border-top:1px solid var(--ccd-line)}
.ccd-cart__rows .order-total dt{font-weight:800;font-size:1.125rem}
.ccd-cart__rows .order-total dd{font-size:1.75rem;font-weight:800}
.ccd-cart__rows .order-total dd small{display:block;font-size:.8rem;font-weight:400}
.ccd-cart__free{color:var(--ccd-green)}
.ccd-cart .wc-proceed-to-checkout{padding:16px 0 0!important;margin:0}
.ccd-cart .wc-proceed-to-checkout p{margin:0}
.ccd-cart .wc-proceed-to-checkout a.checkout-button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0 0 8px!important;padding:12px!important;background:var(--ccd-navy)!important;color:#ffeed5!important;border:0!important;border-radius:6px!important;font-family:inherit!important;font-size:1.0625rem!important;font-weight:800!important;text-decoration:none}
.ccd-cart .wc-proceed-to-checkout a.checkout-button:hover{background:var(--ccd-navy-dk)!important}
.ccd-cart__dest{margin:8px 0 0;text-align:center;font-size:.8125rem;color:var(--ccd-muted)}
.ccd-cart__promise{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--ccd-line);display:flex;flex-direction:column;gap:6px;font-size:.875rem}
.ccd-cart__promise li{margin:0;padding-left:22px;position:relative}
.ccd-cart__promise li::before{content:"";position:absolute;left:2px;top:.35em;width:10px;height:6px;border-left:2px solid var(--ccd-green);border-bottom:2px solid var(--ccd-green);transform:rotate(-45deg)}

/* Bottom bar (tablet and phone, when the summary is under the list) */
.ccd-cart__bar{display:none}
.ccd-cart.processing,.ccd-cart .blockUI.blockOverlay{cursor:wait}
.ccd-cart__layout{transition:opacity .15s}
.ccd-cart.processing .ccd-cart__layout{opacity:.55;pointer-events:none}

@media (max-width:1024px){
	.ccd-cart{padding:0 16px 96px}
	.ccd-cart__bar{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:999;padding:10px 16px;background:#fff;border-top:1px solid var(--ccd-edge);box-shadow:0 -6px 16px rgba(0,0,0,.08)}
	.ccd-cart__bar-total{flex:1;display:flex;flex-direction:column;line-height:1.2}
	.ccd-cart__bar-total>span{font-size:.75rem;color:var(--ccd-muted)}
	.ccd-cart__bar-total strong,.ccd-cart__bar-total strong .amount{font-size:1.25rem;font-weight:800;color:var(--ccd-ink)}
	.ccd-cart a.ccd-cart__bar-btn{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;background:var(--ccd-navy);color:#ffeed5;border-radius:6px;font-weight:800;text-decoration:none}
	.ccd-cart__side{max-width:none;flex-basis:100%;position:static}
}
@media (max-width:767px){
	.ccd-cart__title{font-size:1.9rem}
	.ccd-cart__actions{width:100%}
	.ccd-cart__actions .ccd-cart__btn{flex:1;padding:8px 10px;font-size:.875rem;white-space:nowrap}
	.ccd-cart__job label{font-size:1.05rem}
	.ccd-cart__job-note{font-size:.8125rem}
	.ccd-cart__gname{flex:1 1 0}
	.ccd-cart__links{margin-top:2px}
	.ccd-cart__job{padding:12px 14px}
	.ccd-cart__job input{max-width:none;flex-basis:100%}
	.ccd-cart__ghead{padding:12px 14px;gap:10px 12px}
	.ccd-cart__swatch{width:40px;height:40px}
	.ccd-cart__style{font-size:1.1rem}
	.ccd-cart__cols{display:none}
	.ccd-cart__line{grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"thumb info info" "thumb qty total";gap:10px 12px;padding:14px}
	.ccd-cart__thumb{grid-area:thumb;width:64px;height:64px;align-self:start}
	.ccd-cart__info{grid-area:info}
	.ccd-cart__qty{grid-area:qty;flex-direction:column;align-items:flex-start;gap:4px;justify-self:start}
	.ccd-cart__line-total{grid-area:total;align-self:center}
	.ccd-cart .ccd-cart__step{width:44px;height:44px}
	.ccd-cart__name>a,.ccd-cart__name>span:first-child{font-size:1.05rem}
	.ccd-cart__desc{font-size:.875rem;flex-basis:100%}
	.ccd-cart .ccd-cart__summary{padding:18px}
}
/* The site's bottom nav (56px) shows on phones only. */
@media (max-width:599px){
	.ccd-cart{padding-bottom:152px}
	.ccd-cart__bar{bottom:56px}
}

/* Print / save PDF */
.ccd-cart__print-head{display:none}
@media print{
	@page{margin:14mm}
	body{background:#fff!important}
	#wpadminbar,body>header,body>footer,.site-header,.site-footer,.elementor-location-header,.elementor-location-footer,.ccd-style-bar,.ccd-cart__actions,.ccd-cart__job,.ccd-cart__links,.ccd-cart__step,.ccd-cart__bar,.wc-proceed-to-checkout,.ccd-cart__promise,.ccd-cart__dest,.woocommerce-notices-wrapper,.grecaptcha-badge,.jet-mobile-menu,.elementor-hidden-desktop{display:none!important}
	.ccd-cart{max-width:none;padding:0;color:#000}
	.ccd-cart__print-head{display:flex;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0 0 8px;border-bottom:2px solid #000;font-size:11pt}
	.ccd-cart__thumb img{opacity:1!important;visibility:visible!important}
	.ccd-cart__layout{display:block}
	.ccd-cart__side{position:static;max-width:none;margin-top:14px}
	.ccd-cart__group,.ccd-cart__summary{border:1px solid #999;break-inside:auto}
	.ccd-cart__line{break-inside:avoid;grid-template-columns:56px minmax(0,1fr) 110px 100px;padding-top:8px;padding-bottom:8px}
	.ccd-cart__thumb{width:56px;height:56px}
	.ccd-cart__stepper{border:0}
	.ccd-cart__ghead,.ccd-cart__chip{-webkit-print-color-adjust:exact;print-color-adjust:exact}
	.ccd-cart a{color:#000;text-decoration:none}
}
