/* SL Cart Funnel - frontend */
:root {
	--slf-primary: #2563eb;
	--slf-text: #0f172a;
	--slf-muted: #64748b;
	--slf-border: #e2e8f0;
	--slf-bg: #f8fafc;
	--slf-radius: 10px;
}

.slf-canvas,
.slf-full-width {
	width: 100%;
}
.slf-canvas-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}
body.slf-page-builder .slf-canvas-inner,
.slf-canvas-inner:has(> .slfx) {
	max-width: none;
	padding: 0;
}
/* Auto-added checkout / opt-in / offer (no page design yet): keep it contained. */
body.slf-page-builder .slf-canvas-inner > .slf-checkout,
body.slf-page-builder .slf-canvas-inner > .slf-optin,
body.slf-page-builder .slf-canvas-inner > .slf-offer,
body.slf-page-builder .slf-canvas-inner > .slf-thankyou {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding: 32px 16px;
	box-sizing: border-box;
}
body.slf-step .slfx.alignfull {
	max-width: none;
	width: auto;
	margin-left: 0;
	margin-right: 0;
}
body.slf-template-canvas {
	margin: 0;
	background: #fff;
	color: var(--slf-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Buttons */
.slf-button,
.slf-checkout #place_order,
body .slf-button,
body button.slf-button {
	display: inline-block;
	background: var(--slf-primary) !important;
	background-color: var(--slf-primary) !important;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	color: #fff !important;
	border: 0;
	border-radius: var(--slf-radius);
	padding: 14px 28px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}
.slf-button:hover,
.slf-checkout #place_order:hover {
	filter: brightness(1.08);
}
.slf-button:active {
	transform: translateY(1px);
}
.slf-button[disabled] {
	opacity: .6;
	cursor: not-allowed;
}
.slf-link {
	background: none;
	border: 0;
	color: var(--slf-muted);
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	padding: 8px;
}
.slf-notice {
	padding: 12px 16px;
	border: 1px solid var(--slf-border, #e5e7eb);
	background: var(--slf-bg);
	border-radius: 10px;
}
.slf-next-wrap {
	margin: 24px 0;
}

/* Checkout layouts */
.slf-checkout {
	color: var(--slf-text);
}
.slf-checkout .woocommerce form .form-row input.input-text,
.slf-checkout .woocommerce form .form-row textarea,
.slf-checkout .woocommerce form .form-row select,
.slf-checkout form .form-row input.input-text,
.slf-checkout form .form-row textarea,
.slf-checkout form .form-row select {
	border: 1px solid var(--slf-border);
	border-radius: 8px;
	padding: 11px 12px;
	background: #fff;
	box-sizing: border-box;
}
.slf-checkout form .form-row input.input-text:focus,
.slf-checkout form .form-row select:focus,
.slf-checkout form .form-row textarea:focus {
	outline: none;
	border-color: var(--slf-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--slf-primary) 20%, transparent);
}
.slf-checkout #order_review,
.slf-checkout .woocommerce-checkout-review-order {
	background: var(--slf-bg);
	border: 1px solid var(--slf-border);
	border-radius: var(--slf-radius);
	padding: 16px;
}
.slf-checkout #place_order {
	width: 100%;
	font-size: 18px;
	padding: 16px;
}
.slf-checkout.slf-padlock #place_order::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 900px) {
	.slf-layout-two-column form.checkout::after {
		content: "";
		display: table;
		clear: both;
	}
	.slf-layout-two-column form.checkout > * {
		float: left;
		width: 55%;
		clear: left;
		box-sizing: border-box;
	}
	.slf-layout-two-column form.checkout > #order_review_heading,
	.slf-layout-two-column form.checkout > #order_review {
		float: right;
		width: 40%;
		clear: right;
	}
	.slf-layout-two-column form.checkout > #order_review_heading {
		margin-top: 0;
	}
	.slf-layout-two-column #customer_details .col-1,
	.slf-layout-two-column #customer_details .col-2 {
		float: none;
		width: 100%;
	}
}
.slf-checkout table.shop_table {
	width: 100%;
}
.slf-layout-one-column {
	max-width: 680px;
	margin: 0 auto;
}
.slf-layout-one-column #customer_details .col-1,
.slf-layout-one-column #customer_details .col-2,
.slf-layout-multistep #customer_details .col-1,
.slf-layout-multistep #customer_details .col-2 {
	float: none;
	width: 100%;
}
.slf-layout-multistep {
	max-width: 680px;
	margin: 0 auto;
}
.slf-steps-nav {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	counter-reset: slfstep;
}
.slf-steps-nav li {
	flex: 1;
	padding: 10px 12px;
	border-bottom: 3px solid var(--slf-border);
	color: var(--slf-muted);
	font-weight: 600;
	counter-increment: slfstep;
}
.slf-steps-nav li::before {
	content: counter(slfstep) ". ";
}
.slf-steps-nav li.is-active {
	border-color: var(--slf-primary);
	color: var(--slf-text);
}
.slf-step-actions {
	margin: 16px 0;
}
.slf-step-actions .slf-button {
	width: 100%;
}

/* Product options */
.slf-product-options {
	margin: 0 0 28px;
}
.slf-section-title {
	font-size: 20px;
	margin: 0 0 12px;
}
.slf-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 2px solid var(--slf-border);
	border-radius: var(--slf-radius);
	margin-bottom: 10px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}
.slf-option.is-selected {
	border-color: var(--slf-primary);
	background: color-mix(in srgb, var(--slf-primary) 6%, #fff);
}
.slf-option-img img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.slf-option-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.slf-option-title {
	font-weight: 600;
}
.slf-option-sub {
	font-size: 13px;
	color: var(--slf-muted);
}
.slf-option-qty {
	width: 64px;
	padding: 6px;
	border: 1px solid var(--slf-border);
	border-radius: 6px;
}
.slf-option-price del,
.slf-bump-price del,
.slf-offer-price del,
.slf-modal-price del {
	color: var(--slf-muted);
	margin-right: 6px;
}
.slf-option-price ins,
.slf-bump-price ins,
.slf-offer-price ins,
.slf-modal-price ins {
	text-decoration: none;
	font-weight: 700;
}

/* Order bumps */
.slf-bump {
	--slf-bump: #94a3b8;
	border: 2px dashed var(--slf-bump);
	border-radius: var(--slf-radius);
	margin: 0 0 16px;
	background: #fff;
	overflow: hidden;
}
.slf-bump.is-checked {
	border-style: solid;
}
.slf-bump-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #f8fafc;
	cursor: pointer;
	font-weight: 700;
	margin: 0;
}
.slf-bump-head input {
	width: 18px;
	height: 18px;
	margin: 0;
}
.slf-bump-arrow {
	color: var(--slf-primary);
	animation: slf-nudge 1.2s ease-in-out infinite;
}
@keyframes slf-nudge {
	50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
	.slf-bump-arrow { animation: none; }
}
.slf-bump-body {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
}
.slf-bump-img img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}
.slf-bump-title {
	display: block;
}
.slf-bump-desc p {
	margin: 6px 0 0;
	font-size: 14px;
	color: #334155;
}
.slf-bump-card {
	border-style: solid;
	background: #fff;
}
.slf-bump-minimal {
	border: 1px solid var(--slf-border);
	background: #fff;
}
.slf-bump-minimal .slf-bump-head {
	background: transparent;
}
.slf-busy {
	opacity: .55;
	pointer-events: none;
}

/* GDPR */
.slf-gdpr-note {
	font-size: 12px;
	color: var(--slf-muted);
	margin: 6px 0 0;
}

/* Pre-checkout modal */
.slf-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, .6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.slf-modal[hidden] {
	display: none;
}
.slf-modal-box {
	background: #fff;
	border-radius: 14px;
	max-width: 560px;
	width: 100%;
	padding: 28px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	max-height: 90vh;
	overflow: auto;
}
.slf-modal-sub {
	color: #dc2626;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13px;
	margin: 0 0 6px;
}
.slf-modal-box h2 {
	margin: 0 0 16px;
}
.slf-modal-product {
	display: flex;
	gap: 16px;
	text-align: left;
	margin-bottom: 20px;
}
.slf-modal-img img {
	width: 120px;
	height: auto;
	border-radius: 8px;
}
.slf-modal-box .slf-button {
	width: 100%;
}
body.slf-modal-open {
	overflow: hidden;
}

/* Offers */
.slf-offer-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}
@media (min-width: 800px) {
	.slf-offer-layout {
		grid-template-columns: 1fr 1fr;
	}
}
.slf-offer-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.slf-offer-price {
	font-size: 26px;
	margin: 8px 0 16px;
}
.slf-offer-form {
	margin: 0 0 8px;
}
.slf-offer-accept .slf-button {
	width: 100%;
	background: var(--slf-primary);
	font-size: 19px;
	padding: 18px;
}
.slf-offer-variation {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid var(--slf-border);
	border-radius: 8px;
}
.slf-offer-reject {
	text-align: center;
}

/* Optin */
.slf-optin {
	max-width: 480px;
	margin: 0 auto;
}
.slf-optin-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.slf-optin-form input[type=text],
.slf-optin-form input[type=email],
.slf-optin-form input[type=tel],
.slf-optin-form input[type=number],
.slf-optin-form select,
.slf-optin-form textarea {
	width: 100%;
	max-width: none;
	min-height: 46px;
	padding: 11px 12px;
	border: 1px solid var(--slf-border, #e5e7eb);
	border-radius: 8px;
	box-sizing: border-box;
	font: inherit;
	font-size: 15px;
	color: #0f172a;
	background-color: #fff;
}
.slf-optin-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.slf-optin-form textarea {
	min-height: 96px;
}
.slf-optin-form input:focus,
.slf-optin-form select:focus,
.slf-optin-form textarea:focus {
	outline: none;
	border-color: var(--slf-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.slf-optin-form .slf-button {
	width: 100%;
}
.slf-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* Thank you */
.slf-ty-heading {
	text-align: center;
	color: var(--slf-primary);
}
.slf-child-order {
	margin-top: 32px;
}

/* Modern layout: clean cards, sticky summary panel on desktop. */
.slf-layout-modern { max-width: 1100px; margin: 0 auto; }
.slf-layout-modern form.checkout { display: flex; flex-direction: column; gap: 16px; }
.slf-layout-modern #customer_details,
.slf-layout-modern #order_review { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; box-sizing: border-box; }
.slf-layout-modern #order_review { background: #f8fafc; }
.slf-layout-modern #customer_details .col-1,
.slf-layout-modern #customer_details .col-2 { float: none; width: 100%; }
.slf-layout-modern h3 { font-size: 18px; margin: 0 0 12px; }
.slf-layout-modern table.shop_table { border: 0; }
.slf-layout-modern #payment { background: transparent; border-radius: 10px; }
@media (min-width: 900px) {
	.slf-layout-modern form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
	.slf-layout-modern form.checkout > * { grid-column: 1; }
	.slf-layout-modern form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; }
	.slf-layout-modern form.checkout > #order_review { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: 24px; }
	.slf-layout-modern form.checkout > #customer_details { grid-row: 1 / span 20; }
}


/* Prices on funnel pages: hide screen-reader text even without theme CSS; simple sale colours. */
.slf-canvas .screen-reader-text, .slf-checkout .screen-reader-text, .slf-offer .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.slf-canvas .price del, .slf-checkout .price del, .slf-offer .price del { color: #dc2626; opacity: 1; font-weight: 400; }
.slf-canvas .price ins, .slf-checkout .price ins, .slf-offer .price ins { color: #16a34a; text-decoration: none; font-weight: 700; }


/* slf-2col-fix: two-column checkout that also works when the theme wraps the order review (WoodMart: .checkout-order-review). */
@media (min-width: 900px) {
	.slf-layout-two-column form.checkout > * { width: 56%; }
	.slf-layout-two-column form.checkout > .checkout-order-review,
	.slf-layout-two-column form.checkout > #order_review_heading,
	.slf-layout-two-column form.checkout > #order_review { float: right; width: 39%; clear: right; margin-top: 0; }
	.slf-layout-two-column form.checkout > .checkout-order-review > #order_review_heading { margin-top: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) {
	.slf-layout-two-column form.checkout > * { width: 54%; }
	.slf-layout-two-column form.checkout > .checkout-order-review,
	.slf-layout-two-column form.checkout > #order_review_heading,
	.slf-layout-two-column form.checkout > #order_review { width: 42%; }
}
.slf-checkout .slf-cod-split th, .slf-checkout .slf-cod-split td { font-size: 0.95em; }


/* slf-canvas-trim: tidy the funnel step pages (canvas template) - less empty space top & bottom, centered and aligned on mobile. */
main.slf-canvas, main.slf-full-width { overflow-x: hidden; }
main.slf-canvas .slf-canvas-inner > .elementor > .elementor-section:first-child,
main.slf-canvas .slf-canvas-inner > .elementor > .e-con:first-child { padding-top: 22px; }
main.slf-canvas .slf-canvas-inner > .elementor > .elementor-section:last-child,
main.slf-canvas .slf-canvas-inner > .elementor > .e-con:last-child { padding-bottom: 28px; }
main.slf-canvas .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1120px; }
@media (max-width: 767px) {
	main.slf-canvas .elementor-top-section,
	main.slf-full-width .elementor-top-section { padding-left: 16px; padding-right: 16px; }
	main.slf-canvas .elementor-top-section { padding-top: 20px; padding-bottom: 20px; }
	main.slf-canvas .slf-canvas-inner > .elementor > .elementor-section:first-child { padding-top: 16px; }
	/* one clean column, nothing hanging off-centre */
	.slf-checkout .slf-cod-split th, .slf-checkout .slf-cod-split td,
	.slf-checkout #payment, .slf-checkout .woocommerce-checkout-review-order { width: 100% !important; }
	.slf-checkout #payment .place-order { padding-left: 0; padding-right: 0; }
	.slf-checkout #place_order { width: 100%; }
	/* slf-mob-align */
	.slf-checkout .woocommerce-checkout-review-order,
	.slf-checkout #order_review { padding-left: 0 !important; padding-right: 0 !important; }
	.slf-checkout table.shop_table { font-size: 14px; }
	main.slf-canvas h1, main.slf-canvas h2.slf-ty-heading { font-size: 26px !important; line-height: 1.2; }
}


/* slf-nice-checkout: give the normal store checkout the same tidy, centered width as the funnel. */
body.slf-nice-checkout .wd-checkout-form,
body.slf-nice-checkout form.checkout.woocommerce-checkout { max-width: 1120px; margin-left: auto; margin-right: auto; }
body.slf-nice-checkout .woocommerce { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
@media (min-width: 900px) {
	body.slf-nice-checkout form.checkout > #customer_details { width: 56%; }
	body.slf-nice-checkout form.checkout > .checkout-order-review,
	body.slf-nice-checkout form.checkout > #order_review { width: 40%; }
}
@media (max-width: 899px) {
	body.slf-nice-checkout .woocommerce { padding-left: 14px; padding-right: 14px; }
}

/* slf-shop-pages: professional spacing & alignment across cart, checkout and thank-you. */
body.slf-shop-pages .wd-page-content{padding-top:36px!important}
body.slf-shop-pages .whb-general-header-inner{padding-left:16px;padding-right:16px}
body.slf-shop-pages .wd-checkout-steps{max-width:1120px;margin:0 auto 26px!important;padding-top:4px}
body.slf-shop-pages .woocommerce{padding-left:16px;padding-right:16px;box-sizing:border-box}
body.slf-shop-pages .woocommerce-cart-form,body.slf-shop-pages .cart-collaterals,body.slf-shop-pages .wc-proceed-to-checkout,body.slf-shop-pages .woocommerce-order,body.slf-shop-pages .woocommerce-order-received .woocommerce{max-width:1120px;margin-left:auto;margin-right:auto}
body.slf-shop-pages .woocommerce-order .woocommerce-order-overview{border:1px solid #eee;border-radius:12px;padding:18px 22px;background:#fff;list-style:none;display:flex;flex-wrap:wrap;gap:10px 34px;margin:0 0 26px}
body.slf-shop-pages .woocommerce-order .woocommerce-order-overview li{border:0;padding:0;font-size:13px;color:#6b7280;text-transform:none}
body.slf-shop-pages .woocommerce-order .woocommerce-order-overview li strong{display:block;font-size:15px;color:#111827}
@media(max-width:767px){body.slf-shop-pages .wd-page-content{padding-top:22px!important}body.slf-shop-pages .whb-general-header-inner{padding-left:12px;padding-right:12px}}

/* SLF checkout coupon align */
body.slf-shop-pages .wd-checkout-coupon{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important;width:100%!important}
