/**
 * Checkout shipping methods — force overrides after WooCommerce.
 */

body.woocommerce-checkout .checkout-summary__totals tr.woocommerce-shipping-totals,
body.woocommerce-checkout .checkout-summary__totals tr.shipping {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 6px !important;
}

body.woocommerce-checkout .checkout-summary__totals tr.woocommerce-shipping-totals th,
body.woocommerce-checkout .checkout-summary__totals tr.woocommerce-shipping-totals td,
body.woocommerce-checkout .checkout-summary__totals tr.shipping th,
body.woocommerce-checkout .checkout-summary__totals tr.shipping td {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	vertical-align: top !important;
}

body.woocommerce-checkout .checkout-summary__totals tr.woocommerce-shipping-totals th,
body.woocommerce-checkout .checkout-summary__totals tr.shipping th {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #2F457B !important;
	padding-bottom: 4px !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods,
body.woocommerce-checkout .checkout-summary__totals #shipping_method {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: 100% !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods > li,
body.woocommerce-checkout .checkout-summary__totals #shipping_method > li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: static !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	line-height: 1.2 !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods input[type="radio"],
body.woocommerce-checkout .checkout-summary__totals #shipping_method input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods label,
body.woocommerce-checkout .checkout-summary__totals #shipping_method label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	position: relative !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	padding: 7px 10px !important;
	margin: 0 !important;
	border: 1px solid #dcdcde !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	color: #1a1a1a !important;
	background: #fff !important;
	box-sizing: border-box !important;
	text-indent: 0 !important;
	float: none !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods label::before,
body.woocommerce-checkout .checkout-summary__totals #shipping_method label::before {
	content: '' !important;
	display: block !important;
	flex: 0 0 12px !important;
	width: 12px !important;
	height: 12px !important;
	min-width: 12px !important;
	min-height: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #dcdcde !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-sizing: border-box !important;
	position: static !important;
	transform: none !important;
	font-family: inherit !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods label:has(input:checked),
body.woocommerce-checkout .checkout-summary__totals #shipping_method label:has(input:checked),
body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods input:checked + label,
body.woocommerce-checkout .checkout-summary__totals #shipping_method input:checked + label {
	border-color: #2F457B !important;
	background: rgba(47, 69, 123, 0.06) !important;
	color: #2F457B !important;
	font-weight: 600 !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods label:has(input:checked)::before,
body.woocommerce-checkout .checkout-summary__totals #shipping_method label:has(input:checked)::before,
body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods input:checked + label::before,
body.woocommerce-checkout .checkout-summary__totals #shipping_method input:checked + label::before {
	border-color: #2F457B !important;
	background: #2F457B !important;
	box-shadow: inset 0 0 0 2px #fff !important;
}

body.woocommerce-checkout .checkout-summary__totals .woocommerce-shipping-methods label::after,
body.woocommerce-checkout .checkout-summary__totals #shipping_method label::after {
	display: none !important;
	content: none !important;
}
