.phx-tryon {
	--tryon-ink: #211820;
	--tryon-muted: #756871;
	--tryon-berry: #9f2f66;
	--tryon-dark: #21101d;
	--tryon-gold: #e7bd72;
	--tryon-line: #ead8e2;
	--tryon-soft: #fff6fa;
	box-sizing: border-box;
	color: var(--tryon-ink);
	margin: 24px auto 44px;
	max-width: 1180px;
	width: min(1180px, calc(100% - 32px));
}

.phx-product-tryon-cta {
	align-items: center;
	background: #fff6fa;
	border: 1px solid #ead8e2;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0;
	padding: 12px;
}

.phx-product-tryon-button {
	background: #9f2f66;
	border-radius: 7px;
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	min-height: 42px;
	padding: 0 16px;
	align-items: center;
	text-decoration: none;
}

.phx-product-tryon-button:hover {
	background: #21101d;
	color: #fff;
}

.phx-product-tryon-cta span {
	color: #756871;
	font-weight: 800;
}

.phx-product-tryon-tab .phx-tryon {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.phx-tryon--compact .phx-tryon__hero {
	padding: 24px;
}

.phx-tryon--compact .phx-tryon__hero h1 {
	font-size: clamp(26px, 4vw, 38px);
}

.phx-tryon__hero {
	align-items: end;
	background:
		radial-gradient(circle at 84% 16%, rgba(231, 189, 114, 0.4), transparent 26%),
		linear-gradient(135deg, var(--tryon-dark), var(--tryon-berry));
	border-radius: 14px;
	color: #fff;
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
	margin-bottom: 18px;
	padding: clamp(28px, 5vw, 56px);
}

.phx-tryon__hero span {
	color: var(--tryon-gold);
	display: block;
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.phx-tryon__hero h1 {
	color: inherit;
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.05;
	margin: 0 0 12px;
	max-width: 760px;
}

.phx-tryon__hero p,
.phx-tryon__note {
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
	margin: 0;
}

.phx-tryon__note {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(231, 189, 114, 0.35);
	border-radius: 10px;
	padding: 16px;
}

.phx-tryon__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(240px, 0.74fr) minmax(240px, 0.74fr) minmax(360px, 1.3fr);
}

.phx-tryon__panel,
.phx-tryon__preview-panel {
	background: #fff;
	border: 1px solid var(--tryon-line);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(86, 35, 68, 0.08);
	padding: 20px;
}

.phx-tryon__panel h2 {
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 14px;
}

.phx-tryon label {
	color: var(--tryon-ink);
	display: grid;
	font-weight: 850;
	gap: 7px;
	margin-bottom: 13px;
}

.phx-tryon input,
.phx-tryon select,
.phx-tryon textarea {
	background: #fff;
	border: 1px solid #dec6d5;
	border-radius: 7px;
	box-sizing: border-box;
	color: var(--tryon-ink);
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.phx-tryon__hint {
	color: var(--tryon-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.phx-tryon__preview {
	align-items: center;
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(135deg, rgba(33, 16, 29, 0.95), rgba(159, 47, 102, 0.7)),
		radial-gradient(circle at 78% 18%, rgba(231, 189, 114, 0.32), transparent 25%);
	border-radius: 12px;
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
	overflow: hidden;
	position: relative;
}

.phx-tryon__customer {
	display: none;
	height: 100%;
	inset: 0;
	object-fit: contain;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.phx-tryon__dress {
	display: none;
	left: 50%;
	max-height: none;
	max-width: none;
	pointer-events: none;
	position: absolute;
	top: 42%;
	transform: translate(-50%, -50%);
	width: 82%;
	z-index: 2;
}

.phx-tryon__empty {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 900;
	position: relative;
	z-index: 3;
}

.phx-tryon__controls {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phx-tryon__controls label {
	font-size: 13px;
	margin: 0;
}

.phx-tryon__submit {
	background: var(--tryon-berry);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 900;
	margin-top: 16px;
	min-height: 48px;
	padding: 0 20px;
	width: 100%;
}

.phx-tryon__submit:hover {
	background: var(--tryon-dark);
}

.phx-tryon__notice {
	background: #f9fff3;
	border: 1px solid #cfe8ad;
	border-radius: 10px;
	color: #294111;
	font-weight: 850;
	margin: 0 0 16px;
	padding: 14px 16px;
}

.phx-tryon__notice--error {
	background: #fff5f6;
	border-color: #efc2cb;
	color: #7e1430;
}

@media (max-width: 980px) {
	.phx-tryon__grid,
	.phx-tryon__hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 544px) {
	.phx-tryon {
		width: min(100% - 24px, 1180px);
	}

	.phx-tryon__controls {
		grid-template-columns: 1fr;
	}
}
