/* Case anti-robot (anti-robots.php) et avis avant le bouton Commander. Couleurs du thème, sans bleu. */
.anti-robot {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.875rem;
	margin: 0.25rem 0 1rem;
	padding: 0.6875rem 1rem;
	border: 1px solid #3A3B40;
	border-radius: 6px;
	background: linear-gradient(180deg, #1C1D20, #151618);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.anti-robot__libelle {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	cursor: pointer;
	color: #F2EFE8;
}

.anti-robot__case {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0;
	accent-color: #E6B10C;
	cursor: pointer;
}

.anti-robot__etat {
	font-size: 0.8125rem;
	color: #B9B4A8;
}

.anti-robot[data-etat="en-cours"] .anti-robot__etat::before {
	content: "";
	display: inline-block;
	inline-size: 0.75rem;
	block-size: 0.75rem;
	margin-inline-end: 0.375rem;
	border: 2px solid rgb(230 177 12 / 0.3);
	border-top-color: #E6B10C;
	border-radius: 50%;
	vertical-align: -0.125rem;
	animation: anti-robot-tour 0.8s linear infinite;
}

.anti-robot[data-etat="ok"] {
	border-color: rgb(230 177 12 / 0.45);
}

.anti-robot[data-etat="ok"] .anti-robot__etat {
	color: #E6B10C;
}

.anti-robot[data-etat="ok"] .anti-robot__etat::before {
	content: "\2713\00a0";
}

.anti-robot[data-etat="echec"] .anti-robot__etat {
	color: #E8A27A;
}

@keyframes anti-robot-tour {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.anti-robot[data-etat="en-cours"] .anti-robot__etat::before {
		animation-duration: 2.4s;
	}
}

/* Page de commande : avis de délai et case, au-dessus du bouton Commander */
.avant-commande {
	margin: 1.25rem 0 0.25rem;
}

.avant-commande__delai {
	margin: 0 0 1rem;
	padding: 0.875rem 1rem 0.875rem 1.125rem;
	border-inline-start: 2px solid #D9C38A;
	border-radius: 0 6px 6px 0;
	background: rgb(217 195 138 / 0.07);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #E9E4D8;
}

.avant-commande__virement {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: #B9B4A8;
}

.avant-commande .anti-robot {
	margin-bottom: 0.5rem;
}
