/* Bandeau : pas de tarif secondaire et aucun affichage sans article. */
.rr-shipping-announcement small {
	display: none !important;
}

body.rrcf-cart-empty .rr-shipping-announcement {
	display: none !important;
}

/* Le paiement par carte reste indisponible tant que les CGV ne sont pas validées. */
#place_order:disabled {
	opacity: .56 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

.rrcf-terms-hint {
	margin: 0 0 12px;
	color: #a51f52;
	font-size: 14px;
	font-weight: 800;
}

/* Sélection du relais sur la page Livraison. */
.rrcf-shipping-relay {
	margin: 22px 0 0;
}

body.page-id-479 .cart_totals .wc-proceed-to-checkout {
	display: none !important;
}

.rrcf-shipping-continue {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin-top: 16px !important;
	border-radius: 16px !important;
	text-align: center;
}

.rrcf-shipping-continue[aria-disabled="true"] {
	background: #8e3656 !important;
	box-shadow: none !important;
}

.rrcf-shipping-relay > input[type="hidden"] {
	display: none !important;
}

.rrcf-shipping-relay .rr-chronopost-relay-panel {
	margin: 0;
	padding: 24px;
	border: 1px solid rgba(93, 20, 46, .14);
	border-radius: 22px;
	background:
		radial-gradient(circle at 100% 0, rgba(247, 178, 197, .34), transparent 36%),
		linear-gradient(145deg, #fffafd 0%, #fff 68%);
	box-shadow: 0 18px 45px rgba(93, 20, 46, .08);
}

.rrcf-shipping-relay .rr-chronopost-relay-panel[aria-hidden="true"] {
	display: none;
}

.rrcf-shipping-relay .eyebrow,
.rrcf-delivery-recap__eyebrow {
	margin: 0 0 6px;
	color: #a51f52;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rrcf-shipping-relay h3 {
	margin: 0 0 8px;
	color: #38111f;
	font-size: clamp(21px, 2vw, 28px);
	line-height: 1.15;
}

.rrcf-relay-intro {
	max-width: 650px;
	margin: 0 0 18px;
	color: #684753;
}

.rrcf-shipping-relay .chronopost-button--pickup {
	width: 100%;
	min-height: 52px;
	border-radius: 14px !important;
	font-weight: 800 !important;
}

.rrcf-shipping-relay .rr-chronopost-relay-panel__status {
	margin: 14px 0 0;
	color: #684753;
	font-size: 14px;
}

.rrcf-shipping-relay .rr-chronopost-relay-panel.has-error {
	border-color: #c52d58;
	box-shadow: 0 0 0 4px rgba(197, 45, 88, .08), 0 18px 45px rgba(93, 20, 46, .08);
}

.rrcf-shipping-relay .rr-chronopost-relay-panel.has-error .rr-chronopost-relay-panel__status {
	color: #a51f52;
	font-weight: 800;
}

.rrcf-shipping-relay .rr-relay-list {
	margin-top: 14px;
}

.rrcf-shipping-relay .rr-chronopost-relay-panel__picker {
	max-height: 430px;
	overflow: auto;
	padding-right: 5px;
	scrollbar-color: #d6809e #faedf2;
}

.rrcf-shipping-relay .rr-relay-option {
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rrcf-shipping-relay .rr-relay-option:hover {
	transform: translateY(-1px);
}

.rrcf-shipping-relay .rr-relay-option:has(input:checked) {
	border-color: #b62558;
	box-shadow: 0 0 0 3px rgba(182, 37, 88, .1);
}

/* Paiement : le choix est terminé, on ne garde qu'un récapitulatif. */
body.page-id-10 .rr-chronopost-relay-panel,
body.page-id-10 .woocommerce-checkout-review-order-table tr.shipping {
	display: none !important;
}

.rrcf-delivery-recap {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	margin: 0 0 22px;
	padding: 18px;
	border: 1px solid rgba(93, 20, 46, .13);
	border-radius: 18px;
	background: #fffafd;
}

.rrcf-delivery-recap.is-missing {
	border-color: #c52d58;
	background: #fff6f8;
}

.rrcf-delivery-recap__icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: #5d142e;
	color: #fff;
	font-weight: 900;
}

.rrcf-delivery-recap.is-missing .rrcf-delivery-recap__icon {
	background: #c52d58;
}

.rrcf-delivery-recap__body h3 {
	margin: 0 0 4px;
	color: #38111f;
	font-size: 18px;
}

.rrcf-delivery-recap__body p {
	margin: 0;
	color: #684753;
	font-size: 14px;
	line-height: 1.45;
}

.rrcf-delivery-recap__warning {
	color: #a51f52 !important;
	font-weight: 800;
}

.rrcf-delivery-recap__edit {
	padding: 9px 12px;
	border-radius: 999px;
	background: #f6e5eb;
	color: #731c3c;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

@media (max-width: 700px) {
	.rrcf-shipping-relay .rr-chronopost-relay-panel {
		padding: 18px 15px;
		border-radius: 18px;
	}

	.rrcf-shipping-relay .rr-chronopost-relay-panel__picker {
		max-height: 360px;
	}

	.rrcf-delivery-recap {
		grid-template-columns: 38px minmax(0, 1fr);
		padding: 15px;
	}

	.rrcf-delivery-recap__icon {
		width: 38px;
		height: 38px;
	}

	.rrcf-delivery-recap__edit {
		grid-column: 2;
		justify-self: start;
	}
}
