/**
 * diy-style single product customizer.
 */

.fi-ships-badge {
	display: inline-block;
	margin: 0 0 10px;
	padding: 5px 11px;
	background: #c94a3a;
	color: #fff;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	border-radius: 2px;
}

/* Overlay on main product gallery (diy position). */
.fi-ships-badge--on-gallery {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
	margin: 0;
	pointer-events: none;
}

body.single-product .fi-gallery-ships-host {
	position: relative;
}

body.fi-has-customizer .product_title,
body.fi-has-customizer .product_title.entry-title {
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.25;
	margin-bottom: 10px !important;
}

body.fi-has-customizer .summary .price {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	margin-bottom: 18px !important;
}

.fi-customize {
	margin: 0 0 18px;
	font-family: Outfit, "Segoe UI", sans-serif;
	color: #1a1a1a;
}

.fi-customize__row {
	margin-bottom: 16px;
}

.fi-customize__label,
.fi-field__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

.fi-field__live {
	font-weight: 600;
	color: #222;
	word-break: break-word;
}

.fi-customize__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.fi-customize__label-row .fi-customize__label {
	margin-bottom: 0;
}

.fi-size-guide-slot {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

.fi-size-guide-slot .size-guide {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	font-size: 14px !important;
	line-height: 1.2;
}

.fi-size-guide-slot .size-guide a,
.fi-size-guide-slot .size-guide a.elementor-button {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #333 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
}

.fi-size-guide-slot .size-guide a:hover,
.fi-size-guide-slot .size-guide a.elementor-button:hover {
	background: transparent !important;
	color: #111 !important;
	opacity: 0.75;
}

.fi-size-guide-slot .size-guide .et-icon,
.fi-size-guide-slot .size-guide .et-size {
	font-size: 16px !important;
	line-height: 1 !important;
	color: inherit !important;
}

.fi-size-guide-slot .size-guide .button-text {
	font-size: inherit !important;
	font-weight: inherit !important;
	text-transform: none !important;
}

body.fi-has-customizer .elementor-widget-woocommerce-product-etheme_product_size_guide.fi-sg-moved-away {
	display: none !important;
}

/* Size guide modal */
.fi-sg-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.fi-sg-modal[hidden] {
	display: none !important;
}

.fi-sg-modal.is-open {
	display: flex !important;
}

.fi-sg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.fi-sg-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(92vh, 900px);
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.fi-sg-modal__head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #ddd;
}

.fi-sg-modal__brand {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fi-sg-modal__product {
	justify-self: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #444;
	text-align: center;
	padding: 0 8px;
}

.fi-sg-modal__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 2px;
	background: #111;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.fi-sg-modal__body {
	overflow: auto;
	padding: 16px 18px 20px;
}

.fi-sg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.fi-sg-tab {
	min-height: 36px;
	padding: 7px 16px;
	border: 1px solid #111;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.fi-sg-tab.is-active {
	background: #111;
	color: #fff;
}

.fi-sg-note {
	margin: 0 0 10px;
	font-size: 13px;
	color: #555;
	line-height: 1.45;
}

.fi-sg-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 10px;
}

.fi-sg-units {
	display: inline-flex;
	gap: 14px;
}

.fi-sg-unit {
	padding: 2px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #777;
	cursor: pointer;
}

.fi-sg-unit.is-active {
	color: #111;
	border-bottom-color: #111;
}

.fi-sg-chart {
	margin-bottom: 14px;
	text-align: center;
	background: #fafafa;
	border: 1px solid #eee;
}

.fi-sg-chart__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.fi-sg-tip {
	padding: 12px 14px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	font-size: 13px;
	line-height: 1.55;
	color: #444;
}

body.fi-sg-open {
	overflow: hidden;
}

/* Comparing Methods button + modal */
.fi-compare-methods {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px 14px;
	border: 1px solid #222;
	border-radius: 2px;
	background: #fff;
	color: #1a5fb4;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.fi-compare-methods:hover {
	background: #f5f8fc;
	color: #0b3d91;
}

.fi-material-choice {
	font-weight: 700;
	color: #111;
}

.fi-cm-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.fi-cm-modal[hidden] {
	display: none !important;
}

.fi-cm-modal.is-open {
	display: flex !important;
}

.fi-cm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.fi-cm-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(94vh, 920px);
	overflow: auto;
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
	padding: 28px 22px 24px;
}

.fi-cm-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #333;
	cursor: pointer;
}

.fi-cm-modal__head {
	text-align: center;
	margin-bottom: 14px;
	padding-right: 24px;
}

.fi-cm-modal__brand {
	display: block;
	font-size: 22px;
	letter-spacing: 0.04em;
	color: #111;
}

.fi-cm-modal__product {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #666;
}

.fi-cm-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	border-bottom: 1px solid #ddd;
	margin-bottom: 16px;
}

.fi-cm-tab {
	flex: 1 1 0;
	max-width: 160px;
	padding: 10px 8px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: #444;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.fi-cm-tab.is-active {
	color: #111;
	border-bottom-color: #111;
}

.fi-cm-panel[hidden] {
	display: none !important;
}

.fi-cm-figure {
	margin: 0 auto 16px;
	text-align: center;
	max-width: 100%;
	overflow: visible;
}

.fi-cm-image {
	display: block;
	margin: 0 auto 8px;
	max-width: min(100%, 580px);
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.fi-cm-carousel {
	position: relative;
	text-align: center;
}

.fi-cm-carousel__track {
	position: relative;
	min-height: 220px;
}

.fi-cm-slide {
	display: none;
}

.fi-cm-slide.is-active {
	display: block;
}

.fi-cm-video {
	width: 95%;
	max-width: 560px;
	height: auto;
	vertical-align: middle;
	background: #000;
}

.fi-cm-carousel__nav {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #222;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.fi-cm-carousel__nav--prev {
	left: 0;
}

.fi-cm-carousel__nav--next {
	right: 0;
}

.fi-cm-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.fi-cm-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c8c8c8;
	cursor: pointer;
}

.fi-cm-dot.is-active {
	background: #222;
}

.fi-cm-copy {
	text-align: center;
	padding: 12px 8px 4px;
	color: #222;
	letter-spacing: 0.5px;
}

.fi-cm-copy h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.fi-cm-copy p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.55;
}

body.fi-cm-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.fi-cm-modal__brand {
		font-size: 18px;
	}

	.fi-cm-tab {
		font-size: 14px;
		padding: 9px 4px;
	}

	.fi-cm-carousel__nav {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
}

@media (max-width: 720px) {
	.fi-sg-modal__head {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand close"
			"product product";
	}

	.fi-sg-modal__brand { grid-area: brand; }
	.fi-sg-modal__close { grid-area: close; }
	.fi-sg-modal__product {
		grid-area: product;
		justify-self: start;
		text-align: left;
		font-size: 12px;
	}
}

.fi-pills {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
}

.fi-pills--wrap {
	flex-wrap: wrap;
}

.fi-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 999px;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fi-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fi-pill.is-active,
.fi-pill:has(input:checked) {
	background: #111;
	border-color: #111;
	color: #fff;
}

.fi-pill:hover:not(.is-active):not(:has(input:checked)) {
	border-color: #888;
}

.fi-select,
.fi-input {
	width: 100%;
	max-width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	color: #222;
	box-shadow: none;
	appearance: none;
}

.fi-select {
	background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
	background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

.fi-input:focus,
.fi-select:focus {
	outline: none;
	border-color: #111;
}

.fi-customize__texts {
	display: grid;
	gap: 12px;
}

.fi-field {
	display: block;
	margin: 0;
}

/* XStore forces input[type=file]{display:block} ? hide ours hard. */
.fi-logo-upload .fi-logo-file,
.fi-customize input.fi-logo-file[type="file"] {
	display: none !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.fi-logo-upload[hidden],
.fi-logo-slot[hidden],
.fi-logo-add[hidden],
.fi-logo-add-wrap[hidden] {
	display: none !important;
}

.fi-logo-slot__choice {
	font-weight: 600;
	color: #222;
}

.fi-logo-add-wrap {
	margin-top: 4px;
	margin-bottom: 12px;
}

.fi-logo-add {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #222;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fi-logo-add:hover,
.fi-logo-add:focus-visible {
	outline: none;
	background: #f7f7f7;
}

.fi-logo-add__icon {
	display: inline-flex;
	color: #222;
}

.fi-logo-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 112px;
	margin: 0;
	padding: 18px 16px;
	border: 1.5px dashed #c8c8c8;
	border-radius: 10px;
	background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
	color: #222;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.fi-logo-drop:hover,
.fi-logo-drop:focus-visible {
	outline: none;
	border-color: #222;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.fi-logo-drop.is-dragover {
	border-color: #e10600;
	background: #fff8f7;
	box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.fi-logo-drop.is-uploading {
	pointer-events: none;
	opacity: 0.75;
}

.fi-logo-drop.is-ready {
	border-style: solid;
	border-color: #1a1a1a;
	background: #fff;
	justify-content: flex-start;
	text-align: left;
	padding: 14px 16px;
}

.fi-logo-drop__idle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.fi-logo-drop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 2px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e4e4e4;
	color: #333;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fi-logo-drop__title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.fi-logo-drop__hint {
	font-size: 12px;
	font-weight: 400;
	color: #777;
	line-height: 1.3;
}

.fi-logo-drop__loading {
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.fi-logo-drop__done {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.fi-logo-drop__done[hidden],
.fi-logo-drop__idle[hidden],
.fi-logo-drop__loading[hidden],
.fi-logo-clear[hidden] {
	display: none !important;
}

.fi-logo-drop__preview {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #e1e1e1;
	background: #f7f7f7 center / cover no-repeat;
	overflow: hidden;
}

.fi-logo-drop__preview.is-file {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	background-image: none;
}

.fi-logo-drop__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fi-logo-drop__status {
	font-size: 12px;
	font-weight: 700;
	color: #1b7a3d;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fi-logo-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fi-logo-clear {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: #666;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fi-logo-clear:hover {
	color: #e10600;
}

.fi-fee-box {
	margin: 14px 0 6px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f3f3f3;
	font-size: 14px;
	color: #333;
}

body.fi-has-customizer form.cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

body.fi-has-customizer form.cart .quantity,
body.fi-has-customizer .fi-qty-wrap {
	margin: 12px 0 14px;
}

body.fi-has-customizer form.cart .quantity {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 160px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

body.fi-has-customizer form.cart .quantity .qty {
	width: 64px;
	height: 42px;
	margin: 0;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	box-shadow: none;
}

body.fi-has-customizer form.cart .quantity .minus,
body.fi-has-customizer form.cart .quantity .plus,
body.fi-has-customizer form.cart .quantity button {
	width: 42px;
	height: 42px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #f5f5f5;
	color: #222;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

body.fi-has-customizer form.cart .single_add_to_cart_button,
body.fi-has-customizer form.cart button.button.alt {
	width: 100%;
	max-width: 100%;
	height: 52px;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #f07a1a !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase !important;
	box-shadow: none !important;
}

body.fi-has-customizer form.cart .single_add_to_cart_button:hover {
	background: #d96a12 !important;
}

/* Sticky purchase bar: desktop keeps in-flow layout; mobile pins to viewport footer. */
body.fi-has-customizer form.cart .fi-atc-sticky {
	display: contents;
}

body.fi-has-customizer form.cart .fi-atc-sticky__price {
	display: none;
}

.fi-atc-trust {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
}

.fi-atc-trust__premium {
	color: #0a7a3e;
	font-weight: 600;
}

.fi-atc-trust__ship {
	color: #f07a1a;
	font-weight: 600;
}

.fi-pdp-promos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 0;
}

.fi-pdp-promos--stacked {
	grid-template-columns: 1fr;
}

.fi-pdp-promos--img {
	gap: 10px;
}

.fi-pdp-promo-img {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fi-pdp-promo-img:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fi-pdp-promo-img img,
.fi-pdp-payments-img img,
.fi-pdp-brand--img img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.fi-pdp-coupons {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin-top: 14px;
}

.fi-pdp-coupon {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 14px 12px 12px;
	border: 1px solid #d9d9d9;
	border-bottom: 3px solid #f07a1a;
	border-left: 3px solid #f07a1a;
	border-right: 3px solid #f07a1a;
	border-radius: 6px;
	background: #fff;
	color: #111;
	text-align: center;
	cursor: pointer;
	font-family: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.fi-pdp-coupon:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.fi-pdp-coupon.is-copied {
	border-color: #e85d04;
	box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.fi-pdp-coupon__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	line-height: 1.2;
}

.fi-pdp-coupon__value {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	margin-top: 2px;
	line-height: 1;
}

.fi-pdp-coupon__num {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5.2vw, 56px);
	font-weight: 700;
	color: #f07a1a;
	text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.12);
	line-height: 0.9;
}

.fi-pdp-coupon__unit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 6px;
	line-height: 1;
}

.fi-pdp-coupon__pct {
	font-size: 18px;
	font-weight: 800;
	color: #111;
}

.fi-pdp-coupon__off {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #111;
}

.fi-pdp-coupon__min {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.fi-pdp-coupon__min::before,
.fi-pdp-coupon__min::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	max-width: 42px;
	background: #cfcfcf;
}

.fi-pdp-coupon__min-num {
	color: #f07a1a;
	font-weight: 800;
}

.fi-pdp-coupon__codebox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 8px 10px;
	border: 1.5px dashed #222;
	border-radius: 2px;
	background: #fff;
	text-align: left;
}

.fi-pdp-coupon__tag {
	display: grid;
	place-items: center;
	color: #111;
	flex: 0 0 auto;
	padding-right: 10px;
	border-right: 1px solid #d0d0d0;
}

.fi-pdp-coupon__code-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.fi-pdp-coupon__use {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #222;
	line-height: 1.2;
}

.fi-pdp-coupon__code {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #f07a1a;
	line-height: 1.1;
}

.fi-pdp-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: #111;
	line-height: 1.3;
}

.fi-pdp-secure__icon {
	display: inline-grid;
	place-items: center;
	color: #111;
}

.fi-pdp-payments-img {
	margin-top: 12px;
	line-height: 0;
	border-radius: 6px;
	overflow: hidden;
	max-width: 340px;
}

/* ---- PDP extras (diy bottom) ---- */
.fi-pdp-extras {
	width: min(100% - 32px, 1280px);
	margin: 12px auto 48px;
	font-family: Outfit, "Segoe UI", sans-serif;
	color: #222;
}

.fi-pdp-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 36px;
}

.fi-pdp-info__offers {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* Promo banners: two per row, wider offers column */
.fi-pdp-info__offers .fi-pdp-promos.fi-pdp-promos--img {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.fi-pdp-info__offers .fi-pdp-coupons,
.fi-pdp-info__offers .fi-pdp-secure,
.fi-pdp-info__offers .fi-pdp-payments-img {
	margin-top: 0;
}

.fi-pdp-info__offers .fi-pdp-coupons {
	margin-top: 14px;
}

.fi-pdp-info__offers .fi-pdp-secure {
	margin-top: 12px;
}

.fi-pdp-info__tabs .elementor-element,
.fi-pdp-info__tabs .elementor-widget-container {
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
}

.fi-pdp-info__tabs .woocommerce-tabs {
	margin: 0;
}

.fi-tab-list {
	margin: 0 0 12px;
	padding-left: 18px;
}

.fi-tab-list ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.fi-pdp-brand--img {
	margin-bottom: 20px;
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.fi-pdp-faq__title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
}

.fi-pdp-faq__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	align-items: start;
}

.fi-pdp-faq__col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.fi-pdp-faq__item {
	border-bottom: 1px solid #ececec;
	padding: 0 0 8px;
	height: auto;
	align-self: stretch;
}

.fi-pdp-faq__item summary {
	cursor: pointer;
	list-style: none;
	padding: 12px 28px 12px 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #e85d04;
	position: relative;
}

.fi-pdp-faq__item summary::-webkit-details-marker {
	display: none;
}

.fi-pdp-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 10px;
	font-size: 20px;
	font-weight: 400;
	color: #e85d04;
}

.fi-pdp-faq__item[open] summary::after {
	content: "\2212";
}

.fi-pdp-faq__body {
	padding: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}

.fi-pdp-faq__body a {
	color: #e85d04;
	font-weight: 600;
}

body.fi-has-customizer .woocommerce-tabs ul.tabs,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs,
body.fi-has-customizer .fi-pdp-info__tabs .tabs.wc-tabs,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs.justify-content-center,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs.justify-content-end,
body.fi-has-customizer .fi-pdp-info__tabs .tabs.wc-tabs.justify-content-center {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: stretch !important;
	gap: 0;
	padding: 0;
	margin: 0 0 16px;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
	list-style: none;
	text-align: center !important;
	width: 100%;
}

body.fi-has-customizer .woocommerce-tabs.type-underline,
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs {
	text-align: center !important;
}

body.fi-has-customizer .woocommerce-tabs.type-accordion .tabs.wc-tabs,
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs {
	display: flex !important;
	flex-direction: row !important;
}

body.fi-has-customizer .woocommerce-tabs ul.tabs li,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs > .et-woocommerce-tab,
body.fi-has-customizer .fi-pdp-info__tabs .tabs.wc-tabs > .et-woocommerce-tab {
	position: relative;
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Accordion titles become horizontal tab labels; panels sit below the row. */
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: stretch !important;
}

body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs > .et-woocommerce-tab {
	order: 0;
}

body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs > .woocommerce-Tabs-panel,
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs > .panel {
	order: 99;
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	display: none;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	justify-content: flex-start;
	text-align: left;
}

body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs > .woocommerce-Tabs-panel.active,
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs.type-accordion .tabs.wc-tabs > .panel.active,
body.fi-has-customizer .fi-pdp-info__tabs .woocommerce-tabs:not(.type-accordion) .panel {
	display: block;
}

body.fi-has-customizer .woocommerce-tabs ul.tabs li a,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs > .et-woocommerce-tab > a {
	display: inline-block;
	padding: 10px 8px 12px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #777;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
}

body.fi-has-customizer .woocommerce-tabs .open-child {
	display: none !important;
}

body.fi-has-customizer .woocommerce-tabs ul.tabs li.active a,
body.fi-has-customizer .woocommerce-tabs ul.tabs li a:hover,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs > .et-woocommerce-tab.active > a,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs > .et-woocommerce-tab > a:hover,
body.fi-has-customizer .woocommerce-tabs .tabs.wc-tabs > .et-woocommerce-tab > a.opened {
	color: #111;
	border-bottom-color: #111;
}

.fi-tab-panel {
	font-size: 14px;
	line-height: 1.65;
	color: #444;
}

/* Hide XStore Elementor placeholder: "Single product builder" */
body.single-product .elementor-element-6772e5e8,
body.single-product .elementor-element-4df8143,
body.single-product .elementor-element-639906a1 {
	display: none !important;
}

/* Wishlist / SKU / categories removed on PDP */
body.single-product .elementor-widget-woocommerce-product-etheme_wishlist,
body.single-product .elementor-widget-woocommerce-product-etheme_meta,
body.single-product .fi-pdp-left-modules,
body.single-product .product_meta,
body.single-product .single-product-wishlist,
body.single-product .et-single-wishlist,
body.single-product .yith-wcwl-add-to-wishlist {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* Pull tabs block closer to the product gallery / buy box */
body.single-product .fi-pdp-extras {
	margin-top: 12px;
}

body.single-product .fi-pdp-info {
	margin-top: 0;
	margin-bottom: 28px;
}

body.single-product .fi-pdp-info__tabs {
	margin-top: 0;
	padding-top: 0;
}

/* Wishlist / meta under gallery (left column) ? kept for legacy class cleanup */
body.fi-has-customizer .fi-pdp-left-modules {
	display: none !important;
}

/* Hide Elementor Fast Shipping / Free Returns badges on PDP */
body.fi-has-customizer .elementor-element-6ec03c08 {
	display: none !important;
}

/* Main image + bottom thumbnails (diy-style). */
body.single-product .images-wrapper.thumbnails_bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: visible;
}

body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top,
body.single-product .images-wrapper.thumbnails_bottom .main-images {
	width: 100%;
	float: none;
}

body.single-product .images-wrapper.thumbnails_bottom .main-images > .swiper-slide,
body.single-product .images-wrapper.thumbnails_bottom .main-images > .images {
	width: 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top img,
body.single-product .images-wrapper.thumbnails_bottom .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	border-radius: 2px;
	object-fit: contain;
	object-position: center center;
}

/* Give edge-hugging product photos a little room so sleeves aren't flush-clipped. */
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top .swiper-slide,
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top .woocommerce-product-gallery__image {
	background: #fff;
}
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top .woocommerce-product-gallery__image > a,
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top .woocommerce-product-gallery__image {
	display: block;
	padding: 2.5%;
	box-sizing: border-box;
}

/* Neutralize leftover coverflow 3D clipping on main gallery. */
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top.swiper-container-coverflow,
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top.swiper-container-3d {
	perspective: none !important;
	transform-style: flat !important;
}
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-top .swiper-slide-active {
	transform: none !important;
}

body.single-product .images-wrapper.thumbnails_bottom .swiper-control-bottom {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

/* Theme sets .images .thumbnails { margin-left: -5px } which clips the first thumb. */
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-bottom .swiper-wrapper,
body.single-product .images-wrapper.thumbnails_bottom .swiper-wrapper.thumbnails,
body.single-product .images-wrapper.thumbnails_bottom .thumbnails-list,
body.single-product .images .thumbnails {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item,
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-bottom .swiper-slide {
	margin: 0 !important;
	opacity: 0.72;
	cursor: pointer;
	transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item img,
body.single-product .images-wrapper.thumbnails_bottom .swiper-control-bottom img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid #e5e5e5;
	border-radius: 2px;
	background: #f7f7f7;
}

body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item:hover,
body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item.swiper-slide-thumb-active,
body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item.active-thumbnail,
body.single-product .images-wrapper.thumbnails_bottom .swiper-slide-thumb-active {
	opacity: 1;
}

body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item.swiper-slide-thumb-active img,
body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item.active-thumbnail img,
body.single-product .images-wrapper.thumbnails_bottom .swiper-slide-thumb-active img {
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

body.single-product .images-wrapper.thumbnails_bottom .swiper-custom-left.thumbnails-bottom,
body.single-product .images-wrapper.thumbnails_bottom .swiper-custom-right.thumbnails-bottom {
	width: 28px;
	height: 28px;
	margin-top: -14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	opacity: 1;
}

@media (max-width: 1100px) {
	.fi-pdp-info {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.fi-pills {
		flex-wrap: wrap;
	}

	.fi-pdp-promos:not(.fi-pdp-promos--stacked) {
		grid-template-columns: 1fr;
	}

	.fi-pdp-coupons {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fi-pdp-coupon__num {
		font-size: 48px;
	}

	.fi-pdp-faq__grid {
		grid-template-columns: 1fr 1fr;
	}

	body.single-product .images-wrapper.thumbnails_bottom .thumbnail-item,
	body.single-product .images-wrapper.thumbnails_bottom .swiper-control-bottom .swiper-slide {
		flex-basis: calc((100% - 24px) / 4);
	}
}

@media (max-width: 600px) {
	.fi-pill {
		padding: 7px 11px;
		font-size: 12px;
	}

	body.fi-has-customizer .summary .price {
		font-size: 24px;
	}
}

/* Mobile / narrow: pin price + qty + ATC to the bottom of the viewport. */
@media (max-width: 767px) {
	body.fi-has-customizer.single-product {
		--fi-atc-sticky-clearance: calc(76px + env(safe-area-inset-bottom, 0px));
		padding-bottom: var(--fi-atc-sticky-clearance);
	}

	body.fi-has-customizer form.cart .fi-atc-sticky {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10040;
		width: 100%;
		margin: 0;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		background: #fff;
		border-top: 1px solid #e8e8e8;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	}

	body.fi-has-customizer form.cart .fi-atc-sticky__price {
		display: block;
		flex: 0 0 auto;
		min-width: 4.5em;
		margin: 0;
		color: #f07a1a;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.2;
		white-space: nowrap;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky__price del,
	body.fi-has-customizer form.cart .fi-atc-sticky__price .woocommerce-Price-currencySymbol {
		color: inherit;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky__price del {
		opacity: 0.55;
		font-size: 0.75em;
		font-weight: 500;
		margin-right: 4px;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky .quantity {
		flex: 0 0 auto;
		margin: 0;
		max-width: none;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky .quantity .qty {
		width: 44px;
		height: 40px;
		font-size: 15px;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky .quantity .minus,
	body.fi-has-customizer form.cart .fi-atc-sticky .quantity .plus,
	body.fi-has-customizer form.cart .fi-atc-sticky .quantity button {
		width: 36px;
		height: 40px;
		font-size: 16px;
	}

	body.fi-has-customizer form.cart .fi-atc-sticky .single_add_to_cart_button,
	body.fi-has-customizer form.cart .fi-atc-sticky button.button.alt {
		flex: 1 1 auto;
		width: auto !important;
		max-width: none;
		min-width: 0;
		height: 44px;
		padding: 0 12px !important;
		font-size: 13px !important;
		letter-spacing: 0.03em;
		white-space: nowrap;
	}

	/* Lift chat + back-to-top above the sticky purchase bar. */
	body.fi-has-customizer.single-product .fi-chat {
		bottom: calc(var(--fi-atc-sticky-clearance) + 10px);
		right: 14px;
	}

	body.fi-has-customizer.single-product .fi-chat-panel {
		height: min(560px, calc(100vh - var(--fi-atc-sticky-clearance) - 110px));
	}

	body.fi-has-customizer.single-product #back-top,
	body.fi-has-customizer.single-product .back-top {
		bottom: calc(var(--fi-atc-sticky-clearance) + 10px + 60px + 12px) !important;
		right: 18px;
	}

	body.fi-has-customizer.single-product .et-request-quote.mtips {
		bottom: calc(var(--fi-atc-sticky-clearance) + 10px + 60px + 12px + 56px) !important;
	}
}

/* —— Live jersey Preview Pack (button + modal) —— */
.fi-customize__row--preview {
	display: flex;
	justify-content: stretch;
	align-items: stretch;
	gap: 8px;
	margin: 8px 0 4px;
}

.fi-preview-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	width: 100%;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fi-preview-open::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background: currentColor;
	opacity: 0.88;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fi-preview-open:hover {
	background: #111;
	border-color: #111;
	color: #fff;
	box-shadow: none;
	transform: none;
}

.fi-preview-open:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.fi-preview-open__badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 4px;
	background: #eef6f0;
	border: 1px solid #cfe3d6;
	color: #1a7a3c;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fi-customize__personalize[hidden],
.fi-compare-methods[hidden],
.fi-customize__row--preview[hidden] {
	display: none !important;
}

.fi-preview-modal {
	position: fixed;
	inset: 0;
	z-index: 1000002;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px 12px;
}

.fi-preview-modal[hidden] {
	display: none !important;
}

.fi-preview-modal.is-open {
	display: flex !important;
	animation: fiPreviewFadeIn 0.28s ease;
}

@keyframes fiPreviewFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fi-preview-modal__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(900px 480px at 50% 18%, rgba(225, 6, 0, 0.16), transparent 55%),
		radial-gradient(700px 420px at 80% 90%, rgba(255, 196, 0, 0.08), transparent 50%),
		rgba(6, 8, 12, 0.78);
	backdrop-filter: blur(8px);
}

.fi-preview-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(94vh, 980px);
	overflow: auto;
	background:
		linear-gradient(165deg, #ffffff 0%, #f4f5f7 48%, #eef0f3 100%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 20px;
	box-shadow:
		0 40px 100px rgba(0, 0, 0, 0.42),
		0 0 0 1px rgba(0, 0, 0, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	padding: 24px 22px 20px;
	animation: fiPreviewPop 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes fiPreviewPop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.975);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.fi-preview-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.06);
	font-size: 26px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fi-preview-modal__close:hover {
	background: rgba(17, 17, 17, 0.12);
	color: #111;
	transform: rotate(90deg);
}

.fi-preview-modal__head {
	text-align: center;
	margin-bottom: 12px;
	padding: 0 40px;
}

.fi-preview-modal__brand {
	display: block;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: clamp(20px, 3.4vw, 26px);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.15;
	color: #111;
}

.fi-preview-modal__disclaimer {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: linear-gradient(90deg, rgba(230, 126, 34, 0.12), rgba(240, 210, 74, 0.14));
	border: 1px solid rgba(230, 126, 34, 0.28);
	font-size: 12.5px;
	line-height: 1.45;
	font-weight: 600;
	color: #7a3b05;
	text-align: center;
	text-decoration: none;
}

.fi-preview-modal__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	padding: 11px 13px;
	border-radius: 12px;
	background: rgba(17, 17, 17, 0.035);
	border: 1px solid rgba(17, 17, 17, 0.05);
}

.fi-preview-modal__hint {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #4b5563;
}

.fi-preview-modal__reset {
	flex-shrink: 0;
	padding: 7px 12px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.fi-preview-modal__reset:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	transform: translateY(-1px);
}

.fi-preview-modal__reset[hidden] {
	display: none !important;
}

.fi-preview-modal__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.fi-preview-modal__status {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #4b5563;
	text-align: center;
}

.fi-preview-modal__status.is-error {
	color: #b42318;
}

.fi-preview-modal__status.is-ok {
	color: #0f7a3a;
}

.fi-preview-modal__status[hidden] {
	display: none !important;
}

.fi-preview-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.fi-preview-modal__confirm-wrap,
.fi-preview-modal__confirm-alt-wrap {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.fi-preview-modal__confirm,
.fi-preview-modal__confirm-alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border-radius: 12px;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fi-preview-modal__confirm {
	border: 0;
	background: #111;
	color: #fff;
	box-shadow: 0 10px 22px rgba(17, 17, 17, 0.22);
}

.fi-preview-modal__confirm:hover {
	transform: translateY(-2px);
	background: #000;
	box-shadow: 0 14px 28px rgba(17, 17, 17, 0.28);
	color: #fff;
}

.fi-preview-modal__confirm:disabled,
.fi-preview-modal__confirm.is-busy {
	opacity: 0.72;
	cursor: wait;
	transform: none;
	filter: none;
}

.fi-preview-modal__confirm-alt {
	border: 1px solid #d1d5db;
	background: rgba(255, 255, 255, 0.88);
	color: #374151;
	box-shadow: none;
}

.fi-preview-modal__confirm-alt:hover {
	background: #fff;
	border-color: #9ca3af;
	color: #111;
}

.fi-preview-modal__confirm-alt:disabled,
.fi-preview-modal__confirm-alt.is-busy {
	opacity: 0.72;
	cursor: wait;
}

.fi-preview-modal__actions-note {
	margin: 0;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
	text-align: center;
}

.fi-preview-modal__styles {
	display: grid;
	grid-template-columns: minmax(120px, 1.3fr) minmax(140px, 1.4fr) auto auto;
	gap: 10px 12px;
	align-items: end;
	margin: 0 0 14px;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow:
		0 10px 24px rgba(17, 17, 17, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fi-preview-style {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.fi-preview-style__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.fi-preview-style__select {
	width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 600;
}

.fi-preview-style--size {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	column-gap: 8px;
	align-items: center;
}

.fi-preview-style--size .fi-preview-style__label {
	grid-column: 1 / -1;
}

.fi-preview-style__range {
	width: 100%;
	accent-color: #e10600;
}

.fi-preview-style__size-val {
	min-width: 2.4em;
	font-size: 12px;
	font-weight: 700;
	color: #111;
	text-align: right;
}

.fi-preview-style__color {
	width: 44px;
	height: 36px;
	max-width: 44px;
	max-height: 36px;
	flex: 0 0 44px;
	align-self: flex-start;
	padding: 2px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fi-preview-style__color:hover {
	border-color: #9ca3af;
	box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.08);
}

.fi-preview-style[data-fi-style-color] {
	width: auto;
	justify-self: start;
	align-items: flex-start;
}

.fi-preview-style__color::-webkit-color-swatch-wrapper {
	padding: 0;
}

.fi-preview-style__color::-webkit-color-swatch {
	border: none;
	border-radius: 5px;
}

.fi-preview-style__color::-moz-color-swatch {
	border: none;
	border-radius: 5px;
}

body.fi-preview-modal-open {
	overflow: hidden;
}

.fi-jersey-preview {
	margin: 0;
}

.fi-jersey-preview__stage {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	background:
		radial-gradient(circle at 50% 30%, #ffffff 0%, #eef1f5 55%, #e4e8ee 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	container-type: inline-size;
	container-name: fi-jersey-preview;
	touch-action: none;
	user-select: none;
}

.fi-jersey-preview__glow {
	position: absolute;
	inset: auto 10% -20% 10%;
	height: 45%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.fi-jersey-preview__blank {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	pointer-events: none;
}

.fi-jersey-preview__layer {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.fi-jersey-preview__slot {
	position: absolute;
	--fi-rotate: 0deg;
	transform: translate(-50%, -50%) rotate(var(--fi-rotate, 0deg));
	box-sizing: border-box;
	max-width: 100%;
	pointer-events: auto;
	cursor: grab;
	touch-action: none;
	transition: box-shadow 0.15s ease, outline-color 0.15s ease;
	outline: 1px dashed transparent;
	outline-offset: 4px;
	border-radius: 4px;
}

.fi-jersey-preview__slot:hover:not(.is-style-selected) {
	outline-color: rgba(17, 17, 17, 0.22);
}

.fi-jersey-preview__slot.is-dragging {
	cursor: grabbing;
	z-index: 5;
	outline-color: rgba(225, 6, 0, 0.55);
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.fi-jersey-preview__slot.is-style-selected {
	outline: 2px solid rgba(225, 6, 0, 0.75) !important;
	outline-offset: 3px;
}

.fi-jersey-preview__rotate-handle {
	position: absolute;
	left: auto;
	right: -6px;
	top: auto;
	bottom: -6px;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #111;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	/* Keep icon upright while parent text rotates. */
	transform: translate(40%, 40%) rotate(calc(-1 * var(--fi-rotate, 0deg)));
	cursor: grab;
	touch-action: none;
	z-index: 12;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.fi-jersey-preview__rotate-handle svg {
	width: 12px;
	height: 12px;
	display: block;
	pointer-events: none;
}

.fi-jersey-preview__rotate-handle:hover,
.fi-jersey-preview__rotate-handle:focus-visible {
	background: #e10600;
	outline: none;
}

.fi-jersey-preview__rotate-handle.is-active {
	cursor: grabbing;
	background: #e10600;
}

.fi-jersey-preview__slot[hidden]:not(.is-on) {
	display: none !important;
}

.fi-jersey-preview__slot.is-on {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 6;
}

.fi-jersey-preview__slot--text {
	--fi-fill: #3d2314;
	--fi-stroke: #f0d24a;
	width: max-content !important;
	height: auto !important;
	max-width: none;
	font-size: calc(var(--fi-font, 3.5) * 1cqw);
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: visible;
	padding: 0.08em 0.12em;
	color: var(--fi-fill) !important;
	-webkit-text-stroke: calc(var(--fi-font, 3.5) * 0.09cqw) var(--fi-stroke);
	paint-order: stroke fill;
	text-shadow:
		0 1px 0 rgba(0, 0, 0, 0.18),
		0 2px 4px rgba(0, 0, 0, 0.12);
}

.fi-jersey-preview__slot-text {
	display: block !important;
	width: max-content;
	visibility: visible !important;
	pointer-events: none;
	color: inherit;
	position: relative;
	line-height: inherit;
}

/* Front team name — cursive script + swoosh. */
.fi-jersey-preview__slot--text.is-style-script,
.fi-jersey-preview__slot--text[data-fi-slot-role="front_team"] {
	--fi-fill: #3d2314;
	--fi-stroke: #f0d24a;
	--fi-rotate: -6deg;
	font-family: "Pacifico", "Brush Script MT", "Segoe Script", cursive !important;
	font-weight: 400;
	font-style: normal;
	text-transform: none !important;
	letter-spacing: 0.01em;
	-webkit-text-stroke: calc(var(--fi-font, 3.5) * 0.11cqw) var(--fi-stroke);
}

.fi-jersey-preview__slot--text.is-style-script .fi-jersey-preview__slot-text,
.fi-jersey-preview__slot--text[data-fi-slot-role="front_team"] .fi-jersey-preview__slot-text {
	padding-bottom: 0.18em;
}

.fi-jersey-preview__slot--text.is-style-script .fi-jersey-preview__slot-text::after,
.fi-jersey-preview__slot--text[data-fi-slot-role="front_team"] .fi-jersey-preview__slot-text::after {
	content: "";
	position: absolute;
	left: 8%;
	right: -4%;
	bottom: 0.02em;
	height: 0.14em;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent 0%, var(--fi-fill) 12%, var(--fi-fill) 88%, transparent 100%);
	box-shadow: 0 0 0 calc(var(--fi-font, 3.5) * 0.045cqw) var(--fi-stroke);
	transform: rotate(-2deg);
	pointer-events: none;
}

/* Numbers — athletic block. */
.fi-jersey-preview__slot--text.is-style-block,
.fi-jersey-preview__slot--text[data-fi-slot-role="front_number"],
.fi-jersey-preview__slot--text[data-fi-slot-role="back_number"],
.fi-jersey-preview__slot--text[data-fi-slot-role="shoulder_number"],
.fi-jersey-preview__slot--text[data-fi-slot-role="sleeves_number"] {
	--fi-fill: #3d2314;
	--fi-stroke: #f0d24a;
	font-family: "Bebas Neue", "Teko", Impact, "Arial Narrow Bold", sans-serif !important;
	font-weight: 400;
	text-transform: uppercase !important;
	letter-spacing: 0.04em;
	-webkit-text-stroke: calc(var(--fi-font, 7) * 0.08cqw) var(--fi-stroke);
}

/* Back player name — yellow fill + brown outline, arched letters. */
.fi-jersey-preview__slot--text[data-fi-slot-role="back_name"],
.fi-jersey-preview__slot--text.is-style-back-name {
	--fi-fill: #f0d24a;
	--fi-stroke: #3d2314;
	font-family: "Oswald", "Teko", "Arial Narrow", sans-serif !important;
	font-weight: 700;
	text-transform: uppercase !important;
	letter-spacing: 0.08em;
	-webkit-text-stroke: calc(var(--fi-font, 2.8) * 0.1cqw) var(--fi-stroke);
	padding: 0.35em 0.2em 0.2em;
}

.fi-jersey-preview__slot-text.is-arched {
	display: inline-flex !important;
	align-items: flex-end;
	justify-content: center;
	gap: 0;
	line-height: 1;
	width: max-content;
	padding: 0.15em 0.05em 0;
}

.fi-jersey-preview__char {
	display: inline-block;
	transform-origin: center bottom;
	will-change: transform;
}

.fi-jersey-preview__slot--logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

@supports not (font-size: 1cqw) {
	.fi-jersey-preview__slot--text {
		font-size: calc(var(--fi-font, 3) * 0.55vw);
		-webkit-text-stroke-width: 1.5px;
	}

	.fi-jersey-preview__slot--text.is-style-script .fi-jersey-preview__slot-text::after,
	.fi-jersey-preview__slot--text[data-fi-slot-role="front_team"] .fi-jersey-preview__slot-text::after {
		box-shadow: 0 0 0 1.5px var(--fi-stroke);
	}
}

.fi-preview-modal__styles.is-logo-mode {
	grid-template-columns: minmax(140px, 1.2fr) minmax(160px, 1.6fr);
}

.fi-preview-modal__styles.is-logo-mode [data-fi-style-color] {
	display: none;
}

@media (max-width: 640px) {
	.fi-preview-modal__dialog {
		padding: 18px 12px 14px;
		border-radius: 16px;
	}

	.fi-preview-modal__head {
		padding: 0 28px;
	}

	.fi-preview-modal__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.fi-preview-modal__reset {
		width: 100%;
	}

	.fi-preview-modal__actions {
		flex-direction: column;
	}

	.fi-preview-modal__confirm-wrap,
	.fi-preview-modal__confirm-alt-wrap,
	.fi-preview-modal__confirm,
	.fi-preview-modal__confirm-alt {
		flex: 1 1 auto;
		width: 100%;
	}

	.fi-preview-modal__styles {
		grid-template-columns: 1fr 1fr;
	}

	.fi-preview-style--size {
		grid-column: 1 / -1;
	}

	.fi-preview-modal__styles.is-logo-mode {
		grid-template-columns: 1fr;
	}
}
