.evc-configurator-page {
	width: 100%;
}

.evc-configurator-shell {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	min-height: 80vh;
}

/* Colonna sinistra: sticky full-height feeling */
.evc-configurator-left {
	position: relative;
	padding: 24px;
}

.evc-viewer {
	position: sticky;
	top: 24px;
	height: calc(100vh - 48px);
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: 12px;
}

.evc-viewer-image {
	max-width: 100%;
	max-height: 80%;
	object-fit: contain;
}

/* Colonna destra */
.evc-configurator-right {
	padding: 24px;
}

.evc-topbar {
	margin-bottom: 16px;
}

.evc-h1 {
	font-size: 40px;
	line-height: 1.1;
	margin: 0;
	font-weight: 700;
}

.evc-subtitle {
	font-size: 18px;
	margin-top: 6px;
	opacity: 0.85;
}

.evc-panels {
	display: grid;
	gap: 14px;
}

.evc-accordion {
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	border: 0;
	box-shadow: 0 0 6px rgba(0, 0, 0, .1);
	border-radius: 4px;
}

.evc-accordion__summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}

.evc-accordion__summary::-webkit-details-marker {
	display: none;
}

.evc-accordion__chev {
	transform: rotate(0deg);
	transition: transform 180ms ease;
	font-size: 22px;
	opacity: 0.6;
	color: rgb(57, 65, 77);
}

details[open] .evc-accordion__chev {
	transform: rotate(90deg);

}

.evc-accordion__content {
	padding: 14px 18px 18px;

}

.evc-chip {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid #e6e6e6;
	background: #fff;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	font-size: 16px;
}

.evc-chip--selected {
	background: #000;
	color: #fff;
	border-color: #000;
}

.evc-chips-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.evc-backlink {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	opacity: 0.75;
	text-decoration: none;
}

.evc-accessories-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.evc-acc-item {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 10px 10px 12px;
	text-align: center;
	cursor: pointer;
	background: #fff;
}

.evc-acc-item--selected {
	border-color: #000;
	box-shadow: 0 0 0 1px #000 inset;
}

.evc-acc-icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 8px;
	object-fit: contain;
	display: block;
}

.evc-acc-label {
	font-size: 12px;
	line-height: 1.2;
	opacity: 0.9;
}

.evc-cta {
	display: flex;
	width: 100%;
	gap: 20px;
	align-items: stretch;
	margin-top: 50px;
	font-size: 16px;
}

.evc-btn {
	height: 48px;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	font-weight: 700;
}

.evc-cta .evc-btn {
	flex: 0 0 49%;
	width: 49%;
	font-size:16px;
}

.evc-btn--primary {
	background: #000;
	color: #fff;
}

.evc-btn--secondary {
	background: #efefef;
	color: #111;
}

.evc-viewer-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
	background-color: #f5f5f5;
}

/* base layer bottle */
.evc-layer {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 85%;
	object-fit: contain;
	pointer-events: none;
}

.evc-layer--bottle {
	z-index: 1;
}

.evc-layer-accessories {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.evc-acc-level {
	display: block;
}

.evc-acc-group {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 10px 0;
}

.evc-acc-summary {
	cursor: pointer;
	user-select: none;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
}

.evc-acc-summary::-webkit-details-marker {
	display: none;
}

.evc-acc-summary__left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.evc-acc-summary__title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.evc-acc-summary__right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.evc-acc-summary__preview {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 999px;
	background: #fff;
	max-width: 280px;
}

.evc-acc-summary__preview img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.evc-acc-summary__preview span {
	font-size: 12px;
	font-weight: 500;
	opacity: .85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.evc-acc-summary:after {
	content: "›";
	opacity: .6;
	transform: rotate(0deg);
	transition: transform .15s ease;
	flex: 0 0 auto;
}

details[open]>.evc-acc-summary:after {
	transform: rotate(90deg);
}

.evc-acc-panel {
	padding: 10px 0 6px;
}

/* ✅ UL/LI inline + wrap + no bullets */
.evc-acc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.evc-acc-li {
	list-style: none;
	margin: 0;
	padding: 0;
}



.evc-acc-btn:hover {
	border-color: rgba(0, 0, 0, 0.22);
}

body[data-button-style^="rounded"] button.evc-acc-btn.is-selected {
	border-color: rgba(0, 0, 0, 0.45) !important;
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.evc-acc-icon {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.evc-acc-label {
	font-size: 12px;
	line-height: 1.15;
	text-align: center;
}

.evc-acc-nested {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
	padding-left: 30px;
}

.evc-acc-loading {
	padding: 6px 0;
	opacity: .65;
}

.evc-acc-empty {
	padding: 6px 0;
	opacity: .65;
}

/* =========================================================
   Sticky left + page scroll (right flows normally)
   ========================================================= */

/* Assicura che lo sticky lavori bene nel grid */
.evc-configurator-shell {
	align-items: start;
	/* equivalente grid di align-items:flex-start */
}

/* La colonna sinistra resta nel flow */
.evc-configurator-left {
	align-self: start;
}

/* Sticky viewer: ok così, ma più robusto */
.evc-viewer {
	position: sticky;
	top: 24px;

	/* lascia pure l'altezza "full-height feeling" */
	height: calc(100vh - 48px);

	/* IMPORTANTISSIMO: non creare scroll interno qui,
     così la pagina scorre e il footer compare */
	overflow: hidden;
}

/* Se vuoi che la destra NON diventi mai scroll interno */
.evc-configurator-right {
	overflow: visible;
}

/* il parent della viewer deve essere relativo per lo "stop" finale */
.evc-configurator-left {
	position: relative;
}

/* stato fixed gestito da JS */
.evc-viewer.is-fixed {
	position: fixed !important;
	z-index: 50;
}

/* stato "stop": appoggiato in basso nella colonna sx */
.evc-viewer.is-stopped {
	position: absolute !important;
	z-index: 2;
}

.evc-acc-level {
	display: block;
}

.evc-acc-group {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 10px 0;
}

.evc-acc-summary {
	cursor: pointer;
	user-select: none;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
}

.evc-acc-summary::-webkit-details-marker {
	display: none;
}

.evc-acc-summary__left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.evc-acc-summary__title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.evc-acc-summary__right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.evc-acc-summary__preview {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 999px;
	background: #fff;
	max-width: 280px;
}

.evc-acc-summary__preview img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.evc-acc-summary__preview span {
	font-size: 12px;
	font-weight: 500;
	opacity: .85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.evc-acc-summary:after {
	content: "›";
	opacity: .6;
	transform: rotate(0deg);
	transition: transform .15s ease;
	flex: 0 0 auto;
}

details[open]>.evc-acc-summary:after {
	transform: rotate(90deg);
}

.evc-acc-panel {
	padding: 10px 0 6px;
}

.evc-acc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.evc-acc-li {
	list-style: none;
	margin: 0;
	padding: 0;
}

body[data-button-style^="rounded"] button.evc-acc-btn {
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.10);
	background: #fff;
	border-radius: 0px !important;
	-webkit-border-radius: 0px !important;
	padding: 10px;
	width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.evc-acc-btn:hover {
	border-color: rgba(0, 0, 0, 0.22);
}

.evc-acc-btn.is-selected {
	border-color: rgba(0, 0, 0, 0.45);
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.evc-acc-icon {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.evc-acc-label {
	font-size: 12px;
	line-height: 1.15;
	text-align: center;
}

.evc-acc-nested {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.evc-acc-loading {
	padding: 6px 0;
	opacity: .65;
}

.evc-acc-empty {
	padding: 6px 0;
	opacity: .65;
}

.evc-viewer.is-fixed {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 0 6px rgba(0, 0, 0, .1);
}

.evc-acc-skip {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
	opacity: .75;
	font-size: 13px;
}

.evc-acc-skip:hover {
	opacity: 1;
}

.evc-acc-skip.is-selected {
	opacity: 1;
	font-weight: 700;
	text-decoration: none;
}

.evc-acc-fin {
	opacity: .75;
	font-weight: 500;
	font-size: 12px;
}

.evc-acc-btn {
	position: relative;
}

.evc-acc-info {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #000;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	user-select: none;
	cursor: pointer;
}

.modal.modaleaccessoriconfig {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 999999;
	background: rgba(0, 0, 0, .55);
}

.modal.modaleaccessoriconfig.active {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
}

.nectar-quick-view-box .images img {
	width: 100% !important;
	height: auto;
	background: transparent !important;
}

.testbuttonsalva {
	display: none !important;
}

.modaleaccessoriconfig.active .summary-content .cart {
	display: none;
}

.modal.modaleaccessoriconfig .evc-qv-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(980px, calc(100vw - 40px));
	max-height: calc(100vh - 300px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
}

.modal.modaleaccessoriconfig .evc-qv-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 0;
	background: #000;
	color: #fff;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
	z-index: 1000;
}

html.evc-qv-open,
body.evc-qv-open {
	overflow: hidden;
}

.evc-level-previews {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 55%;
	overflow: auto hidden;
	/* scroll orizzontale se serve */
	white-space: nowrap;
}

.evc-acc-group .evc-acc-summary__preview {
	display: none;
}

.evc-level-previews__pill {
	cursor: pointer;
}

.evc-flash {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.evc-level-previews__pill {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	white-space: nowrap;
	font-size: 12px;
}

.evc-level-previews__pill img {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	object-fit: cover;
}

.evc-level-previews__sep {
	opacity: .5;
	font-size: 12px;
}

/* nasconde textarea usata solo per mail-tag */
.evc-hidden {
	display: none !important;
}

.evc-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.evc-modal.is-open {
	display: block;
}

.evc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.evc-modal__dialog {
	position: relative;
	max-width: 860px;
	width: min(860px, calc(100% - 32px));
	margin: 48px auto;
	background: #fff;
	border-radius: 16px;
	padding: 18px 18px 22px;
}

.evc-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.evc-modal__title {
	margin: 0 40px 12px 0;
}

.evc-modal__body {
	max-height: calc(100vh - 140px);
	overflow: auto;
}

#confyform {
	padding-bottom:20px !important;
}

/* Responsive: sotto 1024px impilo */
@media (max-width: 1024px) {
	.evc-configurator-shell {
		grid-template-columns: 1fr;
	}

	.evc-viewer {
		height: 420px;
		position: relative;
		top: auto;
	}

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

@media (max-width: 640px) {
	.evc-cta {
		gap: 12px;
		flex-direction: column;
	}

	.evc-cta .evc-btn {
		flex: 1 1 auto;
		width: 100%;
		
	}
}