/**
 * ECOTRACK Checkout Styles
 *
 * @package ECOTRACK_WooCommerce
 */

#ecotrack_wilaya_field,
#ecotrack_commune_field {
	margin-bottom: 15px;
}

#ecotrack_wilaya_field select,
#ecotrack_commune_field select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#ecotrack_service_type_field {
	margin-bottom: 20px;
	display: block !important;
	visibility: visible !important;
}

#ecotrack_service_type_field label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

#ecotrack_service_type_field .woocommerce-input-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#ecotrack_service_type_field input[type="radio"] {
	margin-right: 8px;
}

#ecotrack_service_type_field label.radio {
	display: flex;
	align-items: center;
	font-weight: normal;
	cursor: pointer;
}

#ecotrack_service_type_field label.radio:hover {
	color: #2271b1;
}

/* Ensure service type field is visible in checkout form */
.woocommerce-checkout #ecotrack_service_type_field,
.woocommerce form.checkout #ecotrack_service_type_field {
	display: block !important;
	visibility: visible !important;
}

/* Hide service type field in order review section only */
.woocommerce-checkout-review-order-table #ecotrack_service_type_field,
#order_review #ecotrack_service_type_field,
.woocommerce-checkout-review-order #ecotrack_service_type_field,
.woocommerce-checkout-review-order-table .ecotrack_service_type_field {
	display: none !important;
}

/* Hide default WooCommerce billing state field */
#billing_state_field,
#billing_state_field *,
.select2-container--default .select2-selection--single[aria-labelledby="select2-billing_state-container"],
#select2-billing_state-container {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.billing_state_field {
	display: none !important;
}

