/*
 * V24 shared RTL overrides for Arabic (ar) and Persian (fa).
 * Load this file AFTER metal-mine-v24.css.
 * The page template should also declare dir="rtl" and the correct lang value.
 */

/* Before + after content direction and alignment. */
.p-about-thtee:has(> #metal-mine-top-cta),
.p-about-thtee > .metal-mine-before-item,
#metal-mine-after {
  direction: rtl;
  text-align: right;
}

.p-about-thtee:has(> #metal-mine-top-cta) > p,
.p-about-thtee > .metal-mine-before-item p,
#metal-mine-after p {
  text-align: right;
}

.p-about-thtee > h2#metal-mine-series-comparison,
#metal-mine-after .metal-mine-section-title {
  letter-spacing: normal;
}

/* CTA: accent edge, text flow and arrow direction. */
:is(.p-about-thtee > .cta-mb.metal-mine-before-item, #metal-mine-after .cta-mb) {
  border-left: 1px solid var(--metal-line);
  border-right: 4px solid var(--metal-accent);
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) a.main-btn-two.metal-mine-quote-btn {
  display: inline-flex;
  flex-direction: row;
  direction: rtl;
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) a.main-btn-two.metal-mine-quote-btn::after {
  display: none;
  content: none;
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) .metal-mine-quote-btn .text-btn::before {
  right: auto;
  left: 0;
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) .metal-mine-quote-btn .text-btn {
  float: none;
  flex: 1 1 auto;
  text-align: center;
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) .metal-mine-quote-btn .arrow-btn {
  float: none;
  flex: 0 0 50px;
}

:is(.p-about-thtee > .metal-mine-before-item, #metal-mine-after) .metal-mine-quote-btn svg {
  transform: rotate(180deg);
}

/* Series table: RTL columns, but keep models, values and units LTR. */
.p-about-thtee #metal-mine-series-table table.metal-mine-table {
  direction: rtl;
}

.p-about-thtee #metal-mine-series-table table.metal-mine-table :is(th, td) {
  text-align: right;
}

.p-about-thtee #metal-mine-series-table table.metal-mine-table tbody tr:nth-child(-n+2) > td,
.p-about-thtee #metal-mine-series-table table.metal-mine-table tbody tr:nth-child(3) > td:nth-child(2) {
  direction: ltr;
  unicode-bidi: isolate;
}

.p-about-thtee #metal-mine-series-table table.metal-mine-table .metal-mine-unit,
.p-about-thtee #metal-mine-series-table table.metal-mine-table .metal-mine-power-end,
.p-about-thtee #metal-mine-series-table table.metal-mine-table thead a {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Project parameters: labels RTL, model/numeric strings LTR. */
#metal-mine-after #metal-mine-installation-projects .mf-field-case-card__specs dt {
  direction: rtl;
  text-align: right;
}

#metal-mine-after #metal-mine-installation-projects .mf-field-case-card__specs dd {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

/* Selection lists and email address. */
#metal-mine-after #metal-mine-fan-selection .metal-mine-topic ul {
  padding-left: 0;
  padding-right: 20px;
}

#metal-mine-after #metal-mine-fan-selection .cta-mb__desc a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
