/* Zidans .ru market selector v1. Loaded after the theme's own overrides. */


.zidans-market-link {
  text-decoration: none;
}
.zidans-market-link:focus-visible,
.zidans-language-link:focus-visible,
.zidans-market-prompt__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Desktop top panel: account left, markets right. */
.top-panel .tel,
.top-panel .lang {
  vertical-align: top;
  line-height: 30px;
}
.top-panel .tel {
  text-align: start;
}
.top-panel .lang {
  text-align: end;
}
.top-panel .js-zidans-account-link {
  display: inline-block;
  margin-inline-start: 15px;
  max-width: calc(100% - 31px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  opacity: 1;
  color: #fff !important;
}
.top-panel .zidans-market--desktop {
  display: inline-flex;
  align-items: center;
  gap: 0 8px;
  margin-inline-end: 15px;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 13px;
  line-height: 30px;
}
.top-panel .zidans-market--desktop .zidans-market-link,
.top-panel .zidans-market--desktop .zidans-market-sep {
  color: #fff !important;
}
.top-panel .zidans-market--desktop .zidans-market-link:hover {
  text-decoration: underline;
}
.zidans-market-ext {
  margin-inline-start: 4px;
}

/* RU mobile top panel: compact pair. */
.zidans-market--mobile {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0 8px;
  white-space: nowrap;
  font-size: 16px;
  color: #fff;
}
.zidans-market--mobile .zidans-market-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #fff !important;
}
@media (max-width: 359px) {
  .zidans-market--mobile {
    gap: 0 3px;
    font-size: 14px;
  }
}

/* Mobile footer: language link under the footer menu. */
.zidans-language--mobile {
  margin-bottom: 1rem;
}
.zidans-language--mobile .zidans-language-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
}

/* First-visit prompt. */
.zidans-market-prompt:not([open]) {
  display: none;
}
.zidans-market-prompt {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: auto;
  padding: 20px 24px 24px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.zidans-market-prompt::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.zidans-market-prompt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.zidans-market-prompt__title {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}
.zidans-market-prompt__alt {
  display: block;
  margin-block-start: 2px;
  font-size: 15px;
  font-weight: 400;
  color: #555;
}
.zidans-market-prompt__title:focus {
  outline: none;
}
.zidans-market-prompt__close {
  box-sizing: border-box;
  flex: none;
  width: 44px;
  height: 44px;
  margin-block: -10px 0;
  margin-inline-end: -14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.zidans-market--prompt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.zidans-market--prompt .zidans-market-sep {
  display: none;
}
.zidans-market--prompt .zidans-market-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000 !important;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}
.zidans-market--prompt .zidans-market-link:hover {
  background: #000;
  color: #fff !important;
}
