/* Withdrawal page (template-retraction.php) and the related "Mes commandes"
   card (woocommerce/myaccount/view-order.php). Depends on contact.css for
   .contact-page / .contact-banner / .contact-form* / .contact-consent* and on
   my-account.css for .myaccount-card / .myaccount-btn — this file only adds
   what neither already covers. Mobile-first, 900px breakpoint like the rest
   of the site. */

/* ---- item checklist (template-parts/retraction/form.php) ---- */
.retraction-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.retraction-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1.5px solid #ddcfab;
	border-radius: 12px;
	padding: 10px 14px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.retraction-item:has(input:checked) {
	border-color: var(--color-teal);
	background: #3fa79910;
}
.retraction-item input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var(--color-teal);
}
.retraction-item__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3ece0;
}
.retraction-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.retraction-item__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.retraction-item__name {
	font: 600 13.5px var(--font-sans);
	color: var(--color-ink);
}
.retraction-item__meta {
	font: 12px var(--font-sans);
	color: var(--color-faint);
}

/* ---- notice cards (already-requested / deadline-passed / no-order) ---- */
.retraction-notice {
	gap: 12px;
}
.retraction-notice p {
	font: 13.5px var(--font-sans);
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0;
}
.retraction-notice__alt {
	font-size: 12.5px !important;
	color: var(--color-faint) !important;
}
.retraction-notice__alt a {
	color: var(--color-teal);
	text-decoration: underline;
}

/* ---- "Mes commandes" withdrawal card states ---- */
.myaccount-order__withdrawal p {
	font: 13.5px var(--font-sans);
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0 0 12px;
}
.myaccount-order__withdrawal--sent p,
.myaccount-order__withdrawal--closed p {
	margin: 0;
}
.myaccount-order__withdrawal--sent {
	background: #3fa79917;
	border-color: #3fa79944;
}
.myaccount-order__withdrawal--closed {
	background: #f3ece0;
}

@media (min-width: 900px) {
	.retraction-item {
		padding: 12px 16px;
	}
	.retraction-item__thumb {
		width: 52px;
		height: 52px;
	}
}
