/* Ethio Mart — language switcher */
.et_mart_lang_switcher {
  font-family: "TikTok Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.et_mart_lang_switcher_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.et_mart_lang_switcher_item {
  margin: 0;
  padding: 0;
}

.et_mart_lang_switcher_link {
  display: inline-block;
  color: #5c4a3f;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.et_mart_lang_switcher_link:hover,
.et_mart_lang_switcher_link:focus-visible {
  color: #c5521b;
  background: rgba(197, 82, 27, 0.08);
  outline: none;
}

.et_mart_lang_switcher_link.is-active {
  color: #fff;
  background: #c5521b;
  font-weight: 600;
  cursor: default;
}

.et_mart_lang_switcher--pills .et_mart_lang_switcher_list {
  gap: 6px;
}

.et_mart_lang_switcher--pills .et_mart_lang_switcher_link {
  border: 1px solid rgba(92, 74, 63, 0.2);
}

.et_mart_lang_switcher--pills .et_mart_lang_switcher_link.is-active {
  border-color: #c5521b;
}

.et_mart_lang_switcher--inline .et_mart_lang_switcher_item:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(92, 74, 63, 0.45);
  pointer-events: none;
}

.et-mart-rtl .et_mart_lang_switcher--inline .et_mart_lang_switcher_item:not(:last-child)::after {
  margin-left: 0;
  margin-right: 8px;
}

/* Global site-wide switcher bar */
.et_mart_i18n_global_switcher {
  position: relative;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 8px 16px;
  background: #fff8f3;
  border-bottom: 1px solid rgba(197, 82, 27, 0.12);
}

.et_mart_i18n_global_switcher .et_mart_lang_switcher {
  width: 100%;
  max-width: 1280px;
}

.et_mart_i18n_global_switcher .et_mart_lang_switcher_list {
  justify-content: center;
}

body.admin-bar .et_mart_i18n_global_switcher {
  margin-top: 0;
}

@media (max-width: 782px) {
  .et_mart_i18n_global_switcher {
    padding: 6px 12px;
  }

  .et_mart_i18n_global_switcher .et_mart_lang_switcher {
    font-size: 13px;
  }
}
