/* Z4EG Delivery Areas — cart, checkout and My Account address form (RTL-safe: logical properties only). */
.z4eg-da-areas-note {
	margin: 0 0 1.2em;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-inline-start: 4px solid #2e7d32;
	border-radius: 4px;
	background: rgba(46, 125, 50, 0.06);
	font-size: 0.92em;
	line-height: 1.5;
}

.z4eg-da-areas-note__title {
	font-weight: 700;
	margin-inline-end: 4px;
}

.z4eg-da-areas-note__title::after {
	content: ":";
}

.z4eg-da-msg {
	display: block;
	line-height: 1.45;
}

.z4eg-da-msg.z4eg-da-unavailable {
	color: #b42318;
	font-weight: 600;
}

.z4eg-da-free-hint {
	display: block;
	margin-top: 2px;
	color: #2e7d32;
	font-size: 0.85em;
	line-height: 1.35;
}

select.z4eg-da-city-select {
	width: 100%;
	max-width: 100%;
}

/* Delivery is inside Egypt only: a one-option country dropdown adds nothing, hide that row. */
#billing_country_field:has(select.country_to_state--single),
#shipping_country_field:has(select.country_to_state--single) {
	display: none !important;
}

/* Street / area takes the full row when building / floor / apartment follow it. */
form .form-row#billing_address_1_field:has(~ #billing_building_field),
form .form-row#shipping_address_1_field:has(~ #shipping_building_field) {
	float: none;
	clear: both;
	width: 100%;
}

/* Building / floor / apartment on one row (three equal columns). */
.woocommerce form .form-row.z4eg-da-third,
.woocommerce-page form .form-row.z4eg-da-third,
form .form-row.z4eg-da-third {
	float: left;
	float: inline-start;
	clear: none;
	width: calc((100% - 2 * 3%) / 3);
	margin-inline-end: 3%;
	box-sizing: border-box;
}

[dir="rtl"] form .form-row.z4eg-da-third {
	float: right;
	float: inline-start;
}

.woocommerce form .form-row.z4eg-da-third--1,
form .form-row.z4eg-da-third--1 {
	clear: both;
}

.woocommerce form .form-row.z4eg-da-third--3,
form .form-row.z4eg-da-third--3 {
	margin-inline-end: 0;
}

form .form-row.z4eg-da-third label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

form .form-row.z4eg-da-landmark,
form .form-row.z4eg-da-third--3 + .form-row {
	clear: both;
}

/* Typed phone numbers read left-to-right even on the Arabic site (the placeholder keeps the page direction). */
#billing_phone:not(:placeholder-shown),
#shipping_phone:not(:placeholder-shown) {
	direction: ltr;
}

[dir="rtl"] #billing_phone:placeholder-shown,
[dir="rtl"] #shipping_phone:placeholder-shown {
	direction: rtl;
	text-align: right;
}

[dir="rtl"] #billing_phone:not(:placeholder-shown),
[dir="rtl"] #shipping_phone:not(:placeholder-shown) {
	text-align: right;
}

@media (max-width: 359px) {
	.woocommerce form .form-row.z4eg-da-third,
	form .form-row.z4eg-da-third {
		float: none;
		width: 100%;
		margin-inline-end: 0;
	}
}
