/* Custom Multilingual — public styles (match dark green nav) */

.cml-lang-switcher,
.elementor-nav-menu .cml-lang-switcher {
	position: relative;
	margin-inline-start: 40px;
}

.cml-lang-switcher > a.cml-lang-toggle,
.cml-lang-submenu a,
.elementor-nav-menu .cml-lang-switcher > a.cml-lang-toggle,
.elementor-nav-menu .cml-lang-submenu a {
	color: #fff;
	font-family: "Inter-V", Inter, sans-serif;
	text-transform: none;
	letter-spacing: 0.02em;
}

.cml-lang-switcher > a.cml-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cml-lang-flag {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 18px;
}

.cml-lang-submenu a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	white-space: nowrap;
}

.cml-lang-submenu {
	min-width: 10em;
}

/* Ensure toggle works even if theme hides submenus until hover */
.cml-lang-switcher.cml-open > .sub-menu,
.cml-lang-switcher.cml-open > .cml-lang-submenu {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.cml-lang-current > a {
	opacity: 0.7;
	pointer-events: none;
}

/* Scoped RTL — do not flip full Elementor canvas / hero media */
body.cml-rtl,
body.cml-lang-he {
	direction: rtl;
	text-align: right;
}

body.cml-rtl .elementor-widget-heading .elementor-heading-title,
body.cml-rtl .elementor-widget-text-editor,
body.cml-rtl .elementor-icon-list-text,
body.cml-rtl .elementor-widget-html {
	text-align: right;
	text-indent: 0;
}

/* Scale items use a 10px number slot. Two-digit numbers overflow onto the sentence. */
body.cml-rtl .elementor-icon-list-text {
	display: flex !important;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.85em;
	direction: rtl;
	text-align: right;
}

body.cml-rtl .list-number {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 2.75em;
	margin: 0 !important;
	position: static !important;
	float: none !important;
	direction: ltr !important;
	text-align: left !important;
	white-space: nowrap;
	unicode-bidi: isolate;
}

body.cml-rtl .wpcf7,
body.cml-rtl .wpcf7 form,
body.cml-rtl .wpcf7 p,
body.cml-rtl .wpcf7 label,
body.cml-rtl .wpcf7 input[type="text"],
body.cml-rtl .wpcf7 input[type="email"],
body.cml-rtl .wpcf7 textarea,
body.cml-rtl .wpcf7 .wpcf7-submit {
	direction: rtl !important;
	text-align: right !important;
}

body.cml-rtl .wpcf7 input[type="email"],
body.cml-rtl .wpcf7 .g-recaptcha,
body.cml-rtl .wpcf7 .wpcf7-recaptcha {
	direction: ltr !important;
}

/* Elementor Pro forms: labels, fields, and the button start on the right. */
body.cml-rtl .elementor-widget-form,
body.cml-rtl .elementor-form,
body.cml-rtl .elementor-form-fields-wrapper,
body.cml-rtl .elementor-field-group,
body.cml-rtl .elementor-field-label,
body.cml-rtl .elementor-field-textual,
body.cml-rtl .elementor-field-subgroup,
body.cml-rtl .elementor-field-option,
body.cml-rtl .elementor-message,
body.cml-rtl .elementor-form .elementor-button {
	direction: rtl !important;
	text-align: right !important;
}

body.cml-rtl .elementor-field-type-submit,
body.cml-rtl .e-form__buttons {
	display: flex;
	justify-content: flex-start;
}

body.cml-rtl .elementor-field-subgroup .elementor-field-option {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.4em;
}

/* Keep addresses, phones, and numbers readable while the field stays on the right. */
body.cml-rtl .elementor-field-textual[type="email"],
body.cml-rtl .elementor-field-textual[type="tel"],
body.cml-rtl .elementor-field-textual[type="url"],
body.cml-rtl .elementor-field-textual[type="number"],
body.cml-rtl .elementor-field-textual[type="date"] {
	direction: ltr;
	text-align: right;
}

body.cml-rtl .elementor-select-wrapper::before {
	right: auto;
	left: 10px;
}

body.cml-rtl .elementor-select-wrapper select {
	background-position: left 0.75em center;
	padding-right: 0.75em;
	padding-left: 2em;
}

body.cml-rtl .elementor-nav-menu,
body.cml-rtl .elementor-nav-menu--main {
	direction: rtl;
}

body.cml-rtl .cml-lang-switcher .sub-menu,
body.cml-rtl .cml-lang-submenu {
	text-align: right;
}

/* Phone/tablet: language control sits just left of the burger.
   The burger stays the previous sibling of the dropdown, which is how Elementor opens and closes it. */
.cml-lang-switcher-bar {
	display: none;
	align-items: center;
	position: absolute;
	z-index: 30;
	margin: 0;
	direction: ltr;
}

.cml-lang-switcher-bar > .cml-lang-submenu,
.cml-lang-switcher-bar .cml-lang-submenu li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cml-lang-switcher-bar > .cml-lang-submenu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	z-index: 100001;
	min-width: 11em;
	background: rgba(0, 75, 0, 0.85);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cml-lang-switcher-bar .cml-lang-submenu li {
	position: relative;
}

.cml-lang-switcher-bar .cml-lang-submenu li::marker {
	content: none;
}

.cml-lang-switcher-bar .cml-lang-submenu a {
	padding: 8px 18px;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	line-height: 37px;
}

.cml-lang-switcher-bar .cml-lang-submenu a:hover {
	background: rgba(0, 75, 0, 0.85);
}

.cml-lang-switcher-bar .cml-lang-submenu li::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #96b400;
	transition: width 0.3s ease;
	transform: translateX(-50%);
}

.cml-lang-switcher-bar .cml-lang-submenu li:hover::after {
	width: 90%;
}

.cml-lang-switcher-bar.cml-open > .cml-lang-submenu {
	display: block !important;
}

@media (max-width: 1024px) {
	.elementor-nav-menu--dropdown-tablet .cml-lang-switcher-bar {
		display: flex;
	}
}

@media (max-width: 767px) {
	.elementor-nav-menu--dropdown-mobile .cml-lang-switcher-bar {
		display: flex;
	}
}

/* Keep chart/HTML widget LTR for numeric axes where needed */
body.cml-rtl .chart-container-2,
body.cml-rtl .bar-chart-container,
body.cml-rtl .chart-container {
	direction: ltr;
	text-align: left;
}
