.afiwai-smart-customizer{
	display:grid;
	gap:18px;
	margin:0;
}

.afiwai-smart-customizer__field{
	display:grid;
	gap:9px;
	padding:16px;
	border:1px solid var(--ss-line);
	border-radius:14px;
	background:#fff;
}

.afiwai-smart-customizer__field>label,
.afiwai-smart-customizer__field>span{
	color:var(--afiwai-shop-text);
	font-weight:750;
}

.afiwai-smart-customizer__field small{
	color:var(--afiwai-shop-muted);
	line-height:1.5;
}

.afiwai-smart-customizer__field input[type="file"]{
	padding:12px;
	border:1px dashed color-mix(in srgb,var(--afiwai-shop-primary) 30%,#cbd8e4);
	border-radius:12px;
	background:color-mix(in srgb,var(--afiwai-shop-primary) 3%,#fff);
}

.afiwai-smart-customizer__field input[type="checkbox"],
.afiwai-smart-customizer__field input[type="radio"]{
	width:20px;
	height:20px;
	min-height:20px;
	margin:0 8px 0 0;
	accent-color:var(--afiwai-shop-primary);
}

.afiwai-smart-customizer .variant-options{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
}

.afiwai-smart-customizer .swatch{
	display:inline-flex;
	align-items:center;
	gap:8px;
	min-height:42px;
	padding:0 13px;
	border:1px solid color-mix(in srgb,var(--afiwai-shop-primary) 20%,#ccd8e3);
	border-radius:999px;
	background:#fff;
	cursor:pointer;
}

.afiwai-smart-customizer .swatch.is-selected{
	border-color:var(--afiwai-shop-primary);
	box-shadow:0 0 0 3px color-mix(in srgb,var(--afiwai-shop-primary) 12%,transparent);
}

.afiwai-smart-customizer .afiwai-summary,
.afiwai-smart-customizer .afiwai-total{
	padding:14px;
	border-radius:12px;
	background:var(--ss-soft);
	color:var(--afiwai-shop-text);
}

.afiwai-smart-customizer .afiwai-tier{
	border:1px dashed color-mix(in srgb,var(--afiwai-shop-primary) 25%,transparent);
	border-radius:11px;
	background:#fff;
}


/* Multiple customization groups — 2.7.25. */
.afiwai-smart-customizer {
	display: grid;
	gap: 22px;
}

.afiwai-smart-customizer__group {
	display: grid;
	gap: 18px;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid rgba(0, 100, 192, .16);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 43, 68, .07);
}

.afiwai-smart-customizer__group-header {
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 100, 192, .12);
}

.afiwai-smart-customizer__group-header h3 {
	margin: 0;
	color: var(--afiwai-shop-text, #17324f);
	font-size: clamp(19px, 2.2vw, 24px);
}

.afiwai-smart-customizer__group-header p {
	margin: 6px 0 0;
	color: #687d90;
	line-height: 1.5;
}

.afiwai-smart-customizer__group-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.afiwai-smart-customizer__group--advanced .afiwai-smart-customizer__group-fields {
	grid-template-columns: 1fr;
}

.afiwai-smart-customizer__choices {
	display: grid;
	gap: 8px;
}

.afiwai-smart-customizer__choices label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 11px;
	border: 1px solid #d4e2ed;
	border-radius: 10px;
	background: #f8fbfe;
	cursor: pointer;
}

@media (max-width: 720px) {
	.afiwai-smart-customizer__group-fields {
		grid-template-columns: 1fr;
	}
}


/* Functional customizer states — 2.8.7. */
.afiwai-smart-customizer__field[hidden]{display:none!important}
.afiwai-smart-customizer__summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--afiwai-shop-primary) 18%,#d7e3ed);border-radius:14px;background:color-mix(in srgb,var(--afiwai-shop-primary) 5%,#fff)}
.afiwai-smart-customizer__summary strong{color:var(--afiwai-shop-primary);font-size:18px}
.afiwai-product-v3__variation-grid.has-error{padding:10px;border:1px solid #d63638;border-radius:12px;background:#fff5f5}
.afiwai-smart-customizer input[type="file"]{width:100%;padding:12px;border:1px dashed color-mix(in srgb,var(--afiwai-shop-primary) 35%,#cbd8e3);border-radius:12px;background:#fff}


/* Customizer toggle, conditions and formats — 2.8.9. */
.afiwai-smart-customizer__field--toggle {
	padding: 0;
	overflow: hidden;
}

.afiwai-smart-customizer__toggle {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	width: 100%;
	min-height: 82px;
	padding: 16px 18px;
	cursor: pointer;
}

.afiwai-smart-customizer__toggle-copy {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.afiwai-smart-customizer__toggle-copy strong {
	color: var(--afiwai-shop-text);
	font-size: 15px;
	font-weight: 850;
}

.afiwai-smart-customizer__toggle-copy small {
	color: var(--afiwai-shop-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.afiwai-smart-customizer__toggle input[type="checkbox"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.afiwai-smart-customizer__toggle-ui {
	position: relative;
	display: block;
	width: 50px;
	height: 29px;
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 26%, #c9d7e2);
	border-radius: 999px;
	background: #eaf1f6;
	transition: background .2s ease, border-color .2s ease;
}

.afiwai-smart-customizer__toggle-ui > span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 9px rgba(15, 43, 68, .2);
	transition: transform .2s ease;
}

.afiwai-smart-customizer__toggle input:checked + .afiwai-smart-customizer__toggle-ui {
	border-color: var(--afiwai-shop-primary);
	background: var(--afiwai-shop-primary);
}

.afiwai-smart-customizer__toggle input:checked + .afiwai-smart-customizer__toggle-ui > span {
	transform: translateX(21px);
}

.afiwai-smart-customizer__toggle:focus-within {
	outline: 3px solid color-mix(in srgb, var(--afiwai-shop-primary) 20%, transparent);
	outline-offset: 2px;
}

.afiwai-smart-customizer__field[hidden],
.afiwai-smart-customizer__field[aria-hidden="true"] {
	display: none !important;
}

.afiwai-smart-customizer__field input[type="text"],
.afiwai-smart-customizer__field input[type="number"],
.afiwai-smart-customizer__field input[type="date"],
.afiwai-smart-customizer__field input[type="color"],
.afiwai-smart-customizer__field textarea,
.afiwai-smart-customizer__field select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 22%, #ccd9e4);
	border-radius: 11px;
	background: #fff;
	color: var(--afiwai-shop-text);
}

.afiwai-smart-customizer__field textarea {
	min-height: 110px;
	resize: vertical;
}


/* Merged customization trigger and field — 2.9.0. */
.afiwai-smart-customizer__field--merged {
	display: grid;
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.afiwai-smart-customizer__merged-trigger {
	padding: 0;
	border: 0;
	background: transparent;
}

.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__toggle {
	min-height: 78px;
	padding: 16px 18px;
}

.afiwai-smart-customizer__control {
	display: grid;
	gap: 9px;
	padding: 16px;
	border-top: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 12%, #d8e3ec);
}

.afiwai-smart-customizer__control[hidden],
.afiwai-smart-customizer__control[aria-hidden="true"] {
	display: none !important;
}

.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__control {
	background: color-mix(in srgb, var(--afiwai-shop-primary) 2%, #fff);
}

.afiwai-smart-customizer__price {
	color: var(--afiwai-shop-primary);
	font-weight: 800;
}

.afiwai-smart-customizer__field input[type="file"] {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 11px;
	border: 1px dashed color-mix(in srgb, var(--afiwai-shop-primary) 34%, #cbd8e3);
	border-radius: 12px;
	background: #fff;
	color: var(--afiwai-shop-text);
}


/* Premium, non-destructive customizer presentation — 2.9.1. */
.afiwai-smart-customizer {
	position: relative;
	gap: 24px;
}

.afiwai-smart-customizer__group {
	position: relative;
	overflow: hidden;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 16%, #d8e3ec);
	border-radius: 22px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--afiwai-shop-primary) 3%, #fff), #fff 120px);
	box-shadow: 0 18px 42px rgba(15, 43, 68, .08);
}

.afiwai-smart-customizer__group-header {
	display: grid;
	gap: 7px;
	padding: 0 0 18px;
	border-bottom: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 12%, #dbe6ee);
}

.afiwai-smart-customizer__group-header::before {
	content: "Personnalisation";
	display: inline-flex;
	width: fit-content;
	min-height: 27px;
	padding: 0 10px;
	align-items: center;
	border-radius: 999px;
	background: color-mix(in srgb, var(--afiwai-shop-primary) 10%, #fff);
	color: var(--afiwai-shop-primary);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.afiwai-smart-customizer__group-header h3 {
	font-size: clamp(20px, 2.4vw, 27px);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.afiwai-smart-customizer__group-fields {
	gap: 18px;
	margin-top: 20px;
}

.afiwai-smart-customizer__field {
	position: relative;
	align-content: start;
	padding: 18px 18px 18px 60px;
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 14%, #d6e1ea);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15, 43, 68, .045);
	transition:
		transform .18s ease,
		border-color .18s ease,
		box-shadow .18s ease,
		background .18s ease;
}

.afiwai-smart-customizer__field:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--afiwai-shop-primary) 28%, #d6e1ea);
	box-shadow: 0 12px 28px rgba(15, 43, 68, .075);
}

.afiwai-smart-customizer__field.is-complete {
	border-color: color-mix(in srgb, #169c62 38%, #d6e1ea);
	background: linear-gradient(145deg, color-mix(in srgb, #169c62 3%, #fff), #fff);
}

.afiwai-smart-customizer__step-marker {
	position: absolute;
	z-index: 2;
	top: 17px;
	left: 17px;
	display: grid;
	width: 31px;
	height: 31px;
	place-items: center;
	border-radius: 10px;
	background: color-mix(in srgb, var(--afiwai-shop-primary) 9%, #fff);
	color: var(--afiwai-shop-primary);
	font-size: 13px;
	font-weight: 900;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--afiwai-shop-primary) 16%, transparent);
}

.afiwai-smart-customizer__field.is-complete .afiwai-smart-customizer__step-marker {
	background: #169c62;
	color: #fff;
	box-shadow: none;
}

.afiwai-smart-customizer__field.is-complete .afiwai-smart-customizer__step-marker span {
	font-size: 0;
}

.afiwai-smart-customizer__field.is-complete .afiwai-smart-customizer__step-marker span::after {
	content: "✓";
	font-size: 14px;
}

.afiwai-smart-customizer__field > label,
.afiwai-smart-customizer__control > label {
	font-size: 14px;
	font-weight: 900;
	letter-spacing: -.01em;
}

.afiwai-smart-customizer__field .description {
	margin: 0;
	color: var(--afiwai-shop-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.afiwai-smart-customizer__field input[type="text"],
.afiwai-smart-customizer__field input[type="number"],
.afiwai-smart-customizer__field input[type="date"],
.afiwai-smart-customizer__field input[type="color"],
.afiwai-smart-customizer__field textarea,
.afiwai-smart-customizer__field select {
	min-height: 48px;
	border-color: color-mix(in srgb, var(--afiwai-shop-primary) 18%, #cddae5);
	border-radius: 12px;
	box-shadow: inset 0 1px 2px rgba(15, 43, 68, .035);
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.afiwai-smart-customizer__field input:focus,
.afiwai-smart-customizer__field textarea:focus,
.afiwai-smart-customizer__field select:focus {
	border-color: var(--afiwai-shop-primary);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--afiwai-shop-primary) 12%, transparent);
	outline: none;
}

.afiwai-smart-customizer__choices {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.afiwai-smart-customizer__choices label {
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 12px;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.afiwai-smart-customizer__choices label:hover {
	transform: translateY(-1px);
	border-color: var(--afiwai-shop-primary);
	background: color-mix(in srgb, var(--afiwai-shop-primary) 5%, #fff);
}

.afiwai-smart-customizer__field--merged {
	padding: 0 0 0 43px;
}

.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__step-marker {
	top: 23px;
	left: 12px;
}

.afiwai-smart-customizer__merged-trigger {
	padding-left: 0;
}

.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__toggle {
	min-height: 88px;
	padding: 17px 18px;
}

.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__control {
	margin-left: -43px;
	padding: 18px 18px 18px 60px;
	border-top-color: color-mix(in srgb, var(--afiwai-shop-primary) 15%, #d9e3eb);
	background: linear-gradient(180deg, color-mix(in srgb, var(--afiwai-shop-primary) 3%, #fff), #fff);
	animation: afiwaiCustomizerReveal .2s ease both;
}

.afiwai-smart-customizer__field--merged.is-open {
	border-color: color-mix(in srgb, var(--afiwai-shop-primary) 32%, #d6e1ea);
	box-shadow: 0 14px 32px rgba(15, 43, 68, .08);
}

.afiwai-smart-customizer__toggle-ui {
	flex: 0 0 auto;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36);
}

.afiwai-smart-customizer__price {
	display: inline-flex;
	width: fit-content;
	min-height: 27px;
	padding: 0 9px;
	align-items: center;
	border-radius: 999px;
	background: color-mix(in srgb, var(--afiwai-shop-primary) 8%, #fff);
	color: var(--afiwai-shop-primary);
	font-size: 11px;
	font-weight: 900;
}

.afiwai-smart-customizer__summary {
	position: sticky;
	z-index: 4;
	bottom: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 18px;
	padding: 17px 19px;
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 24%, #d4e0e9);
	border-radius: 17px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 16px 38px rgba(15, 43, 68, .13);
	backdrop-filter: blur(12px);
}

.afiwai-smart-customizer__summary-copy {
	display: grid;
	gap: 3px;
}

.afiwai-smart-customizer__summary-copy > span {
	color: var(--afiwai-shop-text);
	font-size: 14px;
	font-weight: 900;
}

.afiwai-smart-customizer__summary-copy small {
	color: var(--afiwai-shop-muted);
	font-size: 11.5px;
	line-height: 1.4;
}

.afiwai-smart-customizer__summary > strong {
	align-self: center;
	min-width: 86px;
	color: var(--afiwai-shop-primary);
	font-size: 20px;
	font-weight: 950;
	text-align: right;
}

@keyframes afiwaiCustomizerReveal {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.afiwai-smart-customizer__field,
	.afiwai-smart-customizer__choices label,
	.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__control {
		animation: none;
		transition: none;
	}
}

@media (max-width: 720px) {
	.afiwai-smart-customizer__group {
		padding: 16px;
		border-radius: 18px;
	}

	.afiwai-smart-customizer__field {
		padding: 17px 14px 17px 54px;
	}

	.afiwai-smart-customizer__field--merged {
		padding: 0 0 0 39px;
	}

	.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__control {
		margin-left: -39px;
		padding: 17px 14px 17px 54px;
	}

	.afiwai-smart-customizer__step-marker {
		left: 13px;
	}

	.afiwai-smart-customizer__field--merged .afiwai-smart-customizer__step-marker {
		left: 9px;
	}

	.afiwai-smart-customizer__summary {
		position: static;
		grid-template-columns: 1fr;
	}

	.afiwai-smart-customizer__summary > strong {
		text-align: left;
	}
}

/* Single-form refinements — 2.9.7. */
.afiwai-smart-customizer__choice.is-selected {
	border-color: var(--afiwai-shop-primary);
	background: color-mix(in srgb, var(--afiwai-shop-primary) 8%, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--afiwai-shop-primary) 10%, transparent);
}

.afiwai-smart-customizer__field.has-error {
	border-color: #d63638;
	background: #fff8f8;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, .1);
}

.afiwai-smart-customizer__field.has-error input,
.afiwai-smart-customizer__field.has-error select,
.afiwai-smart-customizer__field.has-error textarea {
	border-color: #d63638;
}

.afiwai-smart-customizer__upload {
	display: grid;
	gap: 10px;
}

.afiwai-smart-customizer__upload-meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--afiwai-shop-primary) 15%, #d7e3ec);
	border-radius: 12px;
	background: color-mix(in srgb, var(--afiwai-shop-primary) 3%, #fff);
}

.afiwai-smart-customizer__upload-meta[hidden] {
	display: none !important;
}

.afiwai-smart-customizer__upload-meta span {
	min-width: 0;
	overflow: hidden;
	color: var(--afiwai-shop-text);
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.afiwai-smart-customizer__upload-meta img {
	display: block;
	width: 58px;
	height: 58px;
	border-radius: 10px;
	object-fit: cover;
	background: #eef4f8;
}

@media (max-width: 520px) {
	.afiwai-smart-customizer__choices {
		grid-template-columns: 1fr;
	}

	.afiwai-smart-customizer__upload-meta {
		grid-template-columns: 1fr;
	}

	.afiwai-smart-customizer__upload-meta img {
		width: 100%;
		height: auto;
		max-height: 180px;
	}
}

