/* FluentCart Funnel Builder – frontend styles
   Structural only. All colors/spacing are driven by Elementor Style controls
   so store owners keep full visual control. */

/* Scroll lock while an overlay is open */
.pxfcf-scroll-locked {
	overflow: hidden !important;
}

/* ------------------------------------------------------------------ */
/* Base widget wrapper                                                 */
/* ------------------------------------------------------------------ */
.pxfcf-widget {
	position: relative;
}

/* Transparent wrapper used to inject an icon inside a FluentCart-rendered
   button (via JS) without disrupting width/flex rules on the real button. */
.pxfcf-btn-icon-wrap {
	display: contents;
}
.pxfcf-btn-icon-wrap template {
	display: none;
}
.pxfcf-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* Live Demo / Documentation links in Product Info Box — plain <a> tags styled
   to look like a button by default; Elementor Style controls layer on top. */
.pxfcf-pinfo-link-livedemo,
.pxfcf-pinfo-link-doc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 20px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	text-decoration: none;
	font-weight: 600;
	box-sizing: border-box;
}
.pxfcf-pinfo-link-livedemo:hover,
.pxfcf-pinfo-link-doc:hover {
	opacity: 0.9;
}

.pxfcf-cart-continue {
	margin-top: 16px;
}

.pxfcf-thankyou-headline {
	margin: 0 0 8px;
}

.pxfcf-thankyou-sub {
	margin: 0 0 24px;
}

/* ------------------------------------------------------------------ */
/* Modal checkout                                                      */
/* ------------------------------------------------------------------ */
.pxfcf-modal-root {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.pxfcf-modal-root.is-open,
.pxfcf-modal-root[hidden].is-open {
	display: block;
}

.pxfcf-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(2px);
}

.pxfcf-modal-dialog {
	position: relative;
	z-index: 1;
	max-width: 720px;
	width: calc(100% - 32px);
	max-height: calc(100vh - 64px);
	margin: 32px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	animation: pxfcf-modal-in 0.22s ease;
}

@keyframes pxfcf-modal-in {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.pxfcf-modal-close {
	position: sticky;
	top: 8px;
	float: right;
	margin: 8px 8px 0 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.pxfcf-modal-close:hover {
	background: #e5e7eb;
}

.pxfcf-modal-body {
	padding: 8px 24px 28px;
}

/* Wider dialog when the real checkout is embedded (2-column needs room) */
.pxfcf-modal-dialog--wide {
	max-width: 1080px;
}

.pxfcf-checkout--in-modal {
	padding-top: 8px;
}

/* Sticky summary inside a scrolling dialog sticks to the dialog, not the page */
.pxfcf-modal-dialog .fk-co--sticky .fk-co-side {
	top: 8px;
}

.pxfcf-modal-trigger.is-loading {
	opacity: .6;
	cursor: progress;
}


.pxfcf-modal-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}

.pxfcf-modal-error {
	padding: 40px 16px;
	text-align: center;
	color: #b91c1c;
}

.pxfcf-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #e5e7eb;
	border-top-color: #111827;
	border-radius: 50%;
	animation: pxfcf-spin 0.7s linear infinite;
}

@keyframes pxfcf-spin {
	to { transform: rotate(360deg); }
}

/* Modal trigger button (base look; colors from controls) */
.pxfcf-modal-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: #111827;
	padding: 14px 28px;
	border-radius: 8px;
	font: inherit;
	transition: opacity 0.15s ease;
}

.pxfcf-modal-trigger:hover {
	opacity: 0.92;
}

.pxfcf-modal-trigger,
.pxfcf-modal-trigger:hover,
.pxfcf-modal-trigger:focus {
	text-decoration: none;
}

.pxfcf-modal-trigger .pxfcf-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pxfcf-modal-trigger .pxfcf-btn-icon-before { margin-inline-end: 8px; }
.pxfcf-modal-trigger .pxfcf-btn-icon-after  { margin-inline-start: 8px; }

/* Inline checkout appended below a funnel step's content (inline mode). */
.pxfcf-funnel-inline-checkout {
	margin-top: 32px;
}

/* ------------------------------------------------------------------ */
/* Mini cart                                                           */
/* ------------------------------------------------------------------ */
.pxfcf-minicart {
	display: inline-block;
}

.pxfcf-minicart-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 4px;
	color: inherit;
	text-decoration: none;
	font: inherit;
}

.pxfcf-minicart-icon {
	display: inline-flex;
	line-height: 0;
}

.pxfcf-minicart-icon svg {
	width: 24px;
	height: 24px;
}

.pxfcf-minicart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	font-weight: 600;
}

.pxfcf-minicart-total {
	font-weight: 600;
}

/* Drawer */
.pxfcf-minicart-drawer {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
}

.pxfcf-minicart-drawer.is-open {
	display: block;
}

.pxfcf-minicart-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
}

.pxfcf-minicart-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 400px;
	max-width: 90vw;
	background: #fff;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.26s ease;
}

.pxfcf-minicart-drawer.is-open .pxfcf-minicart-drawer-panel {
	transform: translateX(0);
}

.pxfcf-minicart-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eef0f3;
}

.pxfcf-minicart-drawer-title {
	font-weight: 600;
	font-size: 16px;
}

.pxfcf-minicart-drawer-close {
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.pxfcf-minicart-drawer-body {
	flex: 1;
	overflow: auto;
	padding: 16px 20px;
	-webkit-overflow-scrolling: touch;
}

.pxfcf-minicart-drawer-foot {
	padding: 16px 20px;
	border-top: 1px solid #eef0f3;
}

.pxfcf-minicart-viewcart {
	display: block;
	text-align: center;
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Editor placeholder                                                  */
/* ------------------------------------------------------------------ */
.pxfcf-editor-placeholder {
	padding: 28px;
	border: 1px dashed #c7ccd4;
	border-radius: 8px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.pxfcf-modal-dialog,
	.pxfcf-minicart-drawer-panel,
	.pxfcf-spinner {
		animation: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Single-product widgets                                             */
/* ------------------------------------------------------------------ */
.pxfcf-product-title { margin: 0; }
.pxfcf-price-compare del { opacity: 0.6; margin-right: 6px; }
.pxfcf-price-current { font-weight: 700; }

.pxfcf-product-image img { display: block; height: auto; max-width: 100%; }

.pxfcf-meta-list { display: flex; flex-direction: column; gap: 6px; }
.pxfcf-meta-row { display: flex; gap: 6px; }
.pxfcf-meta-label { font-weight: 600; }
.pxfcf-in-stock { color: #16a34a; }
.pxfcf-out-stock { color: #dc2626; }

.pxfcf-preview-btn {
	display: inline-flex;
	align-items: center;
	border: 0;
	cursor: pointer;
	padding: 12px 24px;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font: inherit;
}

/* Gallery */
.pxfcf-gallery { display: flex; flex-direction: column; gap: 12px; }
.pxfcf-gallery-main img { width: 100%; height: auto; display: block; }
.pxfcf-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.pxfcf-gallery-thumb {
	border: 2px solid transparent;
	padding: 0;
	background: none;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	line-height: 0;
}
.pxfcf-gallery-thumb.is-active { border-color: #111827; }
.pxfcf-gallery-thumb img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------------ */
/* Nav menu                                                           */
/* ------------------------------------------------------------------ */
.pxfcf-nav { position: relative; }
.pxfcf-nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 24px;
	align-items: center;
}
.pxfcf-nav--vertical .pxfcf-nav-menu { flex-direction: column; align-items: flex-start; }
.pxfcf-nav-menu li { position: relative; }
.pxfcf-nav-menu a { text-decoration: none; display: block; }

/* Sub-menus */
.pxfcf-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	border-radius: 8px;
	padding: 8px 0;
	list-style: none;
	margin: 0;
	display: none;
	z-index: 50;
}
.pxfcf-nav-menu li:hover > .sub-menu { display: block; }
.pxfcf-nav-menu .sub-menu a { padding: 8px 16px; }

/* Toggle button (hidden on desktop) */
.pxfcf-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #111827;
}
.pxfcf-nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Collapse below the configured breakpoint (default 768px) */
@media (max-width: 768px) {
	.pxfcf-nav-toggle { display: flex; }
	.pxfcf-nav .pxfcf-nav-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		box-shadow: 0 12px 30px rgba(0,0,0,0.14);
		border-radius: 8px;
		padding: 12px 16px;
		z-index: 60;
	}
	.pxfcf-nav.is-open .pxfcf-nav-menu { display: flex; }
	.pxfcf-nav-menu .sub-menu {
		position: static;
		box-shadow: none;
		display: block;
		padding-left: 12px;
	}
}

/* Theme builder header/footer wrappers */
.pxfcf-tb-header, .pxfcf-tb-footer { width: 100%; }

/* ------------------------------------------------------------------ */
/* FluentCart checkout — fix radio inputs broken by theme/Elementor   */
/* global resets (turns them into large coloured blocks). Scoped to   */
/* our widget wrappers only; does NOT touch FC's own layout.          */
/* ------------------------------------------------------------------ */
.pxfcf-widget input[type="radio"],
.pxfcf-opc-checkout-container input[type="radio"],
.pxfcf-funnel-inline-checkout input[type="radio"] {
	appearance: auto !important;
	-webkit-appearance: radio !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	background: none !important;
	border: revert !important;
	box-shadow: none !important;
	display: inline-block !important;
	padding: 0 !important;
	margin: 0 4px 0 0 !important;
	flex: none !important;
	cursor: pointer;
}

/* ── One-Page Checkout note text ───────────────────────────────────── */
.pxfcf-opc-note { color: #6b7280; margin-top: 12px; }

/* ── Next Step Button widget ─────────────────────────────────────── */
.pxfcf-ns-btn-wrap { display: block; }

/* Specificity guard: some themes apply body a { color: ... } with higher
   specificity than a single Elementor widget class, washing out the button
   text. Repeat the selector so our default always wins unless the person
   explicitly overrides it via the widget's Text Color control. */
body a.pxfcf-ns-btn,
body button.pxfcf-ns-btn,
a.pxfcf-ns-btn,
button.pxfcf-ns-btn,
.pxfcf-ns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: none;
	outline: none;
	line-height: 1.25;
	background-color: #4f46e5;
	color: #ffffff;
	padding: 14px 32px;
	border-radius: 6px;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.pxfcf-ns-btn--full {
	display: flex;
	width: 100%;
}

.pxfcf-ns-btn:hover {
	background-color: #4338ca;
	color: #ffffff;
	text-decoration: none;
}

.pxfcf-ns-btn:disabled,
.pxfcf-ns-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.pxfcf-ns-btn .pxfcf-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pxfcf-ns-btn .pxfcf-btn-icon-before { margin-inline-end: 8px; }
.pxfcf-ns-btn .pxfcf-btn-icon-after  { margin-inline-start: 8px; }

.pxfcf-ns-editor-notice {
	margin-bottom: 8px;
	padding: 8px 12px;
	border-left: 3px solid;
	border-radius: 0 4px 4px 0;
	font-size: 12px;
	line-height: 1.5;
}
.pxfcf-ns-editor-notice--info { background: #eef2ff; border-left-color: #4f46e5; color: #374151; }
.pxfcf-ns-editor-notice--warn { background: #fef3c7; border-left-color: #f59e0b; color: #92400e; }


/* ── FC Thank You: editor-only preview ─────────────────────────────
   .fk-ty-preview--live wraps FluentCart's real receipt (FluentCart's own
   CSS styles it). .fk-ty-preview--sample is a static stand-in built from
   FluentCart's class names so the widget's style controls still apply;
   these rules give it FluentCart's default look and are deliberately
   low-specificity so Elementor's {{WRAPPER}} rules always win. */
.fk-ty-preview-note {
	margin: 12px 0 0;
	color: #9ca3af;
	font-size: 12px;
	line-height: 1.5;
}
.fk-ty-preview--sample .fct-thank-you-page {
	max-width: 760px;
	font-size: 15px;
	color: #1f2937;
}
.fk-ty-preview--sample .fct-thank-you-page-header {
	text-align: center;
	padding: 36px 24px 28px;
	border-radius: 12px;
	background: #ecfdf5;
	color: #065f46;
}
.fk-ty-preview--sample .fct-thank-you-page-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
}
.fk-ty-preview--sample .fct-thank-you-page-header-icon svg { width: 44px; height: 44px; }
.fk-ty-preview--sample .fct-thank-you-page-header-title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}
.fk-ty-preview--sample .fct-thank-you-page-order-items {
	margin-top: 16px;
	padding: 28px 32px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}
.fk-ty-preview--sample .fct-thank-you-page-greeting { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.fk-ty-preview--sample .fct-thank-you-page-intro { margin: 0 0 20px; color: #4b5563; }
.fk-ty-preview--sample .fct-thank-you-page-intro a { color: #2563eb; font-weight: 600; }
.fk-ty-preview--sample .fct-thank-you-page-order-items-header-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f9fafb;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #374151;
}
.fk-ty-preview--sample .fct-thank-you-page-order-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 16px 14px;
	border-bottom: 1px solid #e5e7eb;
}
.fk-ty-preview--sample .fct-thank-you-page-order-item p { margin: 0; font-weight: 500; }
.fk-ty-preview--sample .fct-thank-you-page-order-item .fct-item-variation { display: block; margin-top: 4px; color: #6b7280; font-size: 14px; }
.fk-ty-preview--sample .fct-thank-you-page-order-item b { font-weight: 700; }
.fk-ty-preview--sample .fct-thank-you-page-order-items-total {
	margin: 12px 0 0 auto;
	max-width: 420px;
	padding-top: 4px;
}
.fk-ty-preview--sample .fct-meta-line {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 9px 14px;
	color: #374151;
}
.fk-ty-preview--sample .fct-meta-line--total {
	border-top: 1px solid #e5e7eb;
	margin-top: 4px;
	padding-top: 14px;
	font-size: 17px;
}
.fk-ty-preview--sample .fct-thank-you-page-addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-top: 26px;
}
.fk-ty-preview--sample .fct-thank-you-page-address h4 {
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 15px;
	font-weight: 700;
	color: #4b5563;
}
.fk-ty-preview--sample .fct-thank-you-page-address p { margin: 0 0 6px; color: #4b5563; }
.fk-ty-preview--sample .fct-thank-you-page-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
}
.fk-ty-preview--sample .fct-thank-you-page-view-order-button {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
}
.fk-ty-preview--sample .fct-thank-you-page-download-receipt { color: #111827; font-weight: 600; text-decoration: underline; }
@media (max-width: 640px) {
	.fk-ty-preview--sample .fct-thank-you-page-addresses { grid-template-columns: 1fr; }
	.fk-ty-preview--sample .fct-thank-you-page-order-items-total { max-width: none; }
}

/* ── FC Free Opt-in ─────────────────────────────────────────────── */
.pxfcf-free-optin-admin-note {
	padding: 10px 14px;
	border: 1px dashed #f59e0b;
	border-radius: 6px;
	background: #fffbeb;
	color: #92400e;
	font-size: 13px;
}
/* Opt-in mode: hide FluentCart's cart/order summary so the form reads as a
   sign-up, not a purchase. Class names cover FluentCart's summary wrappers. */
.pxfcf-free-optin--no-summary .fct-checkout-summary,
.pxfcf-free-optin--no-summary .fct-cart-summary,
.pxfcf-free-optin--no-summary .fct-order-summary,
.pxfcf-free-optin--no-summary [class*="checkout-summary"],
.pxfcf-free-optin--no-summary [class*="order-summary"] {
	display: none !important;
}
/* Editor stand-in */
.pxfcf-free-optin-preview { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.pxfcf-free-optin-preview .pxfcf-free-optin-row { display: flex; gap: 12px; }
.pxfcf-free-optin-preview input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}
.pxfcf-free-optin-preview .fct-checkout-submit {
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	font: inherit;
	font-weight: 600;
}
