.btn-tryon {
	/* Inside Auto Layout (Absolute) x: max; y: min */
	position: absolute;
	width: auto;
	height: auto;
	right: 8px;
	top: 8px;
	
	/* Auto layout */
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 5px 8px;
	gap: 5px;
	overflow: hidden;
	
	background: rgba(255, 255, 255, 0.70);
	box-sizing: border-box;
	border: 1px solid var(--black, #000);
	backdrop-filter: blur(4px);

	color: var(--black, #000);
	font-family: inherit;
	font-size: 12px;
	font-weight: 300;
	line-height: 130%;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.2s ease;
	cursor: pointer;
}
.btn-tryon:hover {
	transform: scale(1.02);
	background: rgba(240, 240, 240, 0.8);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}
.btn-tryon > .i-tryon-min,
.btn-tryon > .i-hanger-min {
	/* Inside Auto layout */
	align-self: auto;
	width: 14px;
	height: 14px;
	flex: 0 1 auto;
	
	/* Frame */
	position: relative;
	overflow: hidden;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7.01367%202.11621C7.73858%202.11634%208.23588%202.4107%208.54004%202.81055C8.82946%203.19134%208.92287%203.63871%208.92285%203.94531C8.92285%204.73842%208.38734%205.17267%208.03516%205.48828C7.74289%205.75023%207.53067%205.96107%207.4502%206.26367L12.2383%209.11914C12.6616%209.37175%2012.9209%209.8293%2012.9209%2010.3223V10.7354C12.9209%2011.3979%2012.3832%2011.9353%2011.7207%2011.9355H2.30664C1.64399%2011.9354%201.10645%2011.398%201.10645%2010.7354V10.3223C1.10645%209.82916%201.36653%209.37171%201.79004%209.11914L6.64062%206.22559C6.74915%205.57266%207.17433%205.1862%207.50195%204.89258C7.85389%204.57715%208.06581%204.38083%208.11328%204.08105L8.12305%203.94531C8.12306%203.77598%208.06604%203.50918%207.90332%203.29492C7.75477%203.09963%207.49589%202.91712%207.01367%202.91699C6.53741%202.91703%206.27592%203.10443%206.12305%203.31055C5.95582%203.5364%205.89971%203.81382%205.90234%203.97852L5.50195%203.98438L5.10254%203.99121C5.09757%203.67983%205.1922%203.22303%205.48047%202.83398C5.78347%202.42534%206.2827%202.11625%207.01367%202.11621ZM2.19922%209.80664C2.01785%209.91491%201.90723%2010.111%201.90723%2010.3223V10.7354C1.90723%2010.9562%202.08582%2011.1356%202.30664%2011.1357H11.7207C11.9414%2011.1355%2012.1211%2010.9561%2012.1211%2010.7354V10.3223C12.1211%2010.1111%2012.0094%209.91493%2011.8281%209.80664L7.01367%206.93555L2.19922%209.80664Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center no-repeat;
}
.btn-tryon > * {
	/* Inside Auto layout */
	align-self: auto;
	flex: 0 1 auto;
}

/* Модальное окно */
.tryon-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-y: auto;
	z-index: 9999;
}
.tryon-overlay.tryon-show .modal-tryon {
	animation: tryFadeIn 0.3s ease;
}
.modal-tryon {
	/* Auto layout */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 528px;
	margin: 30px auto;
	overflow: hidden;
	background: var(--white, #FFF);
	border-radius: var(--block-radius, 0);
	box-shadow: 
		0 6px 14px 0 rgba(0, 0, 0, 0.05),
		0 0 2px 0 rgba(0, 0, 0, 0.15);
}
.modal-tryon .head {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
	
	/* Auto layout */
	position: relative;
	display: flex;
	align-items: center;
	padding: 34px 34px 32px 34px;
	gap: 14px;
	
	box-sizing: border-box;
}
.modal-tryon .head > .title {
	/* Inside Auto layout */
	align-self: auto;
	width: auto;
	flex: 1 1 460px;
	
	color: var(--black, #000);
	font-family: inherit;
	font-size: 20px;
	line-height: 120% /* 24px */;
	text-transform: uppercase;
}
.modal-tryon .head .btn-close {
	/* Inside Auto Layout (Absolute) x: max; y: min */
	position: absolute;
	width: 24px;
	height: 24px;
	right: 34px;
	top: 34px;
	left: unset;
	bottom: unset;
	
	/* Auto layout */
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 4px;
	box-sizing: border-box;
	background: none;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.2s ease;
	cursor: pointer;
}
.modal-tryon .head .btn-close:hover {
	transform: scale(1.1);
	opacity: 0.9;
}
.modal-tryon .btn-close > svg {
	width: 16px;
	height: 16px;
	flex: 0 1 auto;
	align-self: auto;
	position: relative;
}
.modal-tryon .body {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
	
	/* Auto layout */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 34px 34px 34px;
	gap: 10px;
	
	box-sizing: border-box;
}

/* Контент шагов */
.modal-tryon .body .tryon {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	height: 604px;
	flex: 0 1 auto;
	
	/* Auto layout */
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	
}
.modal-tryon .tryon > .tryon-step:not(.is-active) {
	display: none !important;
	animation: tryFadeIn 0.3s ease;
}
@keyframes tryFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Первый шаг и основные элементы */
.modal-tryon .tryon .text-rules {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	height: auto;
	flex: 1 1 604px;
	
	/* Auto layout */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	overflow: hidden;
	
}
.modal-tryon .text-rules .textout {
	/* Inside Auto layout */
	align-self: auto;
	width: auto;
	height: auto;
	flex: 1 1 540px;
	
	/* Auto layout */
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	overflow-y: scroll;

	color: var(--black, #000);
	font-family: inherit;
	font-size: 14px;
	line-height: 160%;
	
	background: rgba(255, 255, 255, 0.01);
	box-shadow: inset 0 -14px 10px -8px #FFFFFF;
	-webkit-mask-image: linear-gradient(0deg,transparent,#000 10px);
	mask-image: linear-gradient(0deg,transparent,#000 10px);
	overflow-y: auto;
}
.modal-tryon .textout::-webkit-scrollbar {
	width: 10px;
}

.modal-tryon .textout::-webkit-scrollbar-track {
	background: transparent;
}
.modal-tryon .textout::-webkit-scrollbar-thumb {
	background: rgba(33, 33, 33, 0.5);
	outline: none;
	border-radius: 0px;
	border: 2px solid #fff;
}
@-moz-document url-prefix() {
	.modal-tryon .textout {
		scrollbar-width: thin;
		scrollbar-color: #888888 transparent;
	}
}
.modal-tryon .textout h1, 
.modal-tryon .textout h2, 
.modal-tryon .textout h3,
.modal-tryon .textout p,
.modal-tryon .textout ol,
.modal-tryon .textout ul {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
	margin: 0;
}
.modal-tryon .textout ol {
	list-style-position: inside;
	padding-left: 0;
}
.modal-tryon .textout ul {
	padding-left: 1.2em;
}
.modal-tryon .textout h1,
.modal-tryon .textout h2,
.modal-tryon .textout h3 {
	font-size: 16px;
	font-weight: 600;
	line-height: 140%;
}
.modal-tryon .textout b,
.modal-tryon .textout strong,
.modal-tryon .textout .text-bold {
	font-weight: 600;
}
.modal-tryon .text-rules .bottom {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
	
	/* Auto layout */
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
}
.modal-tryon .btn-light {
	/* Inside Auto layout */
	align-self: auto;
	width: auto;
	height: 44px;
	flex: 1 1 225px;
	
	/* Auto layout */
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 13px 20px;
	overflow: hidden;
	
	background: none;
	border: 1px solid #000000;
	border-radius: var(--btn-radius, 0);
	box-sizing: border-box;

	color: var(--black, #000);
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 130%;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.2s ease;
	cursor: pointer;
}
.modal-tryon .btn {
	/* Inside Auto layout */
	align-self: auto;
	width: auto;
	height: 44px;
	flex: 1 1 225px;
	
	/* Auto layout */
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 13px 20px;
	overflow: hidden;
	
	border: 1px solid #000000;
	background: var(--black, #000);
	border-radius: var(--btn-radius, 0);
	box-sizing: border-box;

	color: var(--white, #FFF);
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 130%;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.2s ease;
	cursor: pointer;
}
.modal-tryon .btn > .text {
	/* Inside Auto layout */
	align-self: auto;
	flex: 0 1 auto;
}
.modal-tryon .btn::before,
.modal-tryon .btn-light::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0%;
	height: 100%;
	opacity: 0;
	background: rgba(214, 214, 214, 0.3);
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-tryon .btn:hover::before,
.modal-tryon .btn-light:hover::before {
	width: 100%;
	opacity: 1;
}

/* Выбор фото */
.modal-tryon .tryon .file-plug {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	height: auto;
	flex: 1 1 604px;
	
	/* Auto layout */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	gap: 20px;
	overflow: hidden;
	
	box-sizing: border-box;
	border: 2px dashed #E7E4E4;
	transition: all 0.3s ease;
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
}
.modal-tryon .tryon .file-plug:hover,
.modal-tryon .tryon .file-plug.drag-over {
	border-color: var(--black, #000);
	background: rgba(77, 77, 77, 0.10);
 	transform: scale(1.01);
}
.modal-tryon .file-plug .i-load-photo {
	/* Inside Auto layout */
	align-self: auto;
	width: 38px;
	height: 38px;
	flex: 0 1 auto;
	
	/* Frame */
	position: relative;
	overflow: hidden;
	
}
.modal-tryon .file-plug .caption {
	/* Inside Auto layout */
	width: 100%;
	flex: 0 1 auto;
	max-width: 320px;
	
	/* Auto layout */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;

	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 142%;
	text-align: center;
}
.modal-tryon .caption > .text {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
}
.modal-tryon .caption .subtext {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
	
	/* Auto layout */
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 4px;
	font-weight: normal;
}
.modal-tryon .subtext > .link {
	/* Inside Auto layout */
	align-self: auto;
	flex: 0 1 auto;
	text-decoration: underline;
	text-align: center;
}

/* Подтверждение фото */
.modal-tryon .tryon .file-item {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	height: 604px;
	flex: 1 1 604px;
	
	/* Frame */
	position: relative;
	overflow: hidden;
	
}
.modal-tryon .file-item .img {
	/* Inside Frame x: stretch; y: stretch */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.modal-tryon .file-item .tools {
	/* Inside Frame x: max; y: min */
	position: absolute;
	width: auto;
	right: 14px;
	height: auto;
	top: 14px;
	
	/* Auto layout */
	display: inline-flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	
	bottom: unset;
	left: unset;
}
.modal-tryon .tools .ibtn {
	/* Inside Auto layout */
	align-self: auto;
	flex: 0 1 auto;
	
	/* Auto layout */
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 6px;
	gap: 4px;
	overflow: hidden;
	
	background: var(--black-40, rgba(0, 0, 0, 0.40));
	border-radius: 12px;
	transition: all 0.2s ease;
	color: var(--white, #FFF);
	font-size: 12px;
	line-height: 100%;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.modal-tryon .tools .ibtn:hover {
	transform: scale(1.02);
	background-color: rgba(0, 0, 0, 0.5);
}
.modal-tryon .tools .ibtn > i {
	display: inline-block;
	width: 12px;
	height: 12px;
	align-self: auto;
	flex: 0 1 auto;
	background-repeat: no-repeat;
	background-position: center;
}
.modal-tryon .tools .ibtn > .i-del-undo {
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12984%201.23674C4.32511%201.04156%204.64164%201.0415%204.83688%201.23674C5.03194%201.43199%205.032%201.74856%204.83688%201.94377L2.77731%204.00334H6.80856C9.13446%204.00334%2011.0205%205.88935%2011.0205%208.21525V10.4623C11.0203%2010.7383%2010.7965%2010.9623%2010.5205%2010.9623C10.2446%2010.9621%2010.0206%2010.7382%2010.0205%2010.4623V8.21525C10.0205%206.44163%208.58218%205.00334%206.80856%205.00334H2.66207L4.83688%207.17815C5.03194%207.3734%205.032%207.68996%204.83688%207.88518C4.64167%208.08038%204.32512%208.08027%204.12984%207.88518L1.15914%204.91447C0.96388%204.71921%200.96388%204.4027%201.15914%204.20744L4.12984%201.23674Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center no-repeat;
}
.modal-tryon .tools .ibtn > .i-dload-min {
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M10.2676%209.93652C10.5435%209.93679%2010.7676%2010.1605%2010.7676%2010.4365C10.7674%2010.7124%2010.5434%2010.9363%2010.2676%2010.9365H1.7334C1.45734%2010.9365%201.23353%2010.7126%201.2334%2010.4365C1.2334%2010.1604%201.45726%209.93652%201.7334%209.93652H10.2676ZM6.06641%200.5C6.34255%200.5%206.56641%200.723858%206.56641%201V7.22656L8.64648%205.14648C8.84175%204.95122%209.15825%204.95122%209.35352%205.14648C9.54878%205.34175%209.54878%205.65825%209.35352%205.85352L6.35352%208.85352C6.15825%209.04878%205.84175%209.04878%205.64648%208.85352L2.64648%205.85352C2.45122%205.65825%202.45122%205.34175%202.64648%205.14648C2.84175%204.95122%203.15825%204.95122%203.35352%205.14648L5.56641%207.35938V1C5.56641%200.723881%205.7903%200.500038%206.06641%200.5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E%0A") center no-repeat;
}
.modal-tryon .file-item > .bottom {
	/* Inside Auto Layout (Absolute) x: stretch; y: max */
	position: absolute;
	top: unset;
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	padding-top: 100px;
	
	/* Auto layout */
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
}

/* Обработка */
.modal-tryon .file-item .wait-mask {
	/* Inside Frame x: stretch; y: stretch */
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	
	background: url(./tryon-wait.gif) repeat rgba(0, 0, 0, 0.20);
	opacity: 0.50;
}
.modal-tryon .file-item .loader-graph {
	/* Inside Frame x: center; y: center */
	position: absolute;
	width: auto;
	height: auto;
	top: calc(50% - 124px/2);
	left: calc(50% - 104px/2);
	right: unset;
	bottom: unset;
	
	/* Auto layout */
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 18px;
	gap: 14px;
	overflow: hidden;

	color: var(--white, #FFF);
	font-size: 12px;
	line-height: 130%;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
	
	background: radial-gradient(50.5% 42.08% at 50% 41.67%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.00) 100%);
	box-sizing: border-box;
}
.modal-tryon .loader-graph .load-anim {
	/* Inside Auto layout */
	align-self: auto;
	width: 68px;
	height: 62px;
	flex: 0 1 auto;
	
	/* Frame */
	position: relative;
	overflow: hidden;
	
	/* Animation */
	background-image: url('./tryon-load.png');
	background-size: 544px 62px;
	background-repeat: no-repeat;
	animation: tryLoadAnim 0.6s steps(8) infinite;
}
.modal-tryon .loader-graph > .caption {
	/* Inside Auto layout */
	align-self: stretch;
	width: auto;
	flex: 0 1 auto;
}
@-webkit-keyframes tryLoadAnim {
	0% { background-position: 0 0; }
	100% { background-position: -544px 0; }
}
@keyframes tryLoadAnim {
	0% { background-position: 0 0; }
	100% { background-position: -544px 0; }
}

/* Ошибки и уведомления */
.tryon-message {
	position: absolute;
	display: none;
	background: #f9dddf;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 14px;
	width: 90%;
	top: calc(50% - 64px);
	margin: 10px 5%;
	border-radius: var(--block-radius, 0);
	box-sizing: border-box;
	z-index: 10;
}
.tryon-message.show {
	display: block;
	animation: trySlideIn 0.3s ease;
}
@keyframes trySlideIn {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Адаптивность */
@media (max-width: 768px) {
	.modal-tryon .head {
		padding: 26px 20px;
	}
	.modal-tryon .head .btn-close {
		right: 24px;
		top: 26px;
	}
	.modal-tryon .body {
		padding: 0 20px 20px 20px;
	}
	.modal-tryon .body .tryon {
		height: 480px;
	}
}

@media (max-height: 720px) {
	.tryon-overlay {
		align-items: flex-start;
	}
}