.mcaptcha-widget {
	box-sizing: border-box;
	width: 304px;
	max-width: 100%;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	background: #f9f9f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	color: #222;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.mcaptcha-widget *,
.mcaptcha-widget *::before,
.mcaptcha-widget *::after {
	box-sizing: border-box;
}

.mcaptcha-widget__inner {
	padding: 12px 14px;
}

.mcaptcha-widget__status {
	min-height: 1.25em;
	margin-bottom: 8px;
	font-size: 12px;
	color: #555;
}

.mcaptcha-widget__status.is-error {
	color: #b32d2e;
}

.mcaptcha-widget__status.is-success {
	color: #008a20;
}

.mcaptcha-widget__checkbox-row {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.mcaptcha-widget__checkbox {
	width: 24px;
	height: 24px;
	border: 2px solid #c1c1c1;
	border-radius: 2px;
	background: #fff;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.mcaptcha-widget__checkbox.is-checked {
	border-color: #1a73e8;
	background: #1a73e8;
	color: #fff;
}

.mcaptcha-widget__checkbox.is-checked::after {
	content: "✓";
	font-size: 16px;
	line-height: 1;
}

.mcaptcha-widget__label {
	font-size: 14px;
}

.mcaptcha-widget__challenge {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
}

.mcaptcha-widget.is-expanded .mcaptcha-widget__challenge,
.mcaptcha-widget[data-difficulty="medium"] .mcaptcha-widget__challenge,
.mcaptcha-widget[data-difficulty="hard"] .mcaptcha-widget__challenge {
	display: block;
}

.mcaptcha-widget[data-difficulty="medium"] .mcaptcha-widget__checkbox-row,
.mcaptcha-widget[data-difficulty="hard"] .mcaptcha-widget__checkbox-row {
	display: none;
}

.mcaptcha-widget__math-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 10px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
}

.mcaptcha-widget__question {
	margin: 0 0 10px;
	font-weight: 600;
}

.mcaptcha-widget__step-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mcaptcha-widget__input-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}

.mcaptcha-widget__input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
}

.mcaptcha-widget__input:focus {
	border-color: #1a73e8;
	outline: 2px solid rgba(26, 115, 232, 0.25);
	outline-offset: 0;
}

.mcaptcha-widget__image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 8px 0;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
}

.mcaptcha-widget__hint {
	margin: 0 0 10px;
	font-size: 12px;
	color: #666;
}

.mcaptcha-widget__actions {
	display: flex;
	justify-content: flex-end;
}

.mcaptcha-widget__refresh {
	padding: 4px 8px;
	border: none;
	background: transparent;
	color: #1a73e8;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
}

.mcaptcha-widget__refresh:hover,
.mcaptcha-widget__refresh:focus {
	color: #1558b0;
}

.mcaptcha-widget__refresh:disabled {
	color: #999;
	cursor: not-allowed;
	text-decoration: none;
}

.mcaptcha-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mcaptcha-widget.is-loading {
	opacity: 0.75;
}

.mcaptcha-widget.is-verified {
	border-color: #008a20;
}

.mcaptcha-widget__hard-step {
	display: none;
}

.mcaptcha-widget__hard-step.is-active {
	display: block;
}
