.zsm-image-check {
	--zsm-orange: #ff8500;
	--zsm-orange-dark: #e96d00;
	--zsm-ink: #10133b;
	--zsm-muted: #6f7589;
	box-sizing: border-box;
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	overflow: hidden;
	margin: 12px 0 0;
	padding: 18px 20px;
	border: 1px solid #e8e9f0;
	border-radius: 17px;
	background:
		radial-gradient(circle at 100% 0, rgba(255, 133, 0, .11) 0 54px, transparent 55px),
		linear-gradient(135deg, #fff 0%, #fff 64%, #fff9f2 100%);
	box-shadow: 0 10px 28px rgba(16, 19, 59, .07);
}

.zsm-image-check::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--zsm-orange), #ffb42b 54%, #10133b);
	content: "";
}

.zsm-image-check *,
.zsm-image-check *::before,
.zsm-image-check *::after { box-sizing: border-box; }

.zsm-image-check__visual {
	position: relative;
	display: grid;
	align-self: start;
	width: 62px;
	height: 62px;
	place-items: center;
	border-radius: 18px;
	background: linear-gradient(145deg, #171b55, var(--zsm-ink));
	color: #fff;
	box-shadow: 0 13px 27px rgba(16, 19, 59, .2);
}

.zsm-image-check__visual::after {
	position: absolute;
	inset: 6px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 13px;
	content: "";
}

.zsm-image-check__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
}

.zsm-image-check__icon svg { width: 31px; height: 31px; }

.zsm-image-check__scan-dot {
	position: absolute;
	right: -3px;
	bottom: -3px;
	z-index: 2;
	width: 19px;
	height: 19px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--zsm-orange);
	box-shadow: 0 5px 12px rgba(255, 133, 0, .35);
}

.zsm-image-check__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 280px); column-gap: 20px; align-items: center; min-width: 0; }

.zsm-image-check__topline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-bottom: 6px;
	grid-column: 1;
}

.zsm-image-check__eyebrow {
	color: var(--zsm-orange-dark);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.zsm-image-check__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border: 1px solid #dceee3;
	border-radius: 999px;
	background: #f1fbf5;
	color: #21713d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .02em;
}

.zsm-image-check h3 {
	margin: 0 0 8px !important;
	grid-column: 1;
	color: var(--zsm-ink) !important;
	font-size: clamp(19px, 1.8vw, 23px) !important;
	font-weight: 850 !important;
	line-height: 1.16 !important;
	letter-spacing: -.025em;
}

.zsm-image-check__status {
	grid-column: 1;
	max-width: 850px;
	margin: 0;
	color: var(--zsm-muted);
	font-size: 14px;
	line-height: 1.55;
}

.zsm-image-check__steps {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.zsm-image-check__step {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	color: #777d8f;
	font-size: 11px;
	font-weight: 750;
}

.zsm-image-check__step b {
	display: grid;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	place-items: center;
	border: 1px solid #e1e4ec;
	border-radius: 50%;
	background: #fff;
	color: #969bad;
	font-size: 11px;
}

.zsm-image-check__step-separator {
	width: 22px;
	height: 1px;
	background: #dfe2e9;
}

.zsm-image-check__step:first-child { color: var(--zsm-ink); }
.zsm-image-check__step:first-child b { border-color: #ffd4a3; background: #fff2e3; color: var(--zsm-orange-dark); }
.zsm-image-check.is-loading .zsm-image-check__step:nth-of-type(2) { color: var(--zsm-ink); }
.zsm-image-check.is-loading .zsm-image-check__step:nth-of-type(2) b { border-color: #bad3fb; background: #eaf2ff; color: #1769d2; }
.zsm-image-check.is-success .zsm-image-check__step:nth-of-type(3) { color: #176b37; }
.zsm-image-check.is-success .zsm-image-check__step:nth-of-type(3) b { border-color: #b9e3c7; background: #eaf9ef; color: #176b37; }

.zsm-image-check__results {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.zsm-image-result {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	min-height: 72px;
	padding: 9px;
	border: 1px solid #e4e7ef;
	border-radius: 15px;
	background: #fff;
	color: var(--zsm-ink) !important;
	text-decoration: none !important;
	box-shadow: 0 6px 17px rgba(16, 19, 59, .05);
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.zsm-image-result:hover {
	transform: translateY(-2px);
	border-color: #ffc37e;
	box-shadow: 0 11px 24px rgba(16, 19, 59, .1);
}

.zsm-image-result img { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; }
.zsm-image-result span { min-width: 0; }
.zsm-image-result strong,
.zsm-image-result small { display: block; }
.zsm-image-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.zsm-image-result small { margin-top: 3px; color: #778095; font-size: 10px; line-height: 1.3; }
.zsm-image-result b { padding: 7px 8px; border-radius: 10px; background: #fff1df; color: #a34f00; font-size: 12px; }

.zsm-image-check__footer {
	display: flex;
	grid-column: 2;
	grid-row: 1 / 4;
	align-items: flex-start;
	align-self: center;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	border-top: 0;
}

.zsm-image-check__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	width: 100%;
	padding: 11px 17px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #ff940d, var(--zsm-orange));
	color: #fff;
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(255, 133, 0, .24);
	transition: transform .16s ease, box-shadow .16s ease;
}

.zsm-image-check__button:hover { transform: translateY(-1px); box-shadow: 0 13px 27px rgba(255, 133, 0, .3); }
.zsm-image-check__button:focus-visible { outline: 3px solid rgba(255, 133, 0, .25); outline-offset: 3px; }
.zsm-image-check__button:disabled { transform: none; opacity: .72; cursor: wait; }
.zsm-image-check__button svg { width: 18px; height: 18px; }

.zsm-image-check__privacy {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	max-width: 260px;
	color: #8a91a1;
	font-size: 10px;
	line-height: 1.45;
}

.zsm-image-check__privacy svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: #2c8650; }

.zsm-image-check.is-loading::before { background: linear-gradient(90deg, #1769d2, #76aaff, #10133b); }
.zsm-image-check.is-loading .zsm-image-check__visual { background: linear-gradient(145deg, #2177dc, #1253a3); }
.zsm-image-check.is-loading .zsm-image-check__icon { animation: zsm-photo-pulse 1.15s ease-in-out infinite; }
.zsm-image-check.is-loading .zsm-image-check__scan-dot { animation: zsm-photo-dot .85s ease-in-out infinite alternate; background: #75aeff; }
.zsm-image-check.is-success::before { background: linear-gradient(90deg, #16803b, #62bb7f, #10133b); }
.zsm-image-check.is-success .zsm-image-check__visual { background: linear-gradient(145deg, #25884a, #145d31); }
.zsm-image-check.is-success .zsm-image-check__scan-dot { background: #5cc67d; }
.zsm-image-check.is-error::before { background: linear-gradient(90deg, #d1493f, #ff8b63, #10133b); }
.zsm-image-check.is-error .zsm-image-check__status { color: #a63831; }

@keyframes zsm-photo-pulse { 50% { transform: scale(.91); opacity: .72; } }
@keyframes zsm-photo-dot { to { transform: scale(.72); opacity: .7; } }

@media (max-width: 760px) {
	.zsm-image-check { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 14px; border-radius: 16px; }
	.zsm-image-check__visual { width: 48px; height: 48px; border-radius: 15px; }
	.zsm-image-check__visual::after { inset: 5px; border-radius: 12px; }
	.zsm-image-check__icon svg { width: 27px; height: 27px; }
	.zsm-image-check__scan-dot { right: -3px; bottom: -3px; width: 17px; height: 17px; border-width: 3px; }
	.zsm-image-check h3 { font-size: 20px !important; }
	.zsm-image-check__badge { display: none; }
	.zsm-image-check__main { display: block; }
	.zsm-image-check__results { grid-template-columns: 1fr; }
	.zsm-image-check__footer { align-items: stretch; margin-top: 14px; padding-top: 13px; border-top: 1px solid #eceef3; }
	.zsm-image-check__button { width: 100%; }
	.zsm-image-check__privacy { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.zsm-image-check *,
	.zsm-image-check *::before,
	.zsm-image-check *::after { animation: none !important; transition: none !important; }
}
