:root {
	--fitm-accent: #8b5cf6;
	--fitm-accent-dark: #7c3aed;
	--fitm-pink: #ec4899;
	--fitm-pink-dark: #db2777;
	--fitm-ink: #171226;
	--fitm-soft: #6b6680;
	--fitm-line: #e8e4f2;
	--fitm-bg-soft: #f7f5fc;
}

.fitmatch-buttons,
.fitmatch-buttons *,
.fitmatch-modal-overlay,
.fitmatch-modal-overlay * {
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fitmatch-buttons i.fa-solid,
.fitmatch-modal-overlay i.fa-solid,
.fitmatch-pop-overlay i.fa-solid,
.fitmatch-choices i.fa-solid,
.fitmatch-dropzone i.fa-solid,
.fitmatch-submit i.fa-solid {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-style: normal;
}

.fitmatch-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 18px 0;
	width: 100%;
	clear: both;
}

.fitmatch-btn,
a.fitmatch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: none !important;
	letter-spacing: 0.01em;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	border: 1.5px solid transparent;
}

.fitmatch-btn:active {
	transform: scale(0.98);
}

.fitmatch-btn-tryon {
	background: linear-gradient(135deg, #2b2140 0%, #171226 100%);
	color: #fff;
	border-color: var(--fitm-ink);
	box-shadow: 0 6px 18px rgba(43, 33, 64, 0.35);
}

.fitmatch-btn-tryon:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(43, 33, 64, 0.45);
	color: #fff;
	background: linear-gradient(135deg, #3a2d55 0%, #1f1832 100%);
}

.fitmatch-btn-size,
a.fitmatch-btn-size {
	background: #fff;
	color: var(--fitm-ink);
	border-color: #d9d3ea;
}

.fitmatch-btn-size:hover {
	transform: translateY(-2px);
	border-color: var(--fitm-accent);
	color: var(--fitm-accent-dark);
	box-shadow: 0 8px 20px rgba(139, 92, 246, 0.18);
}

.fitmatch-btn-login,
a.fitmatch-btn-login {
	background: #fff;
	border: 1.5px solid var(--fitm-pink);
	color: var(--fitm-pink-dark);
}

a.fitmatch-btn-login:hover,
.fitmatch-btn-login:hover {
	background: #0f1115;
	border-color: #0f1115;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15, 17, 21, 0.28);
}

.fitmatch-pop-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(19, 12, 34, 0.68);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: fitm-fade 0.2s ease;
}

.fitmatch-pop-overlay[hidden] {
	display: none;
}

.fitmatch-pop {
	position: relative;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 90px rgba(19, 12, 34, 0.5);
	width: 100%;
	max-width: 380px;
	padding: 32px 26px 26px;
	text-align: center;
	color: var(--fitm-ink);
	animation: fitm-pop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.fitmatch-pop-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--fitm-accent), var(--fitm-pink));
	color: #fff;
	margin-bottom: 14px;
}

.fitmatch-pop-icon svg {
	width: 26px;
	height: 26px;
}

.fitmatch-pop-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.fitmatch-pop-text {
	margin: 0 0 20px;
	font-size: 13.5px;
	color: var(--fitm-soft);
	line-height: 1.6;
}

.fitmatch-pop-actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.fitmatch-pop-actions .fitmatch-btn {
	width: 100%;
}

.fitmatch-pop .fitmatch-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.fitmatch-btn svg {
	flex-shrink: 0;
}

.fitmatch-btn-primary,
a.fitmatch-btn-primary {
	background: linear-gradient(135deg, var(--fitm-accent) 0%, var(--fitm-pink) 130%);
	color: #fff;
	border: none;
	box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.fitmatch-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(139, 92, 246, 0.45);
	color: #fff;
}

.fitmatch-btn-ghost {
	background: transparent;
	color: var(--fitm-soft);
	border-color: var(--fitm-line);
}

.fitmatch-btn-ghost:hover {
	color: var(--fitm-ink);
	border-color: #c4bcd9;
}

.fitmatch-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(19, 12, 34, 0.68);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	animation: fitm-fade 0.2s ease;
}

.fitmatch-modal-overlay[hidden] {
	display: none;
}

.fitmatch-modal {
	position: relative;
	background: #fff;
	color: var(--fitm-ink);
	border-radius: 22px;
	box-shadow: 0 30px 90px rgba(19, 12, 34, 0.5);
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overflow-x: hidden;
	animation: fitm-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes fitm-fade {
	from { opacity: 0; }
}

@keyframes fitm-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.96); }
}

.fitmatch-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--fitm-bg-soft);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
	border-radius: 22px 22px 0 0;
}

.fitmatch-modal-branding {
	display: flex;
	align-items: center;
	gap: 11px;
}

.fitmatch-modal-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--fitm-line);
	overflow: hidden;
	flex-shrink: 0;
}

.fitmatch-modal-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.fitmatch-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.fitmatch-modal-powered {
	font-size: 11px;
	color: var(--fitm-pink-dark);
	font-weight: 600;
}

.fitmatch-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--fitm-bg-soft);
	color: var(--fitm-soft);
	cursor: pointer;
	transition: all 0.15s ease;
}

.fitmatch-modal-close:hover {
	background: #fde7f3;
	color: var(--fitm-pink-dark);
	transform: rotate(90deg);
}

.fitmatch-steps {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 22px 4px;
}

.fitmatch-step-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: #a9a3ba;
	white-space: nowrap;
}

.fitmatch-step-chip i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fitm-bg-soft);
	color: #a9a3ba;
	font-style: normal;
	font-size: 11px;
	transition: all 0.2s ease;
}

.fitmatch-step-chip.is-active {
	color: var(--fitm-ink);
}

.fitmatch-step-chip.is-active i {
	background: linear-gradient(135deg, var(--fitm-accent), var(--fitm-pink));
	color: #fff;
}

.fitmatch-step-chip.is-done {
	color: var(--fitm-accent-dark);
}

.fitmatch-step-chip.is-done i {
	background: var(--fitm-accent);
	color: #fff;
}

.fitmatch-step-line {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: var(--fitm-line);
	min-width: 14px;
}

.fitmatch-step {
	padding: 14px 22px 22px;
	animation: fitm-step-in 0.25s ease;
}

@keyframes fitm-step-in {
	from { opacity: 0; transform: translateX(10px); }
}

.fitmatch-hint {
	font-size: 13.5px;
	color: var(--fitm-soft);
	line-height: 1.55;
	margin: 4px 0 14px;
}

.fitmatch-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 6px 0;
}

.fitmatch-dropzone {
	position: relative;
	border: 1.6px dashed #d5cee9;
	border-radius: 16px;
	background:
		radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.05), transparent 60%),
		var(--fitm-bg-soft);
	min-height: 170px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-align: center;
	overflow: hidden;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.fitmatch-dropzone:hover,
.fitmatch-dropzone.fitmatch-drag {
	border-color: var(--fitm-accent);
	background: #f5f1fe;
	transform: translateY(-1px);
}

.fitmatch-dropzone.fitmatch-has-file {
	border-style: solid;
	border-color: #d9c9f9;
}

.fitmatch-dropzone-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 20px 14px;
	color: #8d8799;
}

.fitmatch-dropzone-icon {
	color: #b3adc2;
	margin-bottom: 2px;
}

.fitmatch-dropzone-icon i {
	font-size: 30px;
}

.fitmatch-dropzone-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #4c4560;
}

.fitmatch-dropzone-sub {
	font-size: 11.5px;
	color: #a49eb5;
}

.fitmatch-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fitmatch-photo-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(23, 18, 38, 0.72);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	z-index: 2;
}

.fitmatch-photo-remove:hover {
	background: var(--fitm-pink-dark);
}

.fitmatch-size-mode-row {
	margin: 2px 0 16px;
}

.fitmatch-size-mode-row .fitmatch-seg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	background: transparent;
	border: none;
	padding: 0;
	border-radius: 12px;
}

.fitmatch-size-mode-row .fitmatch-seg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 8px;
	border: 1.5px solid var(--fitm-line);
	border-radius: 11px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--fitm-soft);
	cursor: pointer;
	transition: all 0.15s ease;
}

.fitmatch-size-mode-row .fitmatch-seg-btn i {
	font-size: 12px;
}

.fitmatch-size-mode-row .fitmatch-seg-btn:hover {
	border-color: var(--fitm-accent);
	color: var(--fitm-accent-dark);
}

.fitmatch-size-mode-row .fitmatch-seg-btn.is-active {
	background: var(--fitm-ink);
	border-color: var(--fitm-ink);
	color: #fff;
	box-shadow: 0 4px 12px rgba(23, 18, 38, 0.25);
}

.fitmatch-saved-preview {
	border-radius: 14px;
	overflow: hidden;
	border: 1.5px solid #d9c9f9;
	max-height: 260px;
	margin-bottom: 12px;
}

.fitmatch-saved-preview img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.fitmatch-saved-empty {
	margin: 0;
	padding: 18px 16px;
	font-size: 13px;
	color: var(--fitm-soft);
	text-align: center;
}

.fitmatch-chooser-row {
	margin: 4px 0 20px;
}

.fitmatch-chooser-label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: #4c4560;
	margin-bottom: 8px;
}

.fitmatch-choices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.fitmatch-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 14px 6px 12px;
	background: var(--fitm-bg-soft);
	border: 1.6px solid var(--fitm-line);
	border-radius: 14px;
	cursor: pointer;
	color: #8d8799;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fitmatch-choice:hover {
	border-color: #c4b5fd;
	background: #faf8ff;
	transform: translateY(-1px);
}

.fitmatch-choice-icon {
	display: inline-flex;
}

.fitmatch-choice-icon i {
	font-size: 22px;
}

.fitmatch-choice-label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.fitmatch-choice-check {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fitm-ink);
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(23, 18, 38, 0.35);
}

.fitmatch-choice-check i {
	color: #fff;
}

.fitmatch-choice.is-active {
	border-color: var(--fitm-accent);
	background: linear-gradient(160deg, #f5f0ff 0%, #fdf2f8 100%);
	color: var(--fitm-accent-dark);
	box-shadow: 0 6px 16px rgba(139, 92, 246, 0.18);
}

.fitmatch-choice.is-active .fitmatch-choice-check {
	display: inline-flex;
	animation: fitm-pop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.fitmatch-photo-chips-row {
	margin: 12px 0 4px;
}

.fitmatch-photo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.fitmatch-photo-chip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 14px 7px 8px;
	background: var(--fitm-bg-soft);
	border: 1.6px solid var(--fitm-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	font-family: inherit;
}

.fitmatch-photo-chip:hover {
	border-color: #c4b5fd;
	background: #faf8ff;
}

.fitmatch-photo-chip img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.fitmatch-photo-chip span {
	font-size: 12.5px;
	font-weight: 700;
	color: #4c4560;
	white-space: nowrap;
}

.fitmatch-photo-chip.is-active {
	border-color: var(--fitm-accent);
	background: linear-gradient(160deg, #f5f0ff 0%, #fdf2f8 100%);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.16);
}

.fitmatch-photo-chip.is-active::after {
	content: "✓";
	position: absolute;
	top: -7px;
	right: -7px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--fitm-accent), var(--fitm-pink));
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fitmatch-garment {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0;
	padding: 11px 13px;
	background: linear-gradient(120deg, #f7f5fc 0%, #fdf2f8 100%);
	border: 1px solid var(--fitm-line);
	border-radius: 14px;
}

.fitmatch-garment img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 9px;
	flex-shrink: 0;
	background: #fff;
}

.fitmatch-garment-name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fitmatch-garment-name span:first-child {
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fitmatch-garment-type {
	font-size: 11px;
	font-weight: 700;
	color: var(--fitm-pink-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.fitmatch-garment-tag {
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a49eb5;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	flex-shrink: 0;
}

.fitmatch-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: #4c4560;
}

.fitmatch-field input,
.fitmatch-field select {
	padding: 11px 13px;
	border: 1.4px solid var(--fitm-line);
	border-radius: 11px;
	font-size: 14px;
	background: #fff;
	color: var(--fitm-ink);
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.fitmatch-field select {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6680' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
}

.fitmatch-field input:focus,
.fitmatch-field select:focus {
	outline: none;
	border-color: var(--fitm-accent);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.fitmatch-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 16px;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--fitm-accent) 0%, var(--fitm-pink) 130%);
	color: #fff;
	border: none;
	border-radius: 13px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fitmatch-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(139, 92, 246, 0.45);
}

.fitmatch-submit:active {
	transform: scale(0.99);
}

.fitmatch-submit:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.fitmatch-submit i {
	font-size: 15px;
}

.fitmatch-step .fitmatch-loading-title,
.fitmatch-step p {
	text-align: center;
}

.fitmatch-orb {
	width: 64px;
	height: 64px;
	margin: 42px auto 22px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9), transparent 42%),
		conic-gradient(var(--fitm-accent), var(--fitm-pink), #c4b5fd, var(--fitm-pink-dark), var(--fitm-accent));
	animation: fitm-spin 1.1s linear infinite;
	position: relative;
}

.fitmatch-orb::after {
	content: "";
	position: absolute;
	inset: 7px;
	background: #fff;
	border-radius: 50%;
}

.fitmatch-loading-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--fitm-ink);
}

.fitmatch-loading-sub {
	font-size: 12.5px !important;
	color: var(--fitm-soft);
	max-width: 320px;
	margin: 6px auto 0;
	line-height: 1.55;
}

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

.fitmatch-compare {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--fitm-bg-soft);
	border: 1px solid var(--fitm-line);
	user-select: none;
	-webkit-user-select: none;
	cursor: ew-resize;
	touch-action: none;
}

.fitmatch-compare-img {
	display: block;
	width: 100%;
	height: auto;
}

.fitmatch-compare-before {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-right: 2.5px solid #fff;
}

.fitmatch-compare-before img {
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}

.fitmatch-compare-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(23, 18, 38, 0.75);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	padding: 5px 10px;
	border-radius: 99px;
	backdrop-filter: blur(4px);
}

.fitmatch-compare-tag-after {
	left: auto;
	right: 10px;
	background: linear-gradient(90deg, var(--fitm-accent), var(--fitm-pink));
}

.fitmatch-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2.5px;
	background: #fff;
	box-shadow: 0 0 10px rgba(23, 18, 38, 0.45);
	pointer-events: none;
}

.fitmatch-compare-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background:
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6'/%3E%3Cpath d='m15 6 6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat,
		linear-gradient(135deg, #ffffff, #f3ecff);
	box-shadow: 0 5px 16px rgba(23, 18, 38, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.fitmatch-compare.fitmatch-hint .fitmatch-compare-before {
	animation: fitm-hint-before 2.4s ease-in-out 0.9s 2;
}

.fitmatch-compare.fitmatch-hint .fitmatch-compare-handle {
	animation: fitm-hint-handle 2.4s ease-in-out 0.9s 2;
}

.fitmatch-compare.fitmatch-hint .fitmatch-compare-handle::after {
	animation: fitm-knob-pulse 1.5s ease-in-out infinite;
}

@keyframes fitm-hint-before {
	0%, 100% { width: 50%; }
	40% { width: 66%; }
	55% { width: 66%; }
}

@keyframes fitm-hint-handle {
	0%, 100% { left: 50%; }
	40% { left: 66%; }
	55% { left: 66%; }
}

@keyframes fitm-knob-pulse {
	0%, 100% { box-shadow: 0 5px 16px rgba(23, 18, 38, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.25); }
	50% { box-shadow: 0 5px 22px rgba(139, 92, 246, 0.55), 0 0 0 6px rgba(139, 92, 246, 0.18); }
}

.fitmatch-compare-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}

.fitmatch-size-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 34px 16px 30px;
	background:
		radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
		radial-gradient(circle at 85% 100%, rgba(236, 72, 153, 0.08), transparent 55%),
		var(--fitm-bg-soft);
	border: 1px solid #e4d5fa;
	border-radius: 18px;
}

.fitmatch-size-label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--fitm-soft);
	font-weight: 800;
}

.fitmatch-size-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	padding: 16px 30px;
	background: linear-gradient(135deg, #2b2140 0%, var(--fitm-ink) 100%);
	color: #fff;
	font-size: 46px;
	font-weight: 800;
	border-radius: 20px;
	line-height: 1;
	box-shadow: 0 14px 30px rgba(23, 18, 38, 0.35);
}

.fitmatch-size-legwear {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--fitm-ink);
	background: #fff;
	border: 1px solid var(--fitm-line);
	padding: 7px 16px;
	border-radius: 99px;
}

.fitmatch-size-confidence {
	font-size: 12px;
	color: var(--fitm-accent-dark);
	font-weight: 700;
}

.fitmatch-result-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

.fitmatch-error {
	margin: 14px 0 0;
	padding: 12px 15px;
	background: #fdf0f0;
	border: 1px solid #f3cccc;
	color: #a13030;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.5;
}

.fitmatch-result-actions .fitmatch-btn {
	padding: 12px 18px;
}

.fitmatch-size-chip {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f5f0ff 0%, #fdf2f8 100%);
	border: 1.5px solid #d9c9f9;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	font-family: inherit;
	order: -1;
}

.fitmatch-size-chip:hover {
	transform: translateY(-2px);
	border-color: var(--fitm-accent);
	box-shadow: 0 8px 22px rgba(139, 92, 246, 0.2);
}

.fitmatch-chip-size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 8px;
	background: linear-gradient(135deg, var(--fitm-accent) 0%, var(--fitm-pink) 100%);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	border-radius: 12px;
	line-height: 1;
	flex-shrink: 0;
}

.fitmatch-chip-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.fitmatch-chip-text strong {
	font-size: 13.5px;
	color: var(--fitm-ink);
}

.fitmatch-chip-text em {
	font-style: normal;
	font-size: 12px;
	color: var(--fitm-soft);
}

.fitmatch-profile-row {
	margin: 2px 0 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--fitm-bg-soft);
}

.fitmatch-profile-row-label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: #4c4560;
	margin-bottom: 7px;
}

.fitmatch-profile-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fitmatch-pchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	background: var(--fitm-bg-soft);
	border: 1.5px solid var(--fitm-line);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 700;
	color: var(--fitm-soft);
	cursor: pointer;
	transition: all 0.15s ease;
}

.fitmatch-pchip em {
	font-style: normal;
	background: var(--fitm-accent);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 99px;
}

.fitmatch-pchip:hover {
	border-color: var(--fitm-accent);
	color: var(--fitm-accent-dark);
}

.fitmatch-pchip.is-active {
	background: #fff;
	border: 2px solid var(--fitm-accent);
	color: var(--fitm-accent-dark);
	padding: 8px 13px;
}

.fitmatch-pchip.is-active em {
	background: linear-gradient(135deg, var(--fitm-accent), var(--fitm-pink));
}

.fitmatch-pchip-new {
	border-style: dashed;
	color: var(--fitm-accent-dark);
}

.fitmatch-pchip-new:hover {
	background: #f5f1fe;
}

.fitmatch-profile-name {
	width: 100%;
	padding: 10px 13px;
	border: 1.4px solid var(--fitm-line);
	border-radius: 10px;
	font-size: 13.5px;
	margin-top: 8px;
	box-sizing: border-box;
}

.fitmatch-profile-name:focus {
	outline: none;
	border-color: var(--fitm-accent);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.fitmatch-saved-note {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--fitm-accent-dark);
	background: #e9f9f1;
	border: 1px solid #c9ecd9;
	padding: 10px 16px;
	border-radius: 99px;
}

.fitmatch-saved-note.fitmatch-saved-error {
	background: #fdf0f0;
	border-color: #f3cccc;
	color: #a13030;
}

.fitmatch-chooser-row {
	margin-top: 16px;
	margin-bottom: 20px;
}
.fitmatch-chooser-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 12px;
}
.fitmatch-garment-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.fitmatch-gchoice {
	background: none;
	border: 2px solid transparent;
	padding: 2px;
	border-radius: 8px;
	cursor: pointer;
	width: 64px;
	height: 64px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fitmatch-gchoice img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	pointer-events: none;
}
.fitmatch-gchoice:hover {
	border-color: #d1d5db;
	transform: scale(1.05);
}
.fitmatch-gchoice.is-active {
	border-color: #d946ef;
}

@media (max-width: 520px) {
	.fitmatch-grid2 {
		grid-template-columns: 1fr;
	}

	.fitmatch-modal {
		border-radius: 18px;
		padding: 0;
	}

	.fitmatch-step {
		padding: 12px 16px 18px;
	}

	.fitmatch-steps {
		padding: 14px 16px 2px;
	}

	.fitmatch-step-chip {
		font-size: 11px;
		gap: 5px;
	}

	.fitmatch-btn {
		flex: 1 1 auto;
	}
}
