/* MixCar Leads Manager - RTL Styles */

/* RTL Support for WPML */
[dir="rtl"] .mcl-lead-form-wrapper,
[dir="rtl"] .mcl-elementor-widget {
	direction: rtl;
	text-align: right;
}

[dir="rtl"] .mcl-car-info-display {
	border-left: none;
	border-right: 4px solid var(--mcl-primary-color);
	padding-left: 0;
	padding-right: 20px;
}

[dir="rtl"] .mcl-widget-title {
	border-bottom: 3px solid var(--mcl-primary-color);
	padding-bottom: 15px;
}

[dir="rtl"] .mcl-lead-form label {
	text-align: right;
}

[dir="rtl"] .mcl-calculator-results {
	direction: rtl;
}

/* RTL Support for Product Details */
[dir="rtl"] .mcl-product-financing-section {
	border-left: none;
	border-right: 4px solid #667eea;
	padding-left: 0;
	padding-right: 20px;
}

[dir="rtl"] .mcl-financing-amount {
	flex-direction: row-reverse;
}

[dir="rtl"] .mcl-financing-period {
	margin-left: 0;
	margin-right: 4px;
}

/* RTL Button Fixes - Keep centered with icon -> text order */
[dir="rtl"] .mcl-btn,
[dir="rtl"] .mcl-btn-buy-online,
[dir="rtl"] .mcl-btn-financing,
[dir="rtl"] .mcl-btn-test-drive,
[dir="rtl"] .mcl-btn-compare {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

[dir="rtl"] .mcl-btn i,
[dir="rtl"] .mcl-btn-buy-online i,
[dir="rtl"] .mcl-btn-financing i,
[dir="rtl"] .mcl-btn-test-drive i,
[dir="rtl"] .mcl-btn-compare i {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
}

[dir="rtl"] .mcl-btn span,
[dir="rtl"] .mcl-btn-buy-online span,
[dir="rtl"] .mcl-btn-financing span,
[dir="rtl"] .mcl-btn-test-drive span,
[dir="rtl"] .mcl-btn-compare span {
	order: 2 !important;
}

[dir="rtl"] .mcl-btn-icon {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
}

/* Specific fix for compare button - centered */
[dir="rtl"] a.mcl-btn.mcl-btn-compare.add-to-compare {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

[dir="rtl"] a.mcl-btn.mcl-btn-compare.add-to-compare i.fas {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
	color: #fff !important;
}

[dir="rtl"] a.mcl-btn.mcl-btn-compare.add-to-compare span {
	order: 2 !important;
	color: #fff !important;
}

/* RTL for action buttons container */
[dir="rtl"] .mcl-action-buttons {
	direction: rtl;
}

/* RTL for social buttons */
[dir="rtl"] .mcl-social-buttons {
	direction: rtl;
}

/* RTL for phone input */
[dir="rtl"] .mcl-phone-input-group {
	flex-direction: row-reverse;
}

[dir="rtl"] .mcl-phone-prefix {
	border-right: 2px solid var(--mcl-border-color);
	border-left: none;
	border-radius: 0 8px 8px 0;
}

[dir="rtl"] .mcl-phone-input-group .mcl-form-control {
	border-radius: 8px 0 0 8px;
}

/* RTL for spec items */
[dir="rtl"] .mcl-spec-item {
	flex-direction: row-reverse;
}

[dir="rtl"] .mcl-spec-value {
	text-align: left;
}

/* RTL for price display */
[dir="rtl"] .mcl-price-display {
	flex-direction: row-reverse;
}

[dir="rtl"] .mcl-price-disclaimer {
	border-left: none;
	border-right: 4px solid #ffc107;
}

/* RTL for contact number */
[dir="rtl"] .mcl-contact-number {
	flex-direction: row-reverse;
}

/* Body RTL Support - Keep centered with icon -> text order */
body.rtl .mcl-btn,
body.rtl .mcl-btn-buy-online,
body.rtl .mcl-btn-financing,
body.rtl .mcl-btn-test-drive,
body.rtl .mcl-btn-compare {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

body.rtl .mcl-btn i,
body.rtl .mcl-btn-buy-online i,
body.rtl .mcl-btn-financing i,
body.rtl .mcl-btn-test-drive i,
body.rtl .mcl-btn-compare i {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
}

body.rtl .mcl-btn span,
body.rtl .mcl-btn-buy-online span,
body.rtl .mcl-btn-financing span,
body.rtl .mcl-btn-test-drive span,
body.rtl .mcl-btn-compare span {
	order: 2 !important;
}

body.rtl .mcl-btn-icon {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
}

/* Specific fix for compare button with body.rtl - centered */
body.rtl a.mcl-btn.mcl-btn-compare.add-to-compare {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

body.rtl a.mcl-btn.mcl-btn-compare.add-to-compare i.fas {
	order: 1 !important;
	margin-right: 0 !important;
	margin-left: 10px !important;
	color: #fff !important;
}

body.rtl a.mcl-btn.mcl-btn-compare.add-to-compare span {
	order: 2 !important;
	color: #fff !important;
}

/* RTL for Product Details Widget */
body.rtl .mcl-product-details {
	direction: rtl;
	text-align: right;
}

body.rtl .mcl-product-financing-section {
	border-left: none;
	border-right: 4px solid #667eea;
}

body.rtl .mcl-financing-amount {
	flex-direction: row-reverse;
}

body.rtl .mcl-action-buttons {
	direction: rtl;
}

/* Responsive RTL fixes */
@media (max-width: 768px) {
	[dir="rtl"] .mcl-btn,
	[dir="rtl"] .mcl-btn-buy-online,
	[dir="rtl"] .mcl-btn-financing,
	[dir="rtl"] .mcl-btn-test-drive,
	[dir="rtl"] .mcl-btn-compare,
	body.rtl .mcl-btn,
	body.rtl .mcl-btn-buy-online,
	body.rtl .mcl-btn-financing,
	body.rtl .mcl-btn-test-drive,
	body.rtl .mcl-btn-compare {
		justify-content: flex-start !important;
		text-align: right !important;
	}
}

@media (max-width: 480px) {
	[dir="rtl"] .mcl-btn i,
	[dir="rtl"] .mcl-btn-buy-online i,
	[dir="rtl"] .mcl-btn-financing i,
	[dir="rtl"] .mcl-btn-test-drive i,
	[dir="rtl"] .mcl-btn-compare i,
	body.rtl .mcl-btn i,
	body.rtl .mcl-btn-buy-online i,
	body.rtl .mcl-btn-financing i,
	body.rtl .mcl-btn-test-drive i,
	body.rtl .mcl-btn-compare i {
		margin-left: 8px !important;
	}
}
