/**
 * Grattoni — Spedizioni: carrello e checkout.
 */

/* ===== Carrello/checkout classico (shortcode) ===== */

ul#shipping_method,
.woocommerce-shipping-methods {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400 !important;
}

ul#shipping_method li,
.woocommerce-shipping-methods li {
	display: flex !important;
	align-items: flex-start !important;
	gap: 8px !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

ul#shipping_method li:last-child,
.woocommerce-shipping-methods li:last-child {
	margin-bottom: 0 !important;
}

ul#shipping_method li input.shipping_method,
.woocommerce-shipping-methods li input.shipping_method {
	flex: 0 0 auto;
	margin: 2px 0 0 !important;
}

ul#shipping_method label,
.woocommerce-shipping-methods label {
	display: block !important;
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
	color: #423831 !important;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.4 !important;
	text-align: right !important;
}

.g2-ship-line {
	display: flex !important;
	align-items: baseline;
	justify-content: flex-end !important;
	gap: 8px;
}

.g2-ship-price,
.g2-ship-price .woocommerce-Price-amount,
ul#shipping_method label .amount,
.woocommerce-shipping-methods label .amount {
	color: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
}

.g2-ship-meta {
	display: block !important;
	margin-top: 2px !important;
	color: #605146 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.35 !important;
	text-align: right !important;
}

.g2-ship-meta > span {
	display: block !important;
}

.g2-ship-weight {
	margin-top: 1px !important;
}

.g2-ship-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 600px) {
	ul#shipping_method label,
	.woocommerce-shipping-methods label,
	.g2-ship-price,
	.g2-ship-price .woocommerce-Price-amount,
	ul#shipping_method label .amount,
	.woocommerce-shipping-methods label .amount {
		font-size: 13px !important;
	}

	.g2-ship-meta {
		font-size: 11px !important;
		line-height: 1.3 !important;
	}
}

/* ===== Blocchi carrello/checkout (se usati) ===== */

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option {
	padding: 12px 12px 12px 42px;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__label-group {
	align-items: baseline;
	gap: 12px;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__label {
	flex: 1 1 auto;
	font-weight: 600;
	line-height: 1.35;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__secondary-label {
	flex: 0 0 auto;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__description-group {
	flex-direction: column;
	margin-top: 2px;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__description,
.wc-block-components-shipping-rates-control__package__description {
	color: #605146;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	letter-spacing: 0;
}

/* ===== Riepilogo totale (blocchi) ===== */

.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
	flex: 1 1 auto;
	padding-right: 12px;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
	flex: 0 0 auto;
	white-space: nowrap;
}
