/**
 * PD Click&Collect – carrello, cassetto laterale del carrello e checkout.
 *
 * Riga "Spedizione": etichetta sopra, opzioni sotto a tutta larghezza,
 * ognuna in un riquadro selezionabile (nome a sinistra, prezzo a destra).
 */

tr.woocommerce-shipping-totals {
	flex-wrap: wrap;
	align-items: flex-start;
}

tr.woocommerce-shipping-totals > th {
	flex: 0 0 100%;
	max-width: 100% !important;
	margin: 0 0 10px !important;
	text-align: start;
}

tr.woocommerce-shipping-totals > td {
	flex: 0 0 100%;
	max-width: 100%;
	text-align: start !important;
}

ul.woocommerce-shipping-methods li {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 10px;
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	background: #fff;
	text-align: start;
	transition: border-color .15s ease, background-color .15s ease;
}

ul.woocommerce-shipping-methods li:last-child {
	margin-bottom: 0;
}

ul.woocommerce-shipping-methods li:has(input:checked) {
	border-color: #dfb1b1;
	background: #fdf6f6;
}

ul.woocommerce-shipping-methods li input[type="radio"] {
	flex: 0 0 auto;
	margin: 4px 0 0;
	top: 0;
}

ul.woocommerce-shipping-methods li label {
	display: flex;
	min-width: 0;
	flex: 1 1 0;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	line-height: 1.4;
	cursor: pointer;
}

.pdcc-rate-name {
	min-width: 0;
	font-weight: 500;
}

.pdcc-rate-price {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 500;
}

.pdcc-rate-desc {
	flex: 0 0 100%;
	margin: 6px 0 0;
	padding-inline-start: 26px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-align: start;
	opacity: .8;
}

/* Opzione unica (nessun pallino): niente rientro. */
ul.woocommerce-shipping-methods li:has(input[type="hidden"]) .pdcc-rate-desc {
	padding-inline-start: 0;
}

/* Cassetto laterale del carrello (Minimog): riquadri più compatti. */
.popup-fly-cart ul.woocommerce-shipping-methods li {
	padding: 10px 12px;
}

.popup-fly-cart .pdcc-rate-desc {
	font-size: 12px;
}

.pdcc-rate-desc span {
	display: block;
}

.pdcc-rate-desc__address {
	position: relative;
	padding-inline-start: 18px;
	margin-bottom: 2px;
}

.pdcc-rate-desc__address::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 12px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.5 12 28 12 28s12-7.5 12-16.3C24 5.2 18.6 0 12 0zm0 16a4.3 4.3 0 1 1 0-8.6 4.3 4.3 0 0 1 0 8.6z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.5 12 28 12 28s12-7.5 12-16.3C24 5.2 18.6 0 12 0zm0 16a4.3 4.3 0 1 1 0-8.6 4.3 4.3 0 0 1 0 8.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Riquadro nella pagina di ringraziamento e in "Il mio account". */
.pdcc-pickup-box {
	margin: 0 0 25px;
	padding: 15px 20px;
	border: 1px solid #dfb1b1;
	border-radius: 5px;
	background: #f9f9f9;
}

.pdcc-pickup-box h3 {
	margin: 0 0 8px;
	font-size: 1.1em;
}

.pdcc-pickup-box p {
	margin: 0 0 6px;
}
