.zpp-personalization-box {
	margin: 1.25em 0 1.5em;
	padding: 1.25em 1.35em;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
}

.zpp-section-title {
	margin: 0 0 1em;
	font-size: 1.05em;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: inherit;
}

.zpp-field {
	margin-bottom: 1.15em;
}

.zpp-field:last-child {
	margin-bottom: 0;
}

.zpp-label {
	display: block;
	margin-bottom: 0.5em;
	font-size: 0.92em;
	font-weight: 600;
	color: #333;
}

.zpp-required {
	color: #c45;
	font-weight: 700;
}

.zpp-input-text,
.zpp-input-textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75em 1em;
	font-size: 1em;
	line-height: 1.4;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zpp-input-text:focus,
.zpp-input-textarea:focus {
	outline: none;
	border-color: #7c5cbf;
	box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.zpp-input-textarea {
	min-height: 96px;
	resize: vertical;
}

/* Color swatches */
.zpp-swatch-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.zpp-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	min-width: 52px;
	margin: 0;
}

.zpp-swatch-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.zpp-swatch-dot {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--zpp-color, #ccc);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.zpp-swatch:hover .zpp-swatch-dot {
	transform: scale(1.06);
}

.zpp-swatch.is-selected .zpp-swatch-dot,
.zpp-swatch-input:checked + .zpp-swatch-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7c5cbf;
}

.zpp-swatch-name {
	font-size: 0.78em;
	color: #555;
	text-align: center;
	line-height: 1.2;
	max-width: 64px;
}

.zpp-swatch.is-selected .zpp-swatch-name {
	color: #7c5cbf;
	font-weight: 600;
}

/* Size pills */
.zpp-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zpp-pill {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.zpp-pill-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.zpp-pill-text {
	display: inline-block;
	padding: 0.55em 1.1em;
	font-size: 0.9em;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	background: #fff;
	transition: all 0.2s ease;
}

.zpp-pill:hover .zpp-pill-text {
	border-color: #7c5cbf;
}

.zpp-pill.is-selected .zpp-pill-text,
.zpp-pill-input:checked + .zpp-pill-text {
	background: #7c5cbf;
	border-color: #7c5cbf;
	color: #fff;
}

/* Checkbox addon */
.zpp-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	cursor: pointer;
	margin: 0;
}

.zpp-checkbox-input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #7c5cbf;
}

.zpp-checkbox-text {
	font-size: 0.95em;
	line-height: 1.4;
}

/* Pattern grid */
.zpp-pattern-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
}

.zpp-pattern {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	margin: 0;
	max-width: 88px;
}

.zpp-pattern-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.zpp-pattern-thumb-wrap {
	display: block;
}

.zpp-pattern-thumb {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.zpp-pattern-thumb--empty {
	background: #eee;
}

.zpp-pattern:hover .zpp-pattern-thumb {
	transform: scale(1.04);
}

.zpp-pattern.is-selected .zpp-pattern-thumb,
.zpp-pattern-input:checked + .zpp-pattern-thumb-wrap .zpp-pattern-thumb {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7c5cbf;
}

.zpp-pattern-name {
	font-size: 0.78em;
	color: #555;
	text-align: center;
	line-height: 1.2;
}

.zpp-pattern.is-selected .zpp-pattern-name {
	color: #7c5cbf;
	font-weight: 600;
}

@media (max-width: 544px) {
	.zpp-personalization-box {
		padding: 1em;
	}

	.zpp-swatch-dot {
		width: 36px;
		height: 36px;
	}

	.zpp-pattern-thumb {
		width: 64px;
		height: 64px;
	}
}
