/* AxForm: RTL / Persian patches for Kadence + Kadence Blocks. Loaded only when the site is RTL. */

/* Persian script never uses letter tracking. */
.rtl body,
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6,
.rtl .wp-block-kadence-advancedheading,
.rtl .kt-button, .rtl .kb-button, .rtl .button {
	letter-spacing: 0 !important;
}

/* Archive read-more arrow points into the reading direction. */
.rtl a.post-more-link .kadence-svg-iconset {
	margin: 0 0.5em 0 0;
	transform: rotateY(180deg);
}

/* Kadence Blocks buttons: legacy 2.x markup (saved HTML) and 3.x markup. */
.rtl .kt-btn-wrap .kt-button:not(.kb-btn-global-inherit),
.rtl .kb-button.kb-btn-has-icon {
	flex-direction: row-reverse;
}
.rtl .kt-btn-wrap .kt-btn-has-svg-true {
	display: flex;
	align-items: center;
}

/* Info box: media side follows the RTL axis. */
.rtl .wp-block-kadence-infobox .kt-blocks-info-box-media-align-left {
	flex-direction: row-reverse;
}
.rtl .wp-block-kadence-infobox .kt-blocks-info-box-media-align-right {
	flex-direction: row;
}

/* Testimonials. */
.rtl .kt-testimonial-style-card .kt-svg-testimonial-global-icon-wrap {
	float: right;
	margin: 0 0 0 10px;
}
.rtl .kt-testimonial-style-inlineimage .kt-testimonial-text-wrap {
	text-align: right;
}
.rtl .kt-testimonial-style-inlineimage .kt-testimonial-media-wrap {
	float: right;
}
.rtl .kt-testimonial-style-inlineimage .kt-testimonial-text-wrap:after {
	right: 20px;
	left: auto;
}
.rtl .kt-testimonial-style-inlineimage .kt-testimonial-meta-wrap {
	padding-right: 60px;
	padding-left: 0;
}
.rtl .kt-testimonial-media-inner-wrap {
	margin: 0 15px 0 0;
}
.rtl .kt-testimonial-halign-right .kt-testimonial-media-inner-wrap {
	margin: 0 0 0 15px;
}

/* Forms (legacy kadence/form block). */
.rtl .kb-form .required {
	margin-left: 0;
	margin-right: 5px;
}
.rtl .kb-form .kadence-blocks-form-field .kb-checkbox-style,
.rtl .kb-form .kadence-blocks-form-field .kb-radio-style {
	margin: 3px 0 3px 5px;
}
.rtl .kb-form-error-msg {
	text-align: right;
}

/* Count-up / countdown groups read right-to-left. */
.rtl .kb-countdown-timer {
	flex-direction: row-reverse;
}
