/* ==========================================================================
   Basket + checkout redesign (loads after woo-pages.css). Basket = classic shortcode,
   checkout = Fluid Checkout (fc-*). Colours: green #204F4B, gold #EEC687, ink #000507.
   ========================================================================== */

/* -------------------------------- Basket -------------------------------- */
.ssc-main .ssc-cart { max-width: 1140px; margin: 0 auto; padding: 48px 24px 80px; box-sizing: content-box; font-family: var(--wp--preset--font-family--poppins); font-size: 14px; color: #333; }
.ssc-cart > * { margin-block: 0; }
.ssc-cart h1.ssc-cart__title { margin: 0 0 28px; font-family: var(--wp--preset--font-family--pt-serif); font-size: 40px; line-height: 1.15; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--green); }
.ssc-cart .woocommerce::before, .ssc-cart .woocommerce::after { display: none; }
.ssc-cart .woocommerce:has(.woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.ssc-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.ssc-cart .woocommerce-notices-wrapper:empty { display: none; }
.ssc-cart .woocommerce-message, .ssc-cart .woocommerce-info, .ssc-cart .woocommerce-error { margin: 0 0 8px; padding: 14px 18px; border: 0; border-left: 3px solid var(--wp--preset--color--green); border-radius: 0 6px 6px 0; background: #f6f9f8; list-style: none; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ssc-cart .woocommerce-error { border-left-color: #b3261e; background: #fdf1f0; }
.ssc-cart .woocommerce-message::before, .ssc-cart .woocommerce-info::before, .ssc-cart .woocommerce-error::before { display: none; }
.ssc-cart .woocommerce-message a.button { order: 2; }

/* items as cards */
.ssc-cart table.shop_table.cart { display: block; width: 100%; margin: 0; border: 0; background: none; }
.ssc-cart table.shop_table.cart thead { display: none; }
.ssc-cart table.shop_table.cart tbody { display: flex; flex-direction: column; gap: 14px; }
.ssc-cart table.shop_table.cart tr.cart_item { display: grid; grid-template-columns: 88px minmax(0, 1fr) 96px 96px 36px; grid-template-areas: "thumb name qty subtotal remove" "thumb price qty subtotal remove"; column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px; border: 1.5px solid #dfe6e4; border-radius: 12px; background: #fff; }
.ssc-cart table.shop_table.cart tr.cart_item > td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.ssc-cart table.shop_table.cart td::before { display: none !important; }
.ssc-cart td.product-thumbnail { grid-area: thumb; }
.ssc-cart td.product-thumbnail img { display: block; width: 88px; height: 88px; max-width: none; object-fit: cover; border-radius: 8px; background: #f4f6f5; }
.ssc-cart td.product-name { grid-area: name; align-self: end; font-family: var(--wp--preset--font-family--pt-serif); font-size: 18px; line-height: 1.3; }
.ssc-cart td.product-name a { color: var(--wp--preset--color--green); text-decoration: none; }
.ssc-cart td.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ssc-cart td.product-price { grid-area: price; align-self: start; font-size: 13.5px; color: #666; }
.ssc-cart td.product-quantity { grid-area: qty; }
.ssc-cart td.product-subtotal { grid-area: subtotal; text-align: right; font-size: 16px; font-weight: 600; color: var(--wp--preset--color--ink); }
.ssc-cart td.product-remove { grid-area: remove; text-align: center; }
.ssc-cart td.product-remove a.remove { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f1f4f3; color: #7a8584 !important; font-size: 20px; line-height: 1; text-decoration: none; transition: background .15s ease, color .15s ease; }
.ssc-cart td.product-remove a.remove:hover { background: #b3261e; color: #fff !important; }
.ssc-cart .quantity input.qty { box-sizing: border-box; width: 80px; height: 46px; padding: 0 8px; border: 1.5px solid #c9d3d1; border-radius: 6px; background: #fff; font-family: var(--wp--preset--font-family--poppins); font-size: 15px; text-align: center; }

/* coupon + update row */
.ssc-cart table.shop_table.cart tr:not(.cart_item) { display: block; margin-top: 0; }
.ssc-cart table.shop_table.cart td.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 0; border: 0; background: none; }
.ssc-cart td.actions .coupon { display: flex; flex: 1 1 320px; gap: 10px; float: none; }
.ssc-cart td.actions .coupon label { display: none; }
.ssc-cart td.actions .coupon input.input-text { flex: 1 1 auto; width: auto; max-width: 240px; height: 46px; margin: 0; padding: 0 14px; border: 1.5px solid #c9d3d1; border-radius: 6px; font-family: var(--wp--preset--font-family--poppins); font-size: 14px; }
.ssc-cart td.actions button.button, .ssc-cart td.actions .coupon button { height: 46px; margin: 0; padding: 0 22px; border: 0; border-radius: 6px; background: var(--wp--preset--color--green); color: #fff; font-family: var(--wp--preset--font-family--poppins); font-size: 14px; font-weight: 500; cursor: pointer; }
.ssc-cart td.actions button.button:hover { background: var(--wp--preset--color--ink); }
.ssc-cart td.actions button[name="update_cart"] { background: transparent; color: var(--wp--preset--color--green); border: 1.5px solid var(--wp--preset--color--green); float: none; }
.ssc-cart td.actions button[name="update_cart"]:disabled { opacity: .4; cursor: not-allowed; }

/* totals card */
.ssc-cart .cart-collaterals { width: 100%; float: none; position: sticky; top: calc(var(--ssc-main-h, 84px) + 24px); }
.ssc-cart .cart_totals { float: none; width: 100%; padding: 28px; border: 1.5px solid #dfe6e4; border-radius: 12px; background: #fff; }
.ssc-cart .cart_totals h2 { margin: 0 0 18px; font-family: var(--wp--preset--font-family--pt-serif); font-size: 26px; line-height: 1.2; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--green); }
.ssc-cart .cart_totals table.shop_table { width: 100%; margin: 0 0 20px; border: 0; border-collapse: collapse; background: none; }
.ssc-cart .cart_totals table.shop_table th, .ssc-cart .cart_totals table.shop_table td { padding: 12px 0; border: 0; border-bottom: 1px solid #e6eceb; background: none; font-size: 14px; line-height: 22px; vertical-align: top; }
.ssc-cart .cart_totals table.shop_table th { width: 38%; font-weight: 600; text-align: left; color: #333; }
.ssc-cart .cart_totals table.shop_table td { text-align: right; }
.ssc-cart .cart_totals .order-total th, .ssc-cart .cart_totals .order-total td { border-bottom: 0; padding-top: 16px; font-size: 18px; color: var(--wp--preset--color--ink); }
.ssc-cart .cart_totals .order-total small { display: block; font-size: 12px; font-weight: 400; color: #7a8584; }
.ssc-cart .cart_totals a:not(.button) { color: var(--wp--preset--color--green); text-underline-offset: 3px; }
.ssc-cart .woocommerce-shipping-destination, .ssc-cart .woocommerce-shipping-calculator { font-size: 13px; color: #666; }
.ssc-cart .wc-proceed-to-checkout { padding: 0; }
.ssc-cart .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; height: 56px; margin: 0; padding: 0 24px; border: 0; border-radius: 6px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--poppins); font-size: 16px; font-weight: 600; letter-spacing: .02em; text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .14); transition: background .15s ease, transform .15s ease; }
.ssc-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--wp--preset--color--gold-hover); transform: translateY(-1px); }
ul.ssc-cart-assure { list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; line-height: 20px; color: #555; }
ul.ssc-cart-assure li { margin: 0 0 8px; padding: 0 0 0 26px; position: relative; }
ul.ssc-cart-assure li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--wp--preset--color--green); }
ul.ssc-cart-assure li::after { content: ""; position: absolute; left: 3.5px; top: 5.5px; width: 9px; height: 9px; background: #fff; -webkit-mask: url(../../icons/check.svg) center / contain no-repeat; mask: url(../../icons/check.svg) center / contain no-repeat; }
ul.ssc-cart-assure a { color: var(--wp--preset--color--green); }

/* empty basket */
.ssc-cart .cart-empty, .ssc-cart .woocommerce-info.cart-empty { font-size: 16px; }
.ssc-cart .return-to-shop a.button { display: inline-flex; align-items: center; height: 52px; padding: 0 30px; border-radius: 6px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
	.ssc-cart .woocommerce:has(.woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr); }
	.ssc-cart .cart-collaterals { position: static; }
}
@media (max-width: 640px) {
	.ssc-main .ssc-cart { padding: 28px 14px 56px; }
	.ssc-cart h1.ssc-cart__title { font-size: 32px; }
	.ssc-cart table.shop_table.cart tr.cart_item { grid-template-columns: 72px minmax(0, 1fr) 32px; grid-template-areas: "thumb name remove" "thumb price price" "qty qty subtotal"; row-gap: 6px; padding: 14px; }
	.ssc-cart td.product-thumbnail img { width: 72px; height: 72px; }
	.ssc-cart td.product-name { font-size: 16px; }
	.ssc-cart td.product-quantity { margin-top: 6px; }
	.ssc-cart td.product-subtotal { margin-top: 6px; align-self: center; }
	.ssc-cart .cart_totals { padding: 22px 18px; }
	.ssc-cart td.actions .coupon { flex-basis: 100%; }
	.ssc-cart td.actions .coupon input.input-text { max-width: none; }
	.ssc-cart td.actions button[name="update_cart"] { width: 100%; }
}

/* the header mini-cart cannot hydrate on the classic basket page, and is redundant there */
body.woocommerce-cart .ssc-hd-cart { display: none; }

/* ------------------------------- Checkout (Fluid Checkout) ------------------------------- */
body.has-fluid-checkout {
	--fluidcheckout--field--height: 52px;
	--fluidcheckout--field--border-width: 1.5px;
	--fluidcheckout--field--border-radius: 6px;
	--fluidcheckout--field--border-color: #c9d3d1;
	--fluidcheckout--field--text-color: #000507;
	--fluidcheckout--section--border-radius: 12px;
	--fluidcheckout--section--border-width: 1.5px;
	--fluidcheckout--section--border-color: #dfe6e4;
	--fluidcheckout--section--highlighted-background-color: #fff;
	--fluidcheckout--button--height: 56px;
	--fluidcheckout--button--border-radius: 6px;
	--fluidcheckout--button--font-weight: 600;
	--fluidcheckout--button--font-size: 16px;
	--fluidcheckout--button--primary--background-color: #eec687;
	--fluidcheckout--button--primary--border-color: #eec687;
	--fluidcheckout--button--primary--text-color: #000507;
	--fluidcheckout--button--primary--background-color--hover: #d3b574;
	--fluidcheckout--button--primary--border-color--hover: #d3b574;
	--fluidcheckout--button--primary--text-color--hover: #000507;
	--fluidcheckout--option-box--border-radius: 8px;
	--fluidcheckout--option-box--radio-color--checked: #204f4b;
	--fluidcheckout--option-box--background-color--checked: #f6f9f8;
	--fluidcheckout--option-box--label-color--checked: #204f4b;
	--fluidcheckout--color--success: #204f4b;
	background: #f6f9f8;
	font-family: var(--wp--preset--font-family--poppins);
}
body.has-fluid-checkout .ssc-woo--checkout { padding: 28px 24px 72px; background: transparent; }

/* header: white bar, dark logo, way back to the basket */
body.has-fluid-checkout .fc-checkout-header { background: #fff !important; border-bottom: 1px solid #dfe6e4; box-shadow: 0 2px 18px rgba(0, 0, 0, .06); }
body.has-fluid-checkout .fc-checkout-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.has-fluid-checkout .fc-checkout-header .custom-logo, body.has-fluid-checkout .fc-checkout-header img { display: block; width: auto; max-height: 48px; filter: brightness(32%) contrast(99%) hue-rotate(59deg); }
body.has-fluid-checkout .fc-checkout__cart-link-wrapper { margin-left: auto; }
a.ssc-checkout-back { color: var(--wp--preset--color--green); font-family: var(--wp--preset--font-family--poppins); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
a.ssc-checkout-back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* progress */
body.has-fluid-checkout .fc-progress-bar__count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #7a8584; }
body.has-fluid-checkout .fc-progress-bar__step { font-size: 12px; font-weight: 500; color: #7a8584; }
body.has-fluid-checkout .fc-progress-bar__step.is-current, body.has-fluid-checkout .fc-progress-bar__step.is-complete { color: var(--wp--preset--color--green); }
body.has-fluid-checkout .fc-progress-bar--bars .fc-progress-bar__step::before, body.has-fluid-checkout .fc-progress-bar__step::before { border-color: #dfe6e4; }
body.has-fluid-checkout .fc-progress-bar__step.is-current::before, body.has-fluid-checkout .fc-progress-bar__step.is-complete::before { background-color: var(--wp--preset--color--green); border-color: var(--wp--preset--color--green); }

/* section cards + headings */
body.has-fluid-checkout .fc-step__substep { padding: 26px 28px; background: #fff; border: 1.5px solid #dfe6e4; border-radius: 12px; }
body.has-fluid-checkout h3.fc-step__substep-title, body.has-fluid-checkout .fc-checkout-order-review-title { margin: 0 0 18px; font-family: var(--wp--preset--font-family--pt-serif); font-size: 22px; line-height: 1.25; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--green); }
body.has-fluid-checkout .woocommerce-checkout label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: #333; }
body.has-fluid-checkout .woocommerce-checkout input.input-text, body.has-fluid-checkout .woocommerce-checkout select, body.has-fluid-checkout .woocommerce-checkout textarea { font-family: var(--wp--preset--font-family--poppins); font-size: 15px; }
body.has-fluid-checkout .woocommerce-checkout a:not(.button) { color: var(--wp--preset--color--green); text-underline-offset: 3px; }

/* buttons */
body.has-fluid-checkout .fc-step__next-step, body.has-fluid-checkout .fc-place-order-button, body.has-fluid-checkout #place_order { width: 100%; font-family: var(--wp--preset--font-family--poppins); letter-spacing: .02em; box-shadow: 0 3px 0 rgba(0, 0, 0, .14); }

/* order summary */
body.has-fluid-checkout .fc-checkout-order-review { padding: 26px 24px; background: #fff; border: 1.5px solid #dfe6e4; border-radius: 12px; }
body.has-fluid-checkout .fc-checkout-order-review__head { align-items: baseline; }
body.has-fluid-checkout .fc-checkout-order-review a.fc-checkout-order-review__edit-cart { font-size: 13px; }
body.has-fluid-checkout .fc-checkout-order-review img { border-radius: 6px; }

@media (max-width: 600px) {
	body.has-fluid-checkout .ssc-woo--checkout { padding: 16px 12px 48px; }
	body.has-fluid-checkout .fc-step__substep { padding: 20px 16px; }
}
body.has-fluid-checkout .fc-checkout-header__inner > a.ssc-checkout-back { margin-left: auto; }
body.has-fluid-checkout .fc-checkout-header .fc-checkout__cart-link-wrapper a.ssc-checkout-back { display: none; }
body.has-fluid-checkout .fc-step__substep { margin-bottom: 16px; }
body.has-fluid-checkout .fc-step__next-step.button, body.has-fluid-checkout .fc-place-order-button.button, body.has-fluid-checkout #place_order { height: 56px; border: 0; border-radius: 6px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
body.has-fluid-checkout .fc-step__next-step.button:hover, body.has-fluid-checkout .fc-place-order-button.button:hover, body.has-fluid-checkout #place_order:hover { background: var(--wp--preset--color--gold-hover); color: var(--wp--preset--color--ink); transform: translateY(-1px); }
.ssc-cart table.shop_table.cart tr.cart_item > td.product-name, .ssc-cart table.shop_table.cart tr.cart_item > td.product-price, .ssc-cart table.shop_table.cart tr.cart_item > td.product-quantity { text-align: left; }
.ssc-cart table.shop_table.cart tr.cart_item > td.product-subtotal { text-align: right; }

/* WooCommerce notice banners in the basket (empty state etc.) */
.ssc-cart .wc-block-components-notice-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 16px 20px; border: 1px solid #dfe6e4; border-left: 3px solid var(--wp--preset--color--green); border-radius: 0 8px 8px 0; background: #f6f9f8; color: #333; font-size: 14px; }
.ssc-cart .wc-block-components-notice-banner > svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 0; background: none; fill: var(--wp--preset--color--green); }
.ssc-cart .wc-block-components-notice-banner__content { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0; }
.ssc-cart .wc-block-components-notice-banner.is-error { border-left-color: #b3261e; background: #fdf1f0; }
.ssc-cart .wc-block-components-notice-banner.is-error > svg { fill: #b3261e; }
.ssc-cart .cart-collaterals .cart_totals { float: none !important; width: 100% !important; }
.ssc-cart .cart-collaterals, .ssc-cart .cart-collaterals .cart_totals { box-sizing: border-box; }
