/* Carotte Captcha — styles du widget */

.carotte-captcha-widget {
	width: 100%;
	flex: 1 1 100%;
	min-width: 250px;
	max-width: 420px;
	margin: 15px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: block;
	clear: both;
}

.carotte-captcha-widget * {
	box-sizing: border-box;
}

.carotte-captcha-title {
	font-size: 14px;
	font-weight: 700;
	color: #2c2c2c;
	margin-bottom: 2px;
	line-height: 1.2;
}

.carotte-captcha-box {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff8f0;
	border: 1px solid #f2c78c;
	border-radius: 10px;
	padding: 12px 14px;
	position: relative;
	overflow: hidden;
}

.carotte-captcha-widget.is-verified .carotte-captcha-box {
	background: #f2fbf0;
	border-color: #a9d9a0;
}

.carotte-captcha-widget.is-error .carotte-captcha-box {
	background: #fdf1f1;
	border-color: #e5a6a6;
}

.carotte-captcha-icon {
	font-size: 28px;
	line-height: 1;
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

.carotte-captcha-widget.is-working .carotte-captcha-icon {
	animation: carotte-dig 0.9s ease-in-out infinite;
}

.carotte-captcha-widget.is-verified .carotte-captcha-icon {
	transform: scale(1.15) rotate(-8deg);
}

@keyframes carotte-dig {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(3px) rotate(-10deg); }
}

.carotte-captcha-body {
	flex: 1 1 auto;
	min-width: 0;
}

.carotte-captcha-label {
	font-size: 13px;
	color: #5b4636;
	margin-bottom: 6px;
}

.carotte-captcha-progress-track {
	height: 6px;
	border-radius: 4px;
	background: #f0ddc0;
	overflow: hidden;
}

.carotte-captcha-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #f2994a, #6ab04c);
	border-radius: 4px;
	transition: width 0.2s ease;
}

.carotte-captcha-start-btn {
	flex: 0 0 auto;
	background: #f2994a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.carotte-captcha-start-btn:hover {
	background: #e2822f;
}

.carotte-captcha-widget.is-working .carotte-captcha-start-btn,
.carotte-captcha-widget.is-verified .carotte-captcha-start-btn {
	display: none;
}

.carotte-captcha-footer {
	font-size: 11px;
	color: #9b8c7a;
	margin: 6px 2px 0;
}

.carotte-captcha-widget.is-verified .carotte-captcha-label {
	color: #3a7a2f;
	font-weight: 600;
}

.carotte-captcha-widget.is-error .carotte-captcha-label {
	color: #a13b3b;
}

/* Admin */
.carotte-captcha-admin .carotte-admin-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	align-items: start;
	margin-top: 16px;
}

.carotte-captcha-admin .carotte-admin-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px 20px;
}

.carotte-stats-list {
	list-style: disc;
	margin-left: 18px;
}

@media (max-width: 900px) {
	.carotte-captcha-admin .carotte-admin-grid {
		grid-template-columns: 1fr;
	}
}
