/* Slider (drag-to-end) captcha UI. Single-line, textbox-height, namespaced
   under .fs-captcha to avoid clashes. Width follows its container so it lines
   up with adjacent form inputs. */

.fs-captcha {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fs-captcha *,
.fs-captcha *::before,
.fs-captcha *::after {
	box-sizing: border-box;
}

.fs-captcha-track {
	position: relative;
	height: 38px; /* matches a typical text input */
	background: #f4f6f9;
	border: 1px solid #d9dee7;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s, background-color 0.2s;
}

.fs-captcha-track-fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0;
	background: #d5f4e3;
}

.fs-captcha-tip {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa4b2;
	font-size: 13px;
	pointer-events: none;
	transition: color 0.2s;
}

.fs-captcha-handle {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 5;
	width: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-right: 1px solid #c7cede;
	border-radius: 3px 0 0 3px;
	color: #6b7688;
	font-size: 16px;
	cursor: grab;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	will-change: transform;
}

.fs-captcha-handle:active {
	cursor: grabbing;
}

.fs-captcha-refresh {
	position: absolute;
	top: 50%;
	right: 8px;
	z-index: 6;
	width: 20px;
	height: 20px;
	line-height: 18px;
	margin-top: -10px;
	text-align: center;
	background: rgba(255, 255, 255, 0.9);
	color: #778;
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
}

.fs-captcha-refresh:hover {
	background: #fff;
}

.fs-captcha.fs-captcha-verified .fs-captcha-track {
	border-color: #2eb469;
	background: #eafaf1;
}

.fs-captcha.fs-captcha-verified .fs-captcha-tip {
	color: #2eb469;
}

.fs-captcha.fs-captcha-verified .fs-captcha-handle {
	background: #2eb469;
	border-color: #2eb469;
	color: #fff;
	cursor: default;
}

.fs-captcha-error-msg {
	margin-top: 6px;
	font-size: 12px;
	color: #e64340;
	min-height: 16px;
}
