.tfv-fabric-selector.vbf-configurator-modal {

	padding: 30px;


	--vbf-border: #e6e6e6;
	--vbf-text: #141414;
	--vbf-muted: #646464;
	--vbf-bg-soft: #f6f6f6;
	position: relative;
	margin: 0;
	 
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	height: 100dvh;
	max-height: 100dvh;
	min-height: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	overflow: hidden;
}

.vbf-configurator-header {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.vbf-configurator-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
	color: var(--vbf-text);
}

.vbf-configurator-subtitle {
	margin: 8px 0 0;
	font-size: 17px;
	color: #202020;
}

.vbf-configurator-body {
	display: grid;
	grid-template-columns: minmax(0, 54%) minmax(0, 46%);
	gap: 24px;
	padding-bottom: 24px;
	height: 100%;
	min-height: 0;
	align-items: start;
	overflow: hidden;
}

.vbf-configurator-preview {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	min-height: 0;
	
	overflow: hidden;
}

.vbf-preview-placeholder {
	width: 100%;
	text-align: center;
	color: var(--vbf-muted);
	padding: 24px;
}

.vbf-preview-placeholder svg {
	width: 72px;
	height: 72px;
	fill: none;
	stroke: #a8a8a8;
	stroke-width: 2;
}

.vbf-preview-title {
	margin: 18px 0 8px;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
	color: #202020;
}

.vbf-preview-subtitle {
	margin: 0;
	font-size: 24px;
	line-height: 1.35;
}

.tfv-fabric-selector .tfv-product-preview img {
	display: none;
	    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;

	background: #f7f7f7;


	border: 1px solid #efefef;
	border-radius: 18px;
	background: linear-gradient(145deg, #f7f7f7, #f0f0f0);
}

.tfv-product-preview img.tfv-preview-visible {
	display: block !important;
}

.vbf-colors-title {
	margin: 2px 0 14px;
	font-size: 30px;
	line-height: 1.1;
}

.vbf-filter-wrap {
	margin: 0 0 14px;
}

.vbf-color-filter {
	width: 100%;
	max-width: none;
	height: 54px;
	padding: 0 16px;
	border: 1px solid #d5d5d5;
	border-radius: 12px;
	font-size: 16px;
}

.vbf-color-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	flex:  0 1 auto;
	height: auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0 8px 0 0;
}

.vbf-configurator-colors {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.vbf-color-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid #dddddd;
	border-radius: 10px;
	padding: 8px;
	gap: 7px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vbf-color-card input[type="radio"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}
/*
.vbf-color-card:focus-within {
	outline: 2px solid #111;
	outline-offset: 2px;
}
.vbf-color-filter:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}
	*/

.vbf-color-card img,
.vbf-color-card .tfv-no-image {
	height: 104px;
	border-radius: 6px;
}

.vbf-color-card:hover {
	/*transform: scale(1.015);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	*/
	border-color: #999;
}

.vbf-color-check {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: none;
	align-items: center;
	justify-content: center;
}

.tfv-variant-card.is-selected {
	border-color: #111;
	box-shadow: none;
}

.tfv-variant-card.is-selected .vbf-color-check {
	display: flex;
}

.tfv-color-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	display: block;
}

.tfv-color-code {
	font-size: 14px;
	color: #4f4f4f;
	display: block;
}

.vbf-configurator-footer {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--vbf-border);
	background: #fff;
	padding: 16px 0 18px;
}

.vbf-footer-selection {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.vbf-footer-swatch {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 1px dashed #ccc;
	border-radius: 10px;
	background: #f7f7f7;
}

.vbf-footer-swatch.is-filled {
	border-style: solid;
	border-color: #ddd;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.vbf-footer-copy p {
	margin: 0;
}

.vbf-footer-primary {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
}

.vbf-footer-secondary {
	font-size: 16px;
	color: var(--vbf-muted);
}

.vbf-footer-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.vbf-footer-price {
	text-align: right;
}

.vbf-footer-price-label {
	margin: 0;
	font-size: 16px;
	color: #4f4f4f;
}

.vbf-footer-price-value {
	font-size: 34px;
	line-height: 1;
	color: #161616;
}

.vbf-footer-cta-wrap .single_add_to_cart_button {
	height: 56px;
	padding: 0 26px;
	border-radius: 16px;
	font-size: 21px;
	font-weight: 600;
}

.vbf-footer-cta-wrap .single_add_to_cart_button.disabled,
.vbf-footer-cta-wrap .single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: not-allowed;

	background-color: var(--vbf-muted	) !important;
}
@media (max-width: 1600px) {
	.vbf-color-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 1024px) {
	.vbf-configurator-body {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
	}

	.vbf-configurator-preview {
		min-height: 360px;
	}

.vbf-color-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vbf-configurator-colors {
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}
}

@media (max-width: 640px) {
	.tfv-fabric-selector.vbf-configurator-modal {
		margin: 0;
		 
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.vbf-configurator-title {
		font-size: 28px;
	}

	.vbf-configurator-subtitle {
		font-size: 15px;
	}

	.vbf-configurator-preview {
		min-height: 290px;
	}

	.vbf-preview-title {
		font-size: 30px;
	}

	.vbf-preview-subtitle {
		font-size: 18px;
	}

	.vbf-colors-title {
		font-size: 24px;
	}

	.vbf-color-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vbf-configurator-colors {
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.vbf-configurator-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-bottom: 14px;
	}

	.vbf-footer-actions {
		justify-content: space-between;
	}

	.vbf-footer-price-value {
		font-size: 28px;
	}

	.vbf-footer-cta-wrap .single_add_to_cart_button {
		width: 100%;
	}
}

@media (max-width: 767px) {
	html,
	body {
		overflow-x: hidden;
	}

	.tfv-fabric-selector.vbf-configurator-modal.vbf-configurator-mobile {
		position: relative;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: 100dvh;
		padding: 0;
		border: 0;
		border-radius: 20px 20px 0 0;
	}

	.tfv-fabric-selector.vbf-configurator-modal.vbf-configurator-mobile::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		pointer-events: none;
		z-index: -1;
	}

	.vbf-mobile-header {
		position: sticky;
		top: 0;
		z-index: 5;
		align-items: center;
		gap: 12px;
		margin: 0;
		padding: 14px 16px;
		border-bottom: 1px solid #ececec;
		background: #fff;
	}

	.vbf-configurator-title {
		font-size: 26px;
		line-height: 1.08;
	}

	.vbf-configurator-subtitle {
		margin-top: 6px;
		font-size: 14px;
	}

	.vbf-configurator-body {
		display: block;
		padding: 12px 16px 16px;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.vbf-mobile-preview {
		height: clamp(220px, 36vh, 280px);
		min-height: 220px;
		margin-bottom: 14px;
	}

	.vbf-preview-placeholder {
		padding: 18px 16px;
	}

	.vbf-preview-placeholder svg {
		width: 58px;
		height: 58px;
	}

	.vbf-preview-title {
		margin-top: 10px;
		font-size: 24px;
	}

	.vbf-preview-subtitle {
		font-size: 15px;
		line-height: 1.35;
	}

	.vbf-colors-title {
		margin: 0 0 10px;
		font-size: 22px;
	}

	.vbf-filter-wrap {
		margin-bottom: 12px;
	}

	.vbf-color-filter {
		height: 48px;
		border-radius: 10px;
		font-size: 16px;
	}

	.vbf-configurator-colors {
		overflow: visible;
		height: auto;
	}

	.vbf-mobile-color-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		padding: 0 0 8px;
		overflow: visible;
	}

	.vbf-color-card {
		border-radius: 12px;
		padding: 10px;
		gap: 8px;
		min-height: 170px;
	}

	.vbf-color-card img,
	.vbf-color-card .tfv-no-image {
		height: 86px;
	}

	.tfv-color-name {
		font-size: 15px;
		line-height: 1.2;
	}

	.tfv-color-code {
		font-size: 13px;
		line-height: 1.2;
	}

	.vbf-color-check {
		top: 8px;
		right: 8px;
		width: 20px;
		height: 20px;
	}

	.vbf-mobile-footer {
		position: sticky;
		bottom: 0;
		z-index: 6;
		display: block;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #ececec;
	}

	.vbf-footer-selection {
		align-items: center;
		margin-bottom: 10px;
	}

	.vbf-footer-swatch {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		border-radius: 8px;
	}

	.vbf-footer-primary {
		font-size: 14px;
		line-height: 1.25;
	}

	.vbf-footer-secondary {
		font-size: 12px;
		line-height: 1.2;
	}

	.vbf-footer-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.vbf-footer-price {
		text-align: right;
	}

	.vbf-footer-price-label {
		font-size: 12px;
	}

	.vbf-footer-price-value {
		font-size: 24px;
	}

	.vbf-footer-cta-wrap .single_add_to_cart_button {
		width: 100%;
		height: 48px;
		min-height: 44px;
		border-radius: 12px;
		background: #111;
		color: #fff;
		font-size: 16px;
		font-weight: 700;
	}

	.vbf-footer-cta-wrap .single_add_to_cart_button.disabled,
	.vbf-footer-cta-wrap .single_add_to_cart_button:disabled {
		background: #d6d6d6;
		color: #7a7a7a;
		opacity: 1;
	}
}

@media (min-width: 390px) and (max-width: 767px) {
	.vbf-mobile-color-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
