/**
 * Retrait Marchés : bloc « Retrait au marché » du checkout
 * et bloc « Votre retrait » (page de remerciement, Mon compte).
 *
 * Les couleurs suivent le thème (currentColor) : rien à changer si le
 * thème Elementor évolue.
 */

/* ----- Checkout ----- */

.rm-pickup {
	margin: 0 0 2em;
}

.rm-pickup__intro {
	margin: 0 0 1em;
}

/* Panier avec produits des fêtes. */
.rm-pickup__notice {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-left: 4px solid currentColor;
	background: rgba(0, 0, 0, 0.04);
}

.woocommerce form .rm-pickup .rm-pickup__markets {
	border: 0;
	margin: 0 0 1em;
	padding: 0;
	min-width: 0;
}

.rm-pickup__markets legend {
	font-weight: 600;
	margin: 0 0 0.5em;
	padding: 0;
}

/* Chaque marché est une « carte » cliquable, assez grande pour un doigt. */
.woocommerce form .rm-pickup label.rm-market {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0 0 0.6em;
	padding: 0.85em 1em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	line-height: 1.4;
	cursor: pointer;
}

.woocommerce form .rm-pickup label.rm-market:has(input:checked) {
	border-color: currentColor;
	box-shadow: 0 0 0 1px currentColor;
}

.woocommerce form .rm-pickup .rm-market input {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	margin: 0.1em 0 0;
}

.rm-market__text {
	display: flex;
	flex-direction: column;
}

.rm-market__name {
	font-weight: 600;
}

.rm-market__details {
	font-size: 0.9em;
	opacity: 0.8;
}

/* Un morceau (« 8h-12h ») n'est jamais coupé en fin de ligne. */
.rm-market__detail {
	white-space: nowrap;
}

.woocommerce form .rm-pickup .rm-pickup__date select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	font-size: 16px; /* 16px minimum : évite le zoom automatique sur iPhone. */
}

/* ----- Page de remerciement et Mon compte ----- */

.rm-order-pickup {
	margin: 0 0 2em;
	padding: 1em 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
}

.rm-order-pickup__title {
	margin-top: 0;
	font-size: 1.25em;
}

.rm-order-pickup p:last-child {
	margin-bottom: 0;
}
