/* ChloroVit checkout fields polish. */
.woocommerce-checkout .chv-hidden-last-name,
.woocommerce-checkout .chv-hidden-last-name input,
.woocommerce-checkout .chv-hidden-oman-postcode {
	display: none !important;
}

.woocommerce-checkout .chv-half-field {
	width: 48.5% !important;
	clear: none !important;
}

.woocommerce-checkout .chv-half-field.form-row-first {
	float: left !important;
}

.woocommerce-checkout .chv-half-field.form-row-last {
	float: right !important;
}

.woocommerce-checkout .chv-full-name-field {
	clear: none !important;
}

.woocommerce-checkout .chv-city-select-field select,
.woocommerce-checkout #billing_city,
.woocommerce-checkout #shipping_city {
	width: 100% !important;
}

.woocommerce-checkout .chv-city-select-field .select2-container {
	width: 100% !important;
}

/* Final checkout layout/order cleanup */
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .shipping_address,
.woocommerce-checkout #order_review .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-shipping-fields #ship-to-different-address {
	display: none !important;
}

.woocommerce-checkout .chv-hidden-last-name,
.woocommerce-checkout .chv-hidden-last-name input,
.woocommerce-checkout .chv-hidden-oman-postcode,
.woocommerce-checkout .chv-hidden-oman-state,
.woocommerce-checkout .chv-hidden-non-oman-state {
	display: none !important;
}

.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #shipping_address_1_field {
	width: 100% !important;
}


/* First four checkout fields: two per row on desktop/tablet. */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_country_field {
	width: 48.5% !important;
	clear: none !important;
}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_email_field {
	float: left !important;
}

.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_country_field {
	float: right !important;
}

.rtl.woocommerce-checkout #billing_first_name_field,
.rtl.woocommerce-checkout #billing_email_field,
body.rtl.woocommerce-checkout #billing_first_name_field,
body.rtl.woocommerce-checkout #billing_email_field {
	float: right !important;
}

.rtl.woocommerce-checkout #billing_phone_field,
.rtl.woocommerce-checkout #billing_country_field,
body.rtl.woocommerce-checkout #billing_phone_field,
body.rtl.woocommerce-checkout #billing_country_field {
	float: left !important;
}

.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_address_1_field {
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

@media (max-width: 767px) {
	.woocommerce-checkout #billing_first_name_field,
	.woocommerce-checkout #billing_phone_field,
	.woocommerce-checkout #billing_email_field,
	.woocommerce-checkout #billing_country_field,
	.woocommerce-checkout .chv-half-field {
		width: 100% !important;
		float: none !important;
		clear: both !important;
	}
}

/* =========================================================
   FINAL CHECKOUT GRID 2026-06-02
   الاسم + الجوال + البريد في سطر واحد
   الدولة + المدينة في سطر واحد
   Gap ثابت 20px والحقول تملأ السطر.
   ========================================================= */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	column-gap: 20px !important;
	row-gap: 14px !important;
	align-items: flex-start !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::before,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after {
	display: none !important;
	content: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
	float: none !important;
	clear: none !important;
	margin: 0 0 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field {
	width: calc((100% - 40px) / 3) !important;
	flex: 0 0 calc((100% - 40px) / 3) !important;
	max-width: calc((100% - 40px) / 3) !important;
	order: 10 !important;
}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_city_field {
	width: calc((100% - 20px) / 2) !important;
	flex: 0 0 calc((100% - 20px) / 2) !important;
	max-width: calc((100% - 20px) / 2) !important;
	order: 20 !important;
}

.woocommerce-checkout #billing_state_field {
	width: 100% !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
	order: 25 !important;
}

.woocommerce-checkout #billing_address_1_field {
	width: 100% !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
	order: 30 !important;
}

.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_last_name_field {
	display: none !important;
}

.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
.woocommerce-checkout #order_comments_field {
	margin-top: 20px !important;
	padding-top: 0 !important;
}

.woocommerce-checkout #order_comments_field {
	margin-bottom: 0 !important;
}

.woocommerce-checkout #order_comments_field textarea {
	min-height: 96px !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container {
	width: 100% !important;
}

@media (max-width: 900px) {
	.woocommerce-checkout #billing_first_name_field,
	.woocommerce-checkout #billing_phone_field,
	.woocommerce-checkout #billing_email_field,
	.woocommerce-checkout #billing_country_field,
	.woocommerce-checkout #billing_city_field {
		width: 100% !important;
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}
