/* CNS Hairstyle Try-On — modal + CTA (0.9.14: preview once at top; simple mid buttons) */
.cns-tryon-teaser {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0 0 1.35rem;
	padding: 1.1rem 1.15rem 1.2rem;
	border: 1.5px solid #e0cfc3;
	border-radius: 16px;
	background: linear-gradient(180deg, #fffdf9 0%, #f7f1ea 100%);
	box-shadow: 0 8px 22px rgba(47, 42, 38, 0.08);
}

.cns-tryon-teaser .cns-tryon-demo {
	margin: 0.15rem 0 0;
}

.cns-tryon-teaser .cns-tryon-demo__caption {
	margin: 0;
}

.cns-tryon-teaser__copy {
	min-width: 0;
}

.cns-tryon-teaser__kicker {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	background: #f3e7df;
	color: #790707;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cns-tryon-teaser__title {
	margin: 0 0 0.35rem;
	font-size: 1.12rem;
	line-height: 1.3;
	color: #1c120e;
	font-weight: 800;
}

.cns-tryon-teaser__note {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #4a4038;
}

.cns-tryon-teaser__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.25rem;
	background: #790707;
	color: #fff;
	font-weight: 750;
	font-size: 0.98rem;
	cursor: pointer;
	line-height: 1.2;
	box-shadow: 0 4px 14px rgba(121, 7, 7, 0.22);
	align-self: center;
	white-space: nowrap;
}

.cns-tryon-teaser__btn:hover,
.cns-tryon-teaser__btn:focus-visible {
	background: #5f0505;
	outline: none;
}

.cns-tryon-cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	margin: 1rem 0 1.5rem;
	padding: 1.1rem 1.15rem 1.2rem;
	border: 2px solid #790707;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff8f4 0%, #faf0ea 100%);
	box-shadow: 0 6px 18px rgba(121, 7, 7, 0.12);
}

/* Mid-post: solid button under each style (preview lives in the top teaser). */
.cns-tryon-cta--simple {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.75rem 0 1.25rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid #ead7cc;
	border-radius: 14px;
	background: #fff8f4;
	box-shadow: 0 4px 14px rgba(121, 7, 7, 0.08);
}

.cns-tryon-cta--entry {
	text-align: center;
	margin: 1.5rem 0;
	padding: 1.25rem 1.35rem;
}

.cns-tryon-cta--simple.cns-tryon-cta--entry {
	justify-content: center;
	margin: 1.15rem 0 1.5rem;
}

.cns-tryon-cta__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.cns-tryon-cta__title {
	display: block;
	font-size: 1.05rem;
	line-height: 1.3;
	color: #1c120e;
	font-weight: 700;
}

.cns-tryon-demo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem 0.7rem;
	padding: 0.65rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #eadfd6;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cns-tryon-demo__shot {
	margin: 0;
	position: relative;
	width: min(42vw, 132px);
	flex: 0 0 auto;
}

.cns-tryon-demo__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #e2d6cc;
	box-shadow: 0 4px 12px rgba(28, 18, 14, 0.12);
}

.cns-tryon-demo__shot--after .cns-tryon-demo__img {
	border-color: #790707;
	box-shadow: 0 4px 14px rgba(121, 7, 7, 0.22);
}

.cns-tryon-demo__label {
	position: absolute;
	left: 0.4rem;
	bottom: 0.4rem;
	margin: 0;
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	background: rgba(28, 18, 14, 0.78);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	backdrop-filter: blur(2px);
}

.cns-tryon-demo__shot--after .cns-tryon-demo__label {
	background: rgba(121, 7, 7, 0.9);
}

.cns-tryon-demo__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: #790707;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 3px 8px rgba(121, 7, 7, 0.28);
}

.cns-tryon-demo__caption {
	margin: -0.35rem 0 0;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #6a5f56;
	font-style: italic;
}

.cns-tryon-open {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 1.45rem;
	background: #790707;
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	cursor: pointer;
	line-height: 1.2;
	box-shadow: 0 4px 0 #5f0505, 0 8px 16px rgba(121, 7, 7, 0.25);
	width: 100%;
	text-align: center;
}

.cns-tryon-open--simple {
	width: 100%;
	max-width: 28rem;
	padding: 0.8rem 1.2rem;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	background: #790707;
	color: #fff;
	border: 0;
	box-shadow: 0 3px 0 #5f0505, 0 8px 16px rgba(121, 7, 7, 0.22);
}

.cns-tryon-open:hover,
.cns-tryon-open:focus-visible {
	background: #5f0505;
	outline: none;
	transform: translateY(1px);
	box-shadow: 0 3px 0 #3f0303, 0 6px 12px rgba(121, 7, 7, 0.22);
}

.cns-tryon-open--simple:hover,
.cns-tryon-open--simple:focus-visible {
	background: #5f0505;
	color: #fff;
	transform: translateY(1px);
	box-shadow: 0 2px 0 #3f0303, 0 6px 14px rgba(121, 7, 7, 0.2);
}

.cns-tryon-open:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #3f0303, 0 3px 8px rgba(121, 7, 7, 0.18);
}

.cns-tryon-open--simple:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #3f0303, 0 3px 8px rgba(121, 7, 7, 0.18);
}

.cns-tryon-note {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #4a4038;
}

.cns-tryon-modal[hidden] {
	display: none !important;
}

.cns-tryon-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.cns-tryon-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 18, 14, 0.55);
}

.cns-tryon-modal__panel {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	padding: 1.25rem 1.25rem 1.4rem;
}

.cns-tryon-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.cns-tryon-modal__head h2 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
	color: #1c120e;
}

.cns-tryon-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #5c534c;
	padding: 0.15rem 0.35rem;
}

.cns-tryon-modal__style {
	margin: 0 0 0.85rem;
	font-size: 0.92rem;
	color: #5c534c;
}

.cns-tryon-admin-badge {
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	background: #1c120e;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.cns-tryon-modal__tips {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	background: #faf7f3;
	border-radius: 10px;
	font-size: 0.86rem;
	color: #3d342e;
}

.cns-tryon-modal__tips ul {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
}

.cns-tryon-modal__drop {
	border: 1.5px dashed #cbbfb3;
	border-radius: 12px;
	padding: 1.1rem 1rem 1.15rem;
	text-align: center;
	background: #fcfbf9;
}

.cns-tryon-modal__drop.is-dragover {
	border-color: #790707;
	background: #fff6f6;
}

.cns-tryon-modal__drop-title {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1c120e;
}

.cns-tryon-modal__drop-hint {
	margin: 0 0 0.85rem;
	font-size: 0.84rem;
	color: #5c534c;
}

.cns-tryon-modal__source-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
}

.cns-tryon-modal__webcam {
	margin-top: 0.85rem;
	padding: 0.75rem;
	border: 1px solid #e8dfd6;
	border-radius: 12px;
	background: #1c120e;
	text-align: center;
}

.cns-tryon-modal__cam-video {
	display: block;
	width: 100%;
	max-height: 280px;
	margin: 0 auto 0.75rem;
	border-radius: 10px;
	background: #000;
	object-fit: cover;
	transform: scaleX(-1);
}

.cns-tryon-modal__webcam .cns-tryon-modal__source-actions {
	margin-top: 0.15rem;
}

.cns-tryon-modal__webcam .cns-tryon-modal__secondary {
	background: #fff;
}

.cns-tryon-modal__file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.cns-tryon-modal__preview {
	margin: 0.85rem 0 0;
	text-align: center;
}

.cns-tryon-modal__color {
	margin: 1rem 0 0;
	padding: 0.85rem 0.9rem;
	border: 1px solid #e8dfd6;
	border-radius: 12px;
	background: #faf7f3;
}

.cns-tryon-modal__color legend {
	padding: 0 0.25rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: #1c120e;
}

.cns-tryon-modal__color-opt {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.45rem 0;
	font-size: 0.9rem;
	color: #3d342e;
	cursor: pointer;
}

.cns-tryon-modal__color-opt input {
	margin-top: 0.2rem;
}

.cns-tryon-modal__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.65rem;
	align-items: center;
}

.cns-tryon-swatch {
	appearance: none;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #cbbfb3;
	background: var(--cns-swatch, #888);
	cursor: pointer;
	padding: 0;
}

.cns-tryon-swatch.is-selected,
.cns-tryon-swatch:focus-visible {
	box-shadow: 0 0 0 2px #790707;
	outline: none;
}

.cns-tryon-modal__swatch-label {
	flex-basis: 100%;
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: #5c534c;
	min-height: 1.1em;
}

.cns-tryon-modal__preview img {
	max-width: 100%;
	max-height: 220px;
	border-radius: 10px;
	object-fit: cover;
}

.cns-tryon-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
}

.cns-tryon-modal__primary {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.2rem;
	background: #790707;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.cns-tryon-modal__primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.cns-tryon-modal__secondary {
	appearance: none;
	border: 1px solid #cbbfb3;
	border-radius: 999px;
	padding: 0.65rem 1.1rem;
	background: #fff;
	color: #1c120e;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.cns-tryon-modal__status {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	color: #5c534c;
	min-height: 1.25em;
}

.cns-tryon-modal__privacy {
	margin: 0.85rem 0 0;
	font-size: 0.78rem;
	color: #7a7169;
}

.cns-tryon-modal__paywall {
	margin-top: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: #faf7f3;
	border: 1px solid #e8dfd6;
}

.cns-tryon-modal__paywall h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.cns-tryon-modal__paywall-lead {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	color: #5c534c;
}

.cns-tryon-modal__paywall p {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: #5c534c;
}

.cns-tryon-modal__pay-option {
	margin: 0 0 0.95rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid #e8dfd6;
}

.cns-tryon-modal__pay-option:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.cns-tryon-modal__pay-option strong {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	color: #1c120e;
}

.cns-tryon-modal__pay-option .cns-tryon-modal__primary,
.cns-tryon-modal__pay-option .cns-tryon-modal__secondary {
	margin-top: 0.15rem;
}

.cns-tryon-modal__single-pay {
	margin: 0.65rem 0 1rem;
	padding: 0.75rem;
	border: 1px solid #e8dfd6;
	border-radius: 12px;
	background: #fff;
}

.cns-tryon-modal__pay-heading {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1c120e;
}

.cns-tryon-modal__member-auth {
	margin: 0.65rem 0 1rem;
	padding: 0.75rem;
	border: 1px solid #e8dfd6;
	border-radius: 12px;
	background: #fffaf7;
}

.cns-tryon-modal__auth-lead {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #4a4038;
}

.cns-tryon-modal__auth-label {
	display: block;
	margin: 0.35rem 0 0.2rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #3a322c;
}

.cns-tryon-modal__auth-input {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.35rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid #d9cfc6;
	border-radius: 8px;
	font-size: 1rem;
}

.cns-tryon-modal__auth-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.55rem;
}

.cns-tryon-modal__wallet-label {
	margin: 0 0 0.4rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #1c120e;
}

.cns-tryon-modal__express {
	margin: 0 0 0.75rem;
	min-height: 48px;
	padding: 0;
}

.cns-tryon-modal__express iframe {
	max-width: 100% !important;
}

.cns-tryon-modal__pay-divider {
	margin: 0.35rem 0 0.65rem;
	text-align: center;
	font-size: 0.8rem;
	color: #7a7169;
}

.cns-tryon-modal__stripe {
	margin: 0 0 0.75rem;
	min-height: 48px;
}

.cns-tryon-modal__pay-secure {
	margin: 0.55rem 0 0;
	font-size: 0.78rem;
	color: #7a7169;
}

.cns-tryon-modal__single-pay .cns-tryon-modal__primary,
.cns-tryon-modal__single-pay .cns-tryon-modal__secondary {
	margin-right: 0.4rem;
	margin-top: 0.25rem;
}

.cns-tryon-modal__result {
	margin-top: 0.75rem;
	text-align: center;
}

.cns-tryon-modal__result img {
	max-width: 100%;
	border-radius: 12px;
}

/* Phase 4: one soft secondary after result */
.cns-tryon-modal__secondary-cta {
	margin: 0.85rem 0 0.15rem;
	padding: 0.75rem 0.85rem;
	border-radius: 12px;
	background: #faf7f3;
	border: 1px solid #eadfcd;
	text-align: center;
}
.cns-tryon-modal__secondary-sub {
	margin: 0 0 0.55rem;
	font-size: 0.88rem;
	line-height: 1.4;
	color: #5c534c;
}
.cns-tryon-modal__secondary-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: #790707;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.9rem;
}
.cns-tryon-modal__secondary-btn:hover {
	opacity: 0.94;
}

@media (max-width: 480px) {
	.cns-tryon-modal__panel {
		padding: 1rem;
		border-radius: 14px;
	}

	.cns-tryon-teaser {
		flex-direction: column;
		align-items: stretch;
		padding: 0.95rem 1rem;
	}

	.cns-tryon-teaser__title {
		font-size: 1.05rem;
	}

	.cns-tryon-teaser__btn {
		width: 100%;
		text-align: center;
		white-space: normal;
	}

	.cns-tryon-cta {
		padding: 1rem;
		gap: 0.75rem;
	}

	.cns-tryon-cta--simple {
		padding: 0.65rem 0.75rem;
		margin: 0.65rem 0 1.1rem;
	}

	.cns-tryon-cta__title {
		font-size: 1.05rem;
	}

	.cns-tryon-demo {
		gap: 0.4rem;
		padding: 0.55rem;
	}

	.cns-tryon-demo__shot {
		width: min(38vw, 118px);
	}

	.cns-tryon-demo__arrow {
		width: 1.45rem;
		height: 1.45rem;
		font-size: 0.85rem;
	}

	.cns-tryon-open {
		font-size: 1.08rem;
		padding: 1rem 1.25rem;
	}

	.cns-tryon-open--simple {
		width: 100%;
		max-width: none;
		font-size: 0.98rem;
		padding: 0.85rem 1.1rem;
		white-space: normal;
	}
}
