.table-product-visual {
	position: relative;
	width: 512px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f1ed;
}

.table-product-visual__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease;
}

.table-product-visual__image.is-changing {
	opacity: .35;
}

.table-product-visual__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .64);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity .2s ease, background-color .2s ease;
}

.table-product-visual:hover .table-product-visual__arrow,
.table-product-visual__arrow:focus-visible {
	opacity: 1;
}

.table-product-visual__arrow:hover,
.table-product-visual__arrow:focus-visible {
	background: rgba(255, 255, 255, .9);
}

.table-product-visual__arrow:before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	content: "";
	border-top: 2px solid rgba(40, 40, 40, .7);
	border-left: 2px solid rgba(40, 40, 40, .7);
}

.table-product-visual__arrow--prev {
	left: 14px;
}

.table-product-visual__arrow--prev:before {
	transform: translate(-35%, -50%) rotate(-45deg);
}

.table-product-visual__arrow--next {
	right: 14px;
}

.table-product-visual__arrow--next:before {
	transform: translate(-65%, -50%) rotate(135deg);
}

.table-product-visual__pagination {
	position: absolute;
	right: 18px;
	bottom: 14px;
	left: 18px;
	z-index: 2;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.table-product-visual__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(90, 90, 90, .35);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color .2s ease, transform .2s ease;
}

.table-product-visual__dot--active {
	background: rgba(90, 90, 90, .72);
	transform: scale(1.2);
}

.table-product-configurator__group {
	margin: 0;
	padding: 0;
	border: 0;
}

.table-product-configurator__group-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	color: #171717;
}

.table-product-configurator__group-name {
	display: block;
}

.table-product-configurator__palette-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 6px 12px;
	border: 1px solid rgba(239, 125, 0, .24);
	border-radius: 999px;
	background: #fff7ef;
	color: #ef7d00;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.table-product-configurator__palette-button:hover,
.table-product-configurator__palette-button:focus-visible {
	border-color: #ef7d00;
	background: #ef7d00;
	color: #fff;
}

.table-product-configurator__options {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
}

.table-product-configurator__option {
	position: relative;
	display: flex;
	align-items: center;
}

.table-product-configurator__option[hidden] {
	display: none;
}

.table-product-configurator__input,
.table-product-configurator__test-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
}

.table-product-configurator__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 25px;
	cursor: pointer;
	color: #282828;
	font-size: 15px;
	line-height: 1.3;
}

.table-product-configurator__label:before {
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	content: "";
	border: 1px solid #aaa;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 4px #fff;
}

.table-product-configurator__input:checked + .table-product-configurator__label:before {
	border-color: #ef7d00;
	background: #ef7d00;
}

.table-product-configurator__input:focus-visible + .table-product-configurator__label {
	outline: 2px solid #ef7d00;
	outline-offset: 4px;
}

.table-color-palette[hidden] {
	display: none;
}

.table-color-palette {
	position: fixed;
	z-index: 2147482000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.table-color-palette-open {
	overflow: hidden;
	padding-right: var(--table-color-palette-scrollbar-width, 0);
}

.table-color-palette__overlay {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, .58);
}

.table-color-palette__dialog {
	box-sizing: border-box;
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 34px 36px 32px;
	background: #fff;
	box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
	scrollbar-gutter: stable;
}

.table-color-palette__close {
	position: sticky;
	z-index: 3;
	top: 0;
	display: block;
	margin: -16px -18px -18px auto;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f5f5f5;
	cursor: pointer;
}

.table-color-palette__close:before,
.table-color-palette__close:after {
	position: absolute;
	top: 16px;
	left: 9px;
	width: 16px;
	height: 2px;
	content: "";
	background: #171717;
}

.table-color-palette__close:before {
	transform: rotate(45deg);
}

.table-color-palette__close:after {
	transform: rotate(-45deg);
}

.table-color-palette__title {
	margin: 0 44px 10px 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #171717;
}

.table-color-palette__text {
	margin: 0 0 26px;
	color: #7b8490;
	font-size: 15px;
	line-height: 1.5;
}

.table-color-palette__mechanisms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 22px;
}

.table-color-palette__mechanism {
	padding: 20px 22px;
	border: 1px solid #e9ded1;
	background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
	box-shadow: 0 8px 24px rgba(30, 24, 18, .05);
}

.table-color-palette__mechanism-title {
	margin: 0 0 10px;
	color: #171717;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.table-color-palette__mechanism-text {
	margin: 0;
	color: #4f5963;
	font-size: 15px;
	line-height: 1.55;
}

.table-color-palette__section + .table-color-palette__section {
	margin-top: 28px;
}

.table-color-palette__section-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #171717;
}

.table-color-palette__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.table-color-palette__item {
	display: grid;
	grid-template-columns: 68px 1fr;
	align-items: center;
	gap: 12px;
	min-height: 86px;
	padding: 12px 14px;
	border: 1px solid #e9ded1;
	background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
	box-shadow: 0 8px 24px rgba(30, 24, 18, .05);
}

.table-color-palette__swatch {
	position: relative;
	display: block;
	width: 68px;
	height: 58px;
	border: 1px solid rgba(0, 0, 0, .08);
	transform: skewX(-10deg);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 7px 16px rgba(0, 0, 0, .1);
}

.table-color-palette__swatch:before,
.table-color-palette__swatch:after {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
}

.table-color-palette__swatch:before {
	background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 34%, rgba(0, 0, 0, .12) 66%, rgba(255, 255, 255, .2) 100%);
	mix-blend-mode: soft-light;
}

.table-color-palette__swatch:after {
	background-image: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 18%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0, rgba(255, 255, 255, .13) 1px, rgba(0, 0, 0, .04) 2px, rgba(0, 0, 0, .04) 3px);
	opacity: .42;
}

.table-color-palette__swatch--gold {
	background: linear-gradient(135deg, #917600 0%, #d0b100 27%, #fff176 47%, #c59700 67%, #725a00 100%);
}

.table-color-palette__swatch--silver {
	background: linear-gradient(135deg, #aeb3b5 0%, #f6f6f3 34%, #c5c9ca 52%, #80878a 72%, #f4f5f3 100%);
}

.table-color-palette__swatch--bronze {
	background: linear-gradient(135deg, #8a5429 0%, #bd7b36 28%, #dfa35f 49%, #a76732 72%, #6f3d1e 100%);
}

.table-color-palette__swatch--champagne-beige {
	background: linear-gradient(135deg, #9a8657 0%, #c3ae75 34%, #e3d29c 52%, #ae965f 76%, #806c43 100%);
}

.table-color-palette__swatch--champagne-silver {
	background: linear-gradient(135deg, #8f9694 0%, #c6cbc8 33%, #e6e9e5 50%, #a7adaa 72%, #7b8381 100%);
}

.table-color-palette__swatch--chrome {
	background: linear-gradient(135deg, #f9f9f8 0%, #ffffff 19%, #9fa5a8 36%, #ffffff 49%, #c7cbcd 62%, #ffffff 78%, #8e9497 100%);
}

.table-color-palette__swatch--ral-9003 {
	background: #ecece7;
}

.table-color-palette__swatch--ral-9005 {
	background: #0a0d0d;
}

.table-color-palette__swatch--ral-1015 {
	background: #e6d2b5;
}

.table-color-palette__swatch--ral-1019 {
	background: #a48f7a;
}

.table-color-palette__swatch--ral-7004 {
	background: #9b9b9b;
}

.table-color-palette__swatch--ral-8017 {
	background: #44322d;
}

.table-color-palette__item--image {
	grid-template-columns: 92px 1fr;
}

.table-color-palette__sample {
	display: block;
	width: 92px;
	height: 68px;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, .08);
	background: #f6f2ed;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 7px 16px rgba(0, 0, 0, .08);
}

.table-color-palette__name {
	color: #282828;
	font-size: 14px;
	line-height: 1.3;
}

.table-color-palette--shapes .table-color-palette__dialog {
	width: min(520px, 100%);
}

.table-shape-palette {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 22px;
}

.table-shape-palette__item {
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.table-shape-palette__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.table-shape-palette__image {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.table-product-configurator__group-title {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.table-product-configurator__options {
		gap: 12px 18px;
	}

	.table-color-palette {
		align-items: center;
		padding: 14px;
	}

	.table-color-palette__dialog {
		max-height: calc(100vh - 28px);
		padding: 28px 18px 22px;
	}

	.table-color-palette__title {
		font-size: 24px;
	}

	.table-color-palette__mechanisms {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 18px;
	}

	.table-color-palette__mechanism {
		padding: 16px;
	}

	.table-color-palette__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.table-color-palette__item {
		grid-template-columns: 56px 1fr;
		gap: 10px;
		padding: 8px 10px;
	}

	.table-color-palette__swatch {
		width: 56px;
		height: 48px;
	}

	.table-color-palette__item--image {
		grid-template-columns: 68px 1fr;
	}

	.table-color-palette__sample {
		width: 68px;
		height: 52px;
	}

	.table-shape-palette {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}

	.table-shape-palette__item {
		padding: 0;
	}

	.table-shape-palette__preview {
		min-height: 0;
	}
}

@media (max-width: 420px) {
	.table-color-palette__grid {
		grid-template-columns: 1fr;
	}
}
