.site-language-menu {
  position: relative;
  z-index: 80;
  display: inline-flex;
  align-items: center;
}

.site-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.site-language-toggle:hover,
.site-language-menu.is-open .site-language-toggle {
  border-color: rgba(154, 108, 255, 0.42);
  background: rgba(154, 108, 255, 0.13);
}

.site-language-toggle-flag,
.site-language-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.site-language-toggle-flag img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
}

.site-language-toggle-code {
  display: none;
}

.site-language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 6px;
  width: 104px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(9, 9, 12, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 22px rgba(154, 108, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-language-menu.is-open .site-language-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-language-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.site-language-option:hover,
.site-language-option.is-active {
  border-color: rgba(154, 108, 255, 0.26);
  background: rgba(154, 108, 255, 0.12);
}

.site-language-option-flag img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.site-language-option-text {
  font-size: 0.82rem;
  font-weight: 800;
}

.site-language-option small {
  display: none;
}

.checkout-method-icon.is-ru-payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  background: #f7f7f8;
  color: #101014;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.checkout-method-icon.is-ru-payment-icon-crypto {
  background: linear-gradient(135deg, #54c5a3 0%, #3a9f85 100%);
  color: #fff;
}

.site-payment-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.site-payment-glyph-sber {
  color: #159947;
  font-size: 1rem;
}

.site-payment-glyph-crypto {
  color: #fff;
  font-size: 0.98rem;
}

.site-payment-card-brands {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15151a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.site-payment-card-brands b {
  font: inherit;
}

@media (max-width: 760px) {
  .topbar-actions-landing .site-language-menu {
    order: -1;
  }

  .site-language-toggle {
    width: 44px;
  }

  .site-language-dropdown {
    right: auto;
    left: 0;
  }
}
