html[lang="ar"] body {
  font-family: Cairo, Tajawal, Tahoma, Arial, sans-serif;
}

html[lang="he"] body,
html[lang="en"] body {
  font-family: Heebo, Cairo, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: start;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: start;
}

html body .language-switcher a::before,
html body .language-switcher a::after {
  content: none !important;
  background: none !important;
}

html body details.language-switcher,
html body .language-switcher {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

html body .language-switcher-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #E8D8BE;
  background: #f6f1e8;
  color: #66001f;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

html body .language-switcher-toggle::-webkit-details-marker {
  display: none;
}

html body .language-switcher-toggle .ls-icon,
html body .language-switcher-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

html body details.language-switcher:not([open]) > .language-switcher-menu {
  display: none !important;
}

html body details.language-switcher[open] > .language-switcher-menu {
  display: grid !important;
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 80;
  min-width: 198px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #E8D8BE;
  background: #f6f1e8;
  gap: 4px;
}

html body .language-switcher-menu a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px !important;
  min-width: 0 !important;
  padding: 8px 12px !important;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: normal;
  color: #31352C;
  text-decoration: none;
}

html body .language-switcher-menu a span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #66001f;
}

html body .language-switcher-menu a.active {
  background: #FBF7F0;
  box-shadow: inset 0 0 0 2px #66001f;
}

html body .language-switcher-toggle:focus-visible,
html body .language-switcher-menu a:focus-visible {
  outline: 2px solid #66001f;
  outline-offset: 2px;
}

html body .mobile-language-switcher {
  display: inline-flex !important;
  width: auto;
  margin-block-start: 12px;
}

html body .pill,
html body button.pill,
html body a.pill {
  min-height: 44px;
  width: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.i18n-field-tabs {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.i18n-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.i18n-tab-bar button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #E8D8BE;
  background: #f6f1e8;
  font-weight: 700;
  cursor: pointer;
}

.i18n-tab-bar button.active {
  background: #66001f;
  color: #fff;
  border-color: #66001f;
}

.i18n-pane {
  display: none;
  gap: 12px;
}

.i18n-pane.active {
  display: grid;
}

.aya-i18n-missing {
  columns: 2;
  gap: 12px;
}

[data-size-chip],
.size-option,
.ls-size {
  unicode-bidi: isolate;
  direction: ltr;
}

.ls-money,
[dir="ltr"].ls-money {
  unicode-bidi: isolate;
  direction: ltr;
  white-space: nowrap;
}

html body .ls-ltr,
html body .ls-phone,
html body .ls-order-id,
html body .ls-tracking,
html body a[href^="tel:"],
html body a[href^="mailto:"] {
  unicode-bidi: isolate;
  direction: ltr;
  text-align: start;
}

html body bdi.ls-ltr {
  unicode-bidi: isolate;
}

html[dir="ltr"] body .language-switcher-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

html body .i18n-original-hint {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #59633A;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .aya-i18n-missing {
    columns: 1;
  }
}

.content-original-hint {
  margin-block-start: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #59633A;
}

html[dir="ltr"] .nav-arrow-dir,
html[dir="ltr"] .chevron-dir,
html[dir="ltr"] [data-dir-arrow] {
  transform: scaleX(-1);
}

html body .language-switcher-name {
  flex: 1 1 auto;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  color: #31352C !important;
}

html body .language-switcher-meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #66001f;
}

html body table,
html body .data-table,
html body .order-card,
html body .ls-pc,
html body .merchant-card {
  text-align: start;
}

@media (max-width: 390px) {
  html body .language-switcher-menu {
    min-width: min(198px, 72vw);
  }
  html body .i18n-tab-bar button {
    flex: 1 1 auto;
  }
}