.try-on-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0.7rem 1.1rem;
	border-style: solid;
	background: #2fb45d;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.try-on-launcher:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.try-on-launcher:focus-visible {
	outline: 3px solid rgba(47, 180, 93, 0.35);
	outline-offset: 3px;
}

.try-on-launcher:disabled,
.try-on-launcher--unavailable {
	opacity: 0.55;
	cursor: not-allowed;
}

.try-on-launcher__icon,
.try-on-app__option i {
	flex: 0 0 auto;
	width: 1.5em;
	height: 1.5em;
	font-family: inherit !important;
	font-style: normal;
	line-height: 1;
}

.try-on-launcher__icon::before,
.try-on-app__option i::before {
	content: "" !important;
	display: block;
	width: 100%;
	height: 100%;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.try-on-launcher__icon.fa-glasses::before {
	-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTMgMTMgNC41IDdoM0w5IDEwLjVNMjEgMTMgMTkuNSA3aC0zTDE1IDEwLjVNOS41IDEyaDUiLz48Y2lyY2xlIGN4PSI3IiBjeT0iMTQiIHI9IjQiLz48Y2lyY2xlIGN4PSIxNyIgY3k9IjE0IiByPSI0Ii8+PC9nPjwvc3ZnPg==");
	mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTMgMTMgNC41IDdoM0w5IDEwLjVNMjEgMTMgMTkuNSA3aC0zTDE1IDEwLjVNOS41IDEyaDUiLz48Y2lyY2xlIGN4PSI3IiBjeT0iMTQiIHI9IjQiLz48Y2lyY2xlIGN4PSIxNyIgY3k9IjE0IiByPSI0Ii8+PC9nPjwvc3ZnPg==");
}

.try-on-app__option .fa-image::before {
	-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHJlY3QgeD0iMyIgeT0iNCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE2IiByeD0iMSIvPjxjaXJjbGUgY3g9IjguNSIgY3k9IjkiIHI9IjEuNSIvPjxwYXRoIGQ9Im00IDE4IDUtNSAzIDMgMi0yIDYgNCIvPjwvZz48L3N2Zz4=");
	mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPS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IvPjwvZz48L3N2Zz4=");
}

body.try-on-modal-open {
	overflow: hidden;
}

.try-on-app[hidden],
.try-on-app [hidden] {
	display: none !important;
}

.try-on-app {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 22px;
	font-family: Arial, Helvetica, sans-serif;
}

.try-on-app__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 16, 0.72);
	backdrop-filter: blur(3px);
}

.try-on-app__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(650px, 100%);
	max-height: min(88dvh, 800px);
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
	color: #20252b;
}

.try-on-app__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 16px 12px;
	border-bottom: 1px solid #e5e7eb;
}

.try-on-app__title {
	margin: 0;
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	line-height: 1.25;
}

.try-on-app__close {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f5;
	color: #222;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.try-on-app__close:hover {
	background: #e4e7ea;
}

.try-on-app__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px;
}

.try-on-app__choice {
	display: grid;
	gap: 12px;
	justify-items: center;
}

.try-on-app__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: min(500px, 100%);
}

.try-on-app__option,
.try-on-app__capture,
.try-on-app__secondary {
	min-height: 44px;
	padding: 9px 14px;
	border: 2px solid #2c3137;
	border-radius: 0;
	background: #fff;
	color: #2c3137;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.try-on-app__option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.96rem;
}

.try-on-app__option:hover,
.try-on-app__capture:hover,
.try-on-app__secondary:hover {
	background: #2c3137;
	color: #fff;
}

.try-on-app__option:focus-visible,
.try-on-app__capture:focus-visible,
.try-on-app__secondary:focus-visible,
.try-on-app__close:focus-visible,
.try-on-app select:focus-visible {
	outline: 3px solid rgba(47, 180, 93, 0.35);
	outline-offset: 2px;
}

.try-on-app__instructions {
	display: block;
	padding: 20px 0;
	width: min(390px, 74vw);
	height: auto;
	max-height: min(46vh, 430px);
	object-fit: contain;
	border-radius: 10px;
}

.try-on-app__privacy {
	margin: 0;
	max-width: 500px;
	color: #626971;
	font-size: 0.79rem;
	line-height: 1.45;
	text-align: center;
}

.try-on-app__stage {
	display: grid;
	place-items: center;
	margin-top: 12px;
	min-height: 180px;
	border-radius: 12px;
	background: #f5f6f7;
	overflow: hidden;
}

.try-on-app__canvas,
.try-on-app__video {
	display: block;
	max-width: 100%;
	max-height: min(50dvh, 560px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.try-on-app__video {
	width: 100%;
	transform: scaleX(-1);
	background: #111;
}

.try-on-app__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.try-on-app__ipd {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.try-on-app__ipd select {
	min-height: 42px;
	padding: 7px 34px 7px 10px;
	border: 1px solid #9aa1a9;
	border-radius: 5px;
	background: #fff;
	color: #20252b;
	font: inherit;
}

.try-on-app__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	margin-top: 12px;
	color: #4a525b;
	font-size: 0.92rem;
	text-align: center;
}

.try-on-app__spinner {
	width: 19px;
	height: 19px;
	border: 3px solid #d6dadd;
	border-top-color: #2fb45d;
	border-radius: 50%;
	animation: try-on-spin 0.8s linear infinite;
}

.try-on-app__error {
	margin-top: 12px;
	padding: 11px 13px;
	border: 1px solid #f0b7b7;
	border-radius: 7px;
	background: #fff5f5;
	color: #8c2323;
	line-height: 1.45;
	text-align: center;
}

@keyframes try-on-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
	.try-on-app {
		padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	}

	.try-on-app__dialog {
		width: min(410px, calc(100vw - 36px));
		max-height: calc(100dvh - 52px);
		border-radius: 13px;
	}

	.try-on-app__header {
		padding: 20px 10px 9px 13px;
	}

	.try-on-app__body {
		padding: 10px 12px 12px;
	}

	.try-on-app__title {
		font-size: 1.02rem;
	}

	.try-on-app__close {
		width: 33px;
		height: 33px;
		font-size: 22px;
	}

	.try-on-app__choice {
		gap: 8px;
	}

	.try-on-app__options {
		gap: 7px;
	}

	.try-on-app__option {
		min-height: 42px;
		padding: 7px 8px;
		font-size: 0.85rem;
	}

	.try-on-app__instructions {
		width: min(255px, 65vw);
		max-height: min(33dvh, 270px);
		border-radius: 7px;
	}

	.try-on-app__privacy {
		font-size: 0.71rem;
		line-height: 1.35;
	}

	.try-on-app__stage {
		min-height: 125px;
		margin-top: 8px;
	}

	.try-on-app__canvas,
	.try-on-app__video {
		max-height: min(42dvh, 420px);
	}

	.try-on-app__controls {
		gap: 7px;
		margin-top: 8px;
	}

	.try-on-app__capture,
	.try-on-app__secondary,
	.try-on-app__ipd {
		min-height: 40px;
	}
}

@media (max-width: 360px) {
	.try-on-app__dialog {
		width: calc(100vw - 28px);
		max-height: calc(100dvh - 44px);
	}

	.try-on-app__option {
		font-size: 0.78rem;
		gap: 5px;
	}

	.try-on-app__instructions {
		width: min(225px, 66vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	.try-on-launcher,
	.try-on-app__option,
	.try-on-app__capture,
	.try-on-app__secondary {
		transition: none;
	}
}
