/**
 * Frontend RTL styles — YITH WooCommerce Badge Management
 * Loaded only when is_rtl() is true.
 *
 * Important: CSS / Advanced badges are multi-part geometries (flex + absolute
 * left/right). Forcing direction:rtl on the badge itself flips those pieces.
 * Keep badge chrome LTR; only text content is RTL.
 */

.container-image-and-badge {
	direction: rtl;
	unicode-bidi: isolate;
}

/* Text badges: RTL text is fine */
.yith-wcbm-badge.yith-wcbm-badge-text {
	direction: rtl;
	unicode-bidi: isolate;
	text-align: center;
}

/* Multi-part CSS & advanced shapes must stay LTR */
.yith-wcbm-badge.yith-wcbm-badge-css,
.yith-wcbm-badge.yith-wcbm-badge-advanced,
.yith-wcbm-badge.yith-wcbm-badge-image {
	direction: ltr !important;
	unicode-bidi: isolate;
}

.yith-wcbm-badge .yith-wcbm-badge-text,
.yith-wcbm-badge .yith-wcbm-css-text,
.yith-wcbm-badge .yith-wcbm-css-text p,
.yith-wcbm-badge .yith-wcbm-badge-text p,
.yith-wcbm-badge .yith-wcbm-badge-text-advanced {
	direction: rtl;
	unicode-bidi: isolate;
	text-align: center;
}
