/* Editor page layout and look & feel */

.color-red {
	color: #d11;
	font-weight: 300;
}

.vw-editor__header {
	background: var(--primary-color);
	padding: 16px 0;
	margin-bottom: 50px;
}

.vw-editor__title {
	color: #fff;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.vw-editor__stats {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0;
	margin: 0 0 64px;
}

.vw-editor__stat {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	max-width: 100px;
	text-align: center;
}

.vw-editor-background-overnumber {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vw-editor__stat-number {
	color: #fff;
	font-weight: 700;
	font-size: 30px;
	margin-top: 3px;
}

.vw-editor__stat-label {
	display: block;
	color: #6e7990;
	margin-top: 12px;
	font-size: 19px;
}

.vw-editor__step {
	color: #6e7990;
	margin-bottom: 32px;
}

.vw-editor__section {
	font-size: 19px;
	margin-bottom: 24px;
}

.vw-editor__cards {
	display: grid;
	gap: 40px;
}

.vw-editor__container {
	max-width: 1600px;
	margin: 0 auto;
}

.editor-grid {
	display: grid;
	grid-template: "main aside"1fr / 9fr minmax(400px, 1fr);
	grid-gap: 0 48px;
	scroll-margin-top: 52px;
	scrollbar-width: none;
	transition: none;
	max-width: 100%;
}

.editor-grid__left {
	grid-area: main;
	height: fit-content;
	min-height: fit-content;
	overflow: visible;
	position: sticky;
	top: 30px;
	align-self: start;
	transition: top 0.3s ease, min-height 0.3s ease;
	max-width: 100%;
	min-width: 0;
}

@media(max-height: 912px) {
	.editor-grid__left {
		top: -30px;
	}
}

.editor-grid__right {
	grid-area: aside;
	-webkit-overflow-scrolling: touch;
	overflow: visible !important;
	margin-bottom: 100px;
}

.editor-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.05);
	border: 1px solid black;
	max-width: 60%;
}

.editor-top-bar-left {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.editor-top-bar-right {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.editor-main-section {
	margin-top: 48px;
	position: relative;
	padding-bottom: 80px;
	padding-right: 80px;
	max-width: 100%;
	overflow: visible;
}

/* Grid Builder */
.vw-grid-builder {
	position: relative;
	max-width: 100%;
	border: 1px solid #000;
	background: #fff;
	padding: 50px 100px 100px 50px;
	width: fit-content;
	background-color: rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

/* Dimension lines - positioned outside grid builder */
.editor-main-section__dimensions {
	position: absolute;
	pointer-events: none;
	color: var(--primary-color);
	font-size: 12px;
	font-weight: 700;
}

.editor-main-section__dimension-line {
	position: absolute;
	background-color: var(--primary-color);
}

/* First horizontal dimension line (single cell width) - positioned at bottom, closer to grid */
.editor-main-section__dimension--horizontal-first {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--vw-cell-w, 120px);
	text-align: center;
}

.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-line {
	width: 100%;
	height: 1px;
	bottom: 3.5px;
	left: 50%;
	transform: translateX(-50%);
}

.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers {
	position: relative;
	width: 100%;
	height: 8px;
}

.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::before,
.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::after {
	content: '|';
	position: absolute;
	width: 0;
	height: 0;
	top: 0;
}

.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::before {
	left: -2px;
}

.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::after {
	right: 2px;
}

/* Second horizontal dimension line (full grid width) - positioned at bottom, further from grid */
.editor-main-section__dimension--horizontal-second {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--vw-grid-total-width, 240px);
	text-align: center;
}

.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-line {
	width: 100%;
	height: 1px;
	bottom: 3.5px;
	border-radius: 100px;
	margin: 0 auto;
	left: 50%;
	transform: translateX(-50%);
}

.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers {
	position: relative;
	width: 100%;
	height: 8px;
}

.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::before,
.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::after {
	content: '|';
	position: absolute;
	width: 0;
	height: 0;
	top: 0;
}

.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::before {
	left: -1px;
}

.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::after {
	right: 2px;
}

/* First vertical dimension line (single cell height) - positioned at right, closer to grid */
.editor-main-section__dimension--vertical-first {
	position: absolute;
	top: 0;
	left: 0;
	height: var(--vw-cell-h, 180px);
	text-align: center;
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-line {
	height: 100%;
	width: 1px;
	right: 3.5px;
	top: 1px;
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers {
	position: relative;
	height: 100%;
	width: 8px;
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::before,
.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::after {
	content: '|';
	position: absolute;
	width: 0;
	height: 0;
	left: 0;
	transform: rotate(-90deg);
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::before {
	top: 3px;
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::after {
	bottom: -3px;
}

/* Second vertical dimension line (full grid height) - positioned at right, further from grid */
.editor-main-section__dimension--vertical-second {
	position: absolute;
	top: 0;
	left: 0;
	height: var(--vw-grid-total-height, 360px);
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-line {
	height: 100%;
	width: 1px;
	right: 3.5px;
	top: 1px;
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers {
	position: relative;
	height: 100%;
	width: 8px;
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::before,
.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::after {
	content: '|';
	position: absolute;
	width: 0;
	height: 0;
	right: 0;
	transform: rotate(90deg);
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::before {
	top: 0;
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::after {
	bottom: 0;
}

.editor-main-section__dimension-label {
	font-size: 14px;
	white-space: nowrap;
	padding: 2px 6px;
	border-radius: 3px;
	background: transparent;
}

.vw-stockage-system-card .vw-onduleur-card__specs-recommended {
	display: none;
	color: #d11;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-style: italic;
	font-weight: 400;
	position: absolute;
	top: 10px;
	margin: 0;
}

.editor-main-section__dimension--vertical-first .editor-main-section__dimension-label,
.editor-main-section__dimension--vertical-second .editor-main-section__dimension-label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.editor-main-section__dimension--vertical-second .editor-main-section__dimension-label {
	padding: 3px 12px;
}

.vw-grid-builder--duplicate {
	margin-top: 100px;
}

.vw-grid-builder__matrix {
	display: grid;
	/* Default CSS variables; can be overridden inline via JS */
	--vw-grid-cols: 2;
	--vw-cell-w: 120px;
	--vw-cell-h: 180px;
	grid-template-columns: repeat(var(--vw-grid-cols, 2), minmax(30px, var(--vw-cell-w, 120px)));
	grid-auto-rows: var(--vw-cell-h, 180px);
	gap: 0;
	width: 100%;
}

.vw-grid-cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #000;
	height: var(--vw-cell-h, 180px);
	min-width: 0;
	background: #fff;
	transition: background-color 0.2s ease-in-out;
	cursor: pointer;
}

.vw-grid-cell img {
	max-width: 30%;
	max-height: 30%;
}

.vw-grid-cell.is-active:before {
	content: "";
	position: absolute;
	inset: 0;
	background: #111;
	padding: 3px;
	margin: 1px;
	border: 5px solid #333;
	transition: all .3s ease;
	transform: unset;
}

.vw-grid-cell.is-active:hover:before {
	opacity: 0.7;
}


.vw-grid-cell__toggle {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid #000;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #333;
}

.vw-grid-builder__controls {
	position: absolute;
	display: flex;
	gap: 16px;
}

.vw-grid-builder__controls--right {
	top: 50%;
	right: 25px;
	transform: translateY(-50%);
	flex-direction: column;
}

.vw-grid-builder__controls--bottom {
	left: 50%;
	bottom: 25px;
	transform: translateX(-50%);
}

.vw-grid-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	outline: none;
}

.vw-grid-btn:active {
	transform: scale(0.98);
}

.editor-button {
	width: 50px;
	height: 50px;
	cursor: pointer;
	touch-action: manipulation;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.editor-button .editor-icon-hover,
.vw-grid-btn img.editor-icon-hover {
	display: none;
}

.editor-button:hover img,
.vw-grid-btn:hover img {
	display: none;
}

.editor-button:hover img.editor-icon-hover,
.vw-grid-btn:hover img.editor-icon-hover {
	display: block;
	cursor: pointer;
}

.chose-roof,
.chose-onduleur {
	margin-top: 50px;
}

.vw-roof-card {
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 12px;
	outline: 1px solid #000;
	border-radius: 8px;
	background-color: #fff;
	position: relative;
	height: 144px;
}

.vw-roof-card__media {
	width: 120px;
	height: 100%;
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: fles-start;
}

.vw-roof-card__media-inner {
	border: 1px solid #000;
	border-radius: 50%;
	width: 80px;
	height: 80px;
}

.vw-roof-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Roof card hover overlay */
.vw-roof-card__details-overlay {
	position: absolute;
	top: -5px;
	left: -5px;
	right: -5px;
	bottom: -5px;
	width: calc(100% + 10px);
	height: calc(100% + 10px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease-in-out;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(100, 110, 130, 0.4);
}

.vw-roof-card__details-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #8b94a8;
	border-radius: 8px;
	filter: blur(1px);
	-webkit-filter: blur(1px);
	z-index: 0;
}

.vw-roof-card:hover .vw-roof-card__details-overlay {
	opacity: 1;
	pointer-events: auto;
}

.vw-roof-card__details-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	filter: blur(0);
	position: relative;
	z-index: 1;
	padding-left: 123px;
	height: 100%;
	justify-content: center;
}

.vw-roof-card__details {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vw-roof-card__details li {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1.4;
}

.vw-roof-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1.4;
}

.vw-onduleur-card,
.vw-stockage-system-card,
.vw-recharge-card {
	position: relative;
	display: flex;
	align-items: center;
	padding: 12px;
	outline: 1px solid #000;
	border-radius: 8px;
	background-color: #fff;
	cursor: pointer;
	height: 144px;
}

.vw-onduleur-card.is-selected,
.vw-stockage-system-card.is-selected,
.vw-recharge-card.is-selected,
.vw-roof-card.is-selected,
.vw-card.is-selected {
	outline: 3px solid var(--primary-color);
	position: relative;
}

/* .vw-onduleur-card.is-selected:before,
.vw-stockage-system-card.is-selected:before,
.vw-recharge-card.is-selected:before,
.vw-roof-card.is-selected:before,
.vw-card.is-selected:before {
	content: '';
	position: absolute;
	top: -15px;
	right: -15px;
	width: 40px;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg fill='%2321284d' width='40px' height='40px' viewBox='0 0 24 24' id='check-mark-circle-2' xmlns='http://www.w3.org/2000/svg' class='icon line'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath id='primary' d='M20.94,11A8.26,8.26,0,0,1,21,12a9,9,0,1,1-9-9,8.83,8.83,0,0,1,4,1' style='fill: none; stroke: %2321284d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5;'%3E%3C/path%3E%3Cpolyline id='primary-2' data-name='primary' points='21 5 12 14 8 10' style='fill: none; stroke: %2321284d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5;'%3E%3C/polyline%3E%3C/g%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-color: #fff;
} */

.vw-onduleur-card__media {
	width: 120px;
	height: 100%;
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.vw-onduleur-card__media img {
	max-height: 100%;
}

.vw-onduleur-card__title {
	margin-top: 0;
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--primary-color);
}

.vw-onduleur-card__specs {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vw-onduleur-card__specs li {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--primary-color);
}

.vw-onduleur-card__specs li:last-child {
	margin-bottom: 0;
}

.vw-onduleur-card__price {
	font-size: 16px;
	position: absolute;
	right: 12px;
	bottom: 12px;
}

/* Onduleur additional option - optimizers toggle */
.onduleur-additional {
	margin-top: 24px;
}

.vw-option-toggle {
	display: grid;
	grid-template-columns: 20px auto;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	user-select: none;
	cursor: pointer;
}

.vw-hide-details {
	cursor: pointer;
}

.vw-hide-details svg {
	transition: all .3s ease;
	transform: rotate(180deg);
}

.vw-option-toggle__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.vw-option-toggle__box {
	width: 20px;
	height: 20px;
	border-radius: 8px;
	border: 2px solid var(--primary-color);
	box-shadow: inset 0 0 0 2px #fff;
	background: #fff;
	transition: background-color .2s ease, box-shadow .2s ease;
}

.vw-option-toggle__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vw-option-toggle__title {
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	color: var(--primary-color);
}

.vw-option-toggle__desc {
	font-style: italic;
	font-size: 14px;
	line-height: 1.5;
	color: #6e7990;
}

.vw-option-toggle__content_w_price {
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: space-between;
}

.vw-option-toggle__content_w_price .vw-option-toggle__title {
	width: 70%;
	font-weight: 300;
	font-size: 16px;
}

.vw-option-toggle__content_w_price .vw-option-toggle__price {
	text-align: right;
	font-weight: bold;
	font-size: 16px;
}

/* Checked state */
.vw-option-toggle__input:checked+.vw-option-toggle__box {
	background: var(--primary-color);
}

/* Hover focus visuals */
.vw-option-toggle:hover .vw-option-toggle__box,
.vw-option-toggle__input:focus+.vw-option-toggle__box {
	box-shadow: 0 0 0 2px rgba(33, 40, 77, 0.25), inset 0 0 0 2px #fff;
}

.stockage-cards {
	margin-top: 50px;
}

/* Final pricing table */
.vw-final-pricing {
	margin-top: 60px;
}

.vw-final-pricing__card {
	background: #fff;
	padding: 8px;
	border: 1px solid #000;
}

.vw-final-pricing__title {
	font-weight: 700;
	font-size: 19px;
	margin-bottom: 12px;
	text-align: center;
	color: var(--primary-color);
}

.vw-price-table__head-row,
.vw-price-table__row {
	display: flex;
	justify-content: space-between;
	grid-template-columns: 1fr 120px 160px;
	gap: 16px;
	align-items: center;
}

.vw-price-table__head-row {
	border-bottom: 1px solid rgba(0, 0, 0, 0.5);
	justify-content: flex-end;
	padding: 4px 0;
	color: var(--primary-color);
	font-weight: 300;
}

.vw-price-table__section {
	padding: 24px 0 8px;
	font-weight: 700;
	color: var(--primary-color);
}

.vw-price-table__row {
	padding: 16px 0;
}

.vw-price-table__item {
	width: 50%;
}

.vw-price-table__item-title {
	display: block;
	color: var(--primary-color);
}

.vw-price-table__item-sub {
	display: block;
	color: #d11;
}

.vw-price-table__unit {
	width: 30px;
	text-align: right;
	font-weight: 300;
	color: #d11;
}

.vw-price-table__value {
	text-align: right;
	color: #d11;
	font-weight: 300;
	width: 75px;
}

.vw-price-totals {
	margin-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.5);
	padding-top: 16px;
}

.vw-price-totals__row {
	display: flex;
	justify-content: space-between;
	grid-template-columns: auto 80px 160px;
	gap: 16px;
	padding: 12px 0;
}

.vw-price-totals__row.is-discount .vw-price-totals__label,
.vw-price-totals__row.is-discount .vw-price-totals__value,
.vw-price-totals__row.is-discount .vw-price-totals__percent {
	font-weight: 300;
}

.vw-price-totals__row.is-final {
	font-weight: 700;
}

.vw-price-totals__label {
	width: 50%;
	color: var(--primary-color);
}

.vw-price-totals__percent {
	text-align: center;
}

.vw-price-totals__value {
	text-align: right;
	font-weight: 300;
	color: #d11;
}

.vw-hide-details {
	margin-top: 0;
	text-align: center;
	color: var(--primary-color);
	font-size: 14px;
}

.vw-purchase-summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-top: 40px;
	margin-bottom: 56px;
}

.vw-purchase-summary__title {
	font-weight: 300;
	font-size: 19px;
	margin-bottom: 10px;
}

.vw-purchase-summary__vat {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 300;
}

.vw-purchase-summary__final {
	color: #d11;
	font-weight: 700;
	font-size: 19px;
}

/* Payment section under final prices */
.vw-payment {
	margin-top: 12px;
}

.vw-payment__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
}

.vw-payment__title {
	font-size: 20px;
	font-weight: 300;
	margin: 0;
}

.vw-payment__amount {
	font-size: 19px;
	font-weight: 800;
	color: var(--primary-color);
}

.vw-payment__subtitle {
	color: var(--primary-color);
	margin: 10px 0 20px;
	font-size: 14px;
	font-weight: 300;
}

.vw-payment__terms p {
	margin: 0 0 10px;
	font-style: italic;
	font-size: 14px;
}

.vw-payment__paragraph {
	margin: 12px 0;
}

.vw-payment__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.vw-payment__accept {
	display: grid;
	grid-template-columns: 24px auto;
	gap: 12px;
	align-items: center;
	margin: 28px 0;
}

.vw-payment__checkbox {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 8px;
	border: 2px solid var(--primary-color);
	box-shadow: inset 0 0 0 2px #fff;
	background: #fff;
	transition: background-color .2s ease, box-shadow .2s ease;
	cursor: pointer;
	position: relative;
}

.vw-payment__checkbox:checked {
	background: var(--primary-color);
}

.vw-payment__checkbox:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
}

.vw-fixed-price-summary__title-insufficient-number-panels {
	display: none;
	color: #d11;
	font-weight: bold;
}

/* Simple button */
.vw-btn {
	border: 2px solid var(--primary-color);
	background: #fff;
	color: var(--primary-color);
	border-radius: 12px;
	cursor: pointer;
	transition: all .3s ease;
}

.vw-btn:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.vw-btn--xl {
	padding: 22px 28px;
	font-size: 35px;
	width: 100%;
}

.vw-btn:disabled,
.vw-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

@media(max-width: 1660px) {
	.vw-editor__container {
		padding: 0 30px;
	}

	.editor-top-bar {
		max-width: 100%;
	}
}

@media(max-width: 1200px) {
	.editor-top-bar {
		padding: 10px;
	}

	.editor-button {
		width: 40px;
		height: 40px;
	}

	.editor-top-bar-right {
		gap: 16px;
	}

	.editor-top-bar-left {
		gap: 16px;
	}
}

@media(max-height: 700px) {
	.editor-main-section {
		margin-top: 24px;
	}
}

@media(max-height: 650px) {
	.editor-top-bar {
		padding: 10px;
	}

	.editor-button {
		width: 40px;
		height: 40px;
	}

	.vw-grid-builder {
		padding: 20px 50px 50px 20px;
	}

	.vw-grid-btn {
		width: 30px;
		height: 30px;
	}

	.vw-grid-builder__controls--right {
		right: 10px;
	}

	.vw-grid-builder__controls--bottom {
		bottom: 10px;
	}

	/* Adjust dimension lines for smaller heights */
	.vw-grid-builder__dimension--horizontal {
		bottom: 20px;
	}

	.vw-grid-builder__dimension--vertical {
		right: 20px;
	}
}

@media(max-width: 1200px) {
	.vw-editor__container {
		padding: 0 15px;
	}

	.editor-grid {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.editor-grid__left {
		position: relative;
		top: 0;
	}
}

@media(max-width: 1200px) {
	.vw-grid-builder {
		padding: 20px 50px 50px 20px;
		width: fit-content;
		max-width: fit-content;
		max-height: 750px;
	}

	.ts-topbar {
		background-size: cover;
	}

	.vw-grid-builder--duplicate {
		margin-top: 100px;
	}

	.vw-grid-btn {
		width: 30px;
		height: 30px;
	}

	.vw-grid-builder__controls--right {
		right: 10px;
	}

	.vw-grid-builder__controls--bottom {
		bottom: 10px;
	}

	.editor-main-section {
		width: fit-content;
		max-width: fit-content;
		overflow-x: hidden;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-right: 100px;
		padding-bottom: 100px;
		height: fit-content;
	}

	.vw-grid-cell {
		width: var(--vw-cell-w, 80px);
		height: var(--vw-cell-h, 120px);
		min-width: 30px;
		min-height: 30px;
	}

	.vw-grid-builder__matrix {
		width: fit-content;
		overflow: visible;
		grid-template-columns: repeat(var(--vw-grid-cols, 2), var(--vw-cell-w, 80px));
		grid-auto-rows: var(--vw-cell-h, 120px);
		max-height: 630px;
		height: fit-content;
	}

	.editor-grid__left {
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
	}

	.editor-main-section__dimension-label {
		font-size: 10px;
	}

	.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::before,
	.editor-main-section__dimension--horizontal-first .editor-main-section__dimension-markers::after,
	.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::before,
	.editor-main-section__dimension--horizontal-second .editor-main-section__dimension-markers::after {
		font-size: 10px;
	}

	.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::before,
	.editor-main-section__dimension--vertical-first .editor-main-section__dimension-markers::after,
	.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::before,
	.editor-main-section__dimension--vertical-second .editor-main-section__dimension-markers::after {
		font-size: 10px;
	}

	.editor-top-bar {
		max-width: fit-content;
		width: fit-content;
		gap: 32px;
	}

	.editor-top-bar-left {
		gap: 8px;
	}

	.editor-top-bar-right {
		gap: 8px;
	}

	.vw-editor-background-overnumber {
		width: 60px;
		height: 60px;
	}

	.vw-editor__stat-number {
		font-size: 24px;
	}

	.vw-editor__stat-label {
		font-size: 16px;
	}

	.vw-editor__step {
		font-size: 16px;
	}

	.ts-topbar__text {
		font-size: 14px;
		line-height: 1.2;
	}

	.ts-header__help {
		display: none;
	}

	.ts-header__link-text {
		display: none;
	}

	.vw-editor__title {
		font-size: 18px;
	}

	.ts-header__cta {
		font-size: 14px;
	}

	footer .row {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}
}

/* Fixed Bottom Price Summary */
.vw-fixed-price-summary {
	position: fixed;
	bottom: 0;
	/* left and width will be set dynamically via JavaScript to match editor-grid__right */
	background: #f5f5f5;
	border: 1px solid #000;
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	padding: 24px;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
}

.vw-fixed-price-summary.is-visible {
	transform: translateY(0);
}

.vw-fixed-price-summary__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vw-fixed-price-summary__header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	padding-bottom: 16px;
}

.vw-fixed-price-summary__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--primary-color);
}

.vw-fixed-price-summary__subtitle {
	font-size: 14px;
	font-weight: 400;
	color: #6e7990;
}

.vw-fixed-price-summary__pricing {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.vw-fixed-price-summary__old-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vw-fixed-price-summary__price-label {
	font-size: 16px;
	font-weight: 300;
	color: #d11;
	text-decoration: line-through;
}

.vw-fixed-price-summary__price-note {
	font-size: 12px;
	color: #d11;
	font-weight: 300;
}

.vw-fixed-price-summary__final-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.vw-fixed-price-summary__price-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
}

.vw-fixed-price-summary__price-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-size: 12px;
	color: #6e7990;
	line-height: 1.3;
}

/* Responsive adjustments for fixed price summary */
@media(max-width: 1200px) {
	.vw-fixed-price-summary {
		/* On mobile, stretch full width with margins */
		left: 15px !important;
		right: 15px !important;
		width: auto !important;
	}
}

@media(max-width: 1200px) {
	.vw-fixed-price-summary {
		padding: 16px;
		padding-bottom: 8px;
	}

	.site-footer {
		margin-top: 50px;
	}

	.vw-editor__stat {
		width: 110px;
	}

	.vw-fixed-price-summary__content {
		gap: 8px;
	}

	.vw-fixed-price-summary__title {
		font-size: 16px;
	}

	.vw-fixed-price-summary__price-label,
	.vw-fixed-price-summary__price-value {
		font-size: 18px;
	}

	.vw-fixed-price-summary__pricing {
		flex-direction: row;
		gap: 8px;
	}

	.vw-fixed-price-summary__final-price {
		align-items: flex-end;
	}

	.vw-fixed-price-summary__header {
		padding-bottom: 8px;
	}

	.vw-fixed-price-summary__title-insufficient-number-panels {
		font-size: 14px;
	}

	.editor-grid__right {
		margin-bottom: 30px;
	}
}

/* Customer Form Styling */
.vw-payment__form {
	margin: 28px 0;
}

.vw-payment__form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.vw-payment__form-field {
	display: flex;
	flex-direction: column;
}

.vw-payment__form-field--half {
	flex: 1;
	min-width: 0;
}

.vw-payment__form-field--full {
	width: 100%;
}

.vw-payment__form-field label {
	font-size: 14px;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 8px;
}

.vw-payment__form-field input {
	padding: 12px 16px;
	border: 1px solid #000;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Acherus Militant', sans-serif;
	color: var(--primary-color);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vw-payment__form-field input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(33, 40, 77, 0.15);
}

.vw-payment__form-row input.invalid {
	border-color: #d11;
	border-width: 2px;
}

.vw-payment__form-row .field-error-message {
	color: #d11;
	font-size: 12px;
	margin-top: 4px;
	font-weight: 500;
}

@media (max-width: 1200px) {
	.vw-payment__form-row {
		flex-direction: column;
		gap: 16px;
	}

	.vw-payment__form-field--half {
		width: 100%;
	}
}

@media(min-width: 1200px) and (max-width: 1350px) {
	.vw-grid-builder {
		padding: 30px 50px 50px 30px;
	}
	.vw-grid-btn {
		width: 25px;
		height: 25px;
	}
	.vw-grid-builder__controls--right {
		right: 15px;
	}
	.vw-grid-builder__controls--bottom {
		bottom: 15px;
	}
}

@media(min-width: 992px) and (max-width: 1200px) {
	.editor-grid__right {
		display: flex;
		flex-wrap: wrap;
		gap: 32px;
		justify-content: space-between;
	}
	.vw-editor__stats,
	.final-table-with-all-prices,
	.vw-payment {
		width: 53%;
		margin: 0 auto;
	}

	.chose-pannel,
	.chose-roof,
	.chose-onduleur {
		width: 45%;
		margin-top: 0;
	}
}