/**
 * MRWP i18n — locale-aware direction + LTR islands.
 * Document direction comes from html[dir] via language_attributes().
 *
 * @package Recipefy
 */

/* Hebrew / RTL text fields inherit document direction */
.rfy-add-recipe-form__input:not(.rfy-input-ltr),
.rfy-add-recipe-form__textarea,
.rfy-wc-form input[type="text"]:not(.rfy-input-ltr),
.rfy-wc-form textarea,
.woocommerce-account .woocommerce form .input-text:not(.rfy-input-ltr),
.woocommerce-account .woocommerce form textarea,
.rfy-woo-login-card .input-text:not(.rfy-input-ltr) {
	direction: inherit;
	text-align: start;
}

/* LTR fields — email, URL, tel, numbers, mixed-script handles */
.rfy-input-ltr,
.rfy-ltr,
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"] {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}

/* Select chevron on inline-end (left in RTL, right in LTR) */
.woocommerce-account .woocommerce form select,
.rfy-wc-form select,
select.rfy-add-recipe-form__input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7B6A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: inline-end 12px center;
	padding-inline-end: 36px;
}

/* Fluent Forms email fields in dark footer / contact */
.rfy-footer-dark__form input[type="email"],
.rfy-footer-dark__form .ff-el-form-control[type="email"],
.rfy-contact-dual__form input[type="email"],
.rfy-contact-dual__form .ff-el-form-control[type="email"] {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}
