/**
 * masterE Group Buying — Frontend RTL Overrides
 *
 * Applied automatically by WordPress when the site locale is RTL (e.g. he_IL).
 * Mirrors all directional properties from mgb-frontend.css.
 *
 * WordPress loads this file when wp_style_add_data( 'mgb-frontend', 'rtl', 'replace' )
 * is set in MGB_Elementor_Loader::enqueue_frontend_assets().
 *
 * @package MasterE_Group_Buying
 */

/* Dropdown arrow: flip position for RTL */
.mgb-groups-dropdown {
	background-position: left 0.75em center;
	padding-inline-start: 2em;
	padding-inline-end: 0.75em;
}

/* Progress labels: flex direction already handles RTL via logical properties */
.mgb-progress-labels {
	flex-direction: row-reverse;
}

/* Deadline label margin */
.mgb-deadline-label {
	margin-inline-start: 0;
	margin-inline-end: 0.3em;
}

/* Form elements inherit RTL from the document direction,
   but explicitly set text-align to start for safety */
.mgb-input,
.mgb-engf-input,
.mgb-btn-submit,
.mgb-engf-submit,
.mgb-form-field label,
.mgb-engf-label {
	text-align: right;
}

/* Open group button wrap */
.mgb-open-group-wrap {
	direction: rtl;
}

/* Enrollment Group Name widget wrap */
.mgb-enrollment-group-name-widget {
	direction: rtl;
}

/* Groups list widget: ensure form elements align correctly */
.mgb-groups-list .mgb-add-to-cart-btn {
	text-align: right;
}

/* Guest and empty-state notices */
.mgb-empty-state,
.mgb-guest-notice,
.mgb-form-messages {
	text-align: right;
}

/* Max groups notice below the open-group button */
.mgb-max-groups-notice {
	text-align: right;
}
