/*
 * Xenix Custom Sizer 2.4.50: step-by-step card wizard.
 * Loaded on Sizer pages that use templates/sizer.php, unless ?xcswizard=0.
 * Every rule is scoped to html.xcs-wiz-on, which wizard boot adds and
 * removes again if wizard.js does not start. No price or field rules here.
 */

/* One card at a time. Before wizard.js marks a card, show the first one. */
html.xcs-wiz-on .xcs-steps > .xcs-card { display: none; }
html.xcs-wiz-on .xcs-steps > .xcs-card.xcs-wiz-active,
html.xcs-wiz-on:not(.xcs-wiz-ready) .xcs-steps > .xcs-card:first-child { display: block; }
html.xcs-wiz-on .xcs-steps > .xcs-card.xcs-wiz-skipped { display: none !important; }

/* The template numbers the cards 2-5; the dots number them 1-4. */
html.xcs-wiz-on .xcs-steps .xcs-step-n { display: none; }

/* The Sizer price bar and sidebar are replaced by the wizard footer.
   The bar stays in the form (pinPriceBar() skips it in wizard mode). */
html.xcs-wiz-on .xcs-pricebar,
html.xcs-wiz-on body.xcs-product .xcs-pricebar {
	display: none !important;
	visibility: hidden !important;
}
html.xcs-wiz-on .xcs-side { display: none !important; }
html.xcs-wiz-on .xcs-layout {
	display: block !important;
	grid-template-columns: minmax(0, 1fr) !important;
}
html.xcs-wiz-on body.xcs-product {
	padding-bottom: 0 !important;
	scroll-padding-bottom: 0 !important;
}
html.xcs-wiz-on body.xcs-product .xcs,
html.xcs-wiz-on body.xcs-product form.xcs-form {
	padding-bottom: 0 !important;
}

/* Sticky needs every ancestor up to the viewport to be non-clipping.
   Blocksy 2.1: #main-container { overflow: hidden; overflow: clip }.
   clip is fine in current browsers, but the hidden fallback (Safari < 16)
   makes a scroll box and breaks sticky, so it is reset here, keeping the
   horizontal clip Blocksy uses to stop sideways scrolling. Blocksy's
   optional sticky product summary is turned off in wizard mode so the
   wizard's own sticky bars are the only ones. body { overflow-x: hidden }
   is left alone: it propagates to the viewport and does not break sticky. */
html.xcs-wiz-on #main-container {
	overflow: visible !important;
	overflow-x: clip !important;
}
html.xcs-wiz-on #main,
html.xcs-wiz-on .site-main,
html.xcs-wiz-on .ct-container-full,
html.xcs-wiz-on .ct-container,
html.xcs-wiz-on article.product,
html.xcs-wiz-on .single-product article,
html.xcs-wiz-on div.product,
html.xcs-wiz-on .product-entry-wrapper,
html.xcs-wiz-on .summary,
html.xcs-wiz-on .entry-summary,
html.xcs-wiz-on .entry-summary-items,
html.xcs-wiz-on .elementor-widget-container,
html.xcs-wiz-on form.xcs-form,
html.xcs-wiz-on #xcs-root,
html.xcs-wiz-on .xcs-layout,
html.xcs-wiz-on .xcs-steps {
	overflow: visible !important;
	max-height: none !important;
}
html.xcs-wiz-on .sticky-summary .entry-summary {
	position: relative !important;
	top: auto !important;
}

/* Progress + step dots, sticky under any sticky header. */
html.xcs-wiz-on .xcs-wiz-progress {
	position: sticky;
	top: var(--xcs-wiz-top, 0px);
	z-index: 41;
	margin: 0 0 14px;
	padding: 14px 8px 8px;
	background: #fff;
	border: 1px solid var(--xcs-line, #e4e6ea);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}
html.xcs-wiz-on .xcs-wiz-track {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
html.xcs-wiz-on .xcs-wiz-track::before,
html.xcs-wiz-on .xcs-wiz-fill {
	content: "";
	position: absolute;
	left: var(--xcs-wiz-inset, 12.5%);
	top: 15px;
	height: 2px;
}
html.xcs-wiz-on .xcs-wiz-track::before {
	right: var(--xcs-wiz-inset, 12.5%);
	background: var(--xcs-line, #e4e6ea);
	z-index: 0;
}
html.xcs-wiz-on .xcs-wiz-fill {
	width: 0;
	background: var(--xcs-accent, #d9141d);
	z-index: 1;
	transition: width .2s ease;
}
html.xcs-wiz-on .xcs .xcs-wiz-step,
html.xcs-wiz-on .xcs .xcs-wiz-step:hover,
html.xcs-wiz-on .xcs .xcs-wiz-step:focus {
	z-index: 2;
	flex: 1 1 0;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	color: var(--xcs-muted, #6b7280) !important;
	font: inherit;
	font-size: 12px !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-align: center;
}
html.xcs-wiz-on .xcs .xcs-wiz-step:disabled { cursor: not-allowed; opacity: .55; }
html.xcs-wiz-on .xcs-wiz-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid var(--xcs-line, #e4e6ea);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--xcs-muted, #6b7280);
	box-shadow: 0 0 0 4px #fff;
	box-sizing: border-box;
}
html.xcs-wiz-on .xcs-wiz-step.is-done .xcs-wiz-dot {
	border-color: var(--xcs-accent, #d9141d);
	background: var(--xcs-accent, #d9141d);
	color: #fff;
}
html.xcs-wiz-on .xcs-wiz-step.is-current .xcs-wiz-dot {
	border-color: var(--xcs-accent, #d9141d);
	background: #fff;
	color: var(--xcs-accent, #d9141d);
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--xcs-accent-bg, #fdecec);
}
html.xcs-wiz-on .xcs .xcs-wiz-step.is-current { color: var(--xcs-ink, #16181d) !important; font-weight: 650; }
html.xcs-wiz-on .xcs-wiz-step-label { display: block; max-width: 100%; overflow-wrap: anywhere; }

/* Footer: right under the card, sticky to the screen bottom while the
   wizard is on screen, and released when the description starts. */
html.xcs-wiz-on .xcs-wiz-footer {
	position: sticky;
	bottom: 0;
	z-index: 40;
	margin: 12px 0 0;
	padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border: 1px solid var(--xcs-line, #e4e6ea);
	border-radius: 14px;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}
html.xcs-wiz-on .xcs-wiz-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
}
html.xcs-wiz-on .xcs-wiz-what {
	min-width: 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--xcs-muted, #6b7280);
	overflow: hidden;
	text-overflow: ellipsis;
}
html.xcs-wiz-on .xcs-wiz-amount {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--xcs-ink, #16181d);
	white-space: nowrap;
}
html.xcs-wiz-on .xcs-wiz-nav {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}
html.xcs-wiz-on .xcs-wiz-nav .xcs-btn { min-width: 120px; }
html.xcs-wiz-on .xcs-wiz-nav [data-xcs-submit] { flex: 1 1 auto; }
html.xcs-wiz-on .xcs .xcs-wiz-nav .xcs-wiz-next:disabled,
html.xcs-wiz-on .xcs .xcs-wiz-nav .xcs-wiz-back:disabled,
html.xcs-wiz-on .xcs .xcs-wiz-nav [data-xcs-submit]:disabled {
	background: #c9ccd2 !important;
	border-color: #c9ccd2 !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: not-allowed;
	opacity: 1;
}
html.xcs-wiz-on .xcs-wiz-hint {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--xcs-muted, #6b7280);
}
html.xcs-wiz-on .xcs-wiz-hint:empty { display: none; margin: 0; }
html.xcs-wiz-on .xcs-wiz-next[hidden] { display: none !important; }

/* Trust lines from the hidden sidebar, shown under the Order summary. */
html.xcs-wiz-on #xcs-summary .xcs-trust { margin-top: 14px; }

@media (max-width: 782px) {
	html.xcs-wiz-on .xcs-wiz-step-label { font-size: 11px; }
	html.xcs-wiz-on .xcs-wiz-dot { width: 26px; height: 26px; }
	html.xcs-wiz-on .xcs-wiz-track::before,
	html.xcs-wiz-on .xcs-wiz-fill { top: 13px; }
	html.xcs-wiz-on .xcs-wiz-nav .xcs-btn { flex: 1 1 0; min-width: 0; }
	html.xcs-wiz-on .xcs-wiz-nav .xcs-wiz-back { flex: 0 0 34%; }
	html.xcs-wiz-on .xcs-wiz-amount { font-size: 20px; }
	html.xcs-wiz-on .xcs-wiz-footer { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
