.topbar .language-switch[hidden],
.lv-topbar .lv-language[hidden] {
  display: none;
}

.home-language {
  position: relative;
  flex: 0 0 auto;
  font-size: 13px;
}

.home-language summary {
  display: inline-flex;
  min-height: 40px;
  padding-inline: 12px;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.home-language summary::-webkit-details-marker,
.home-language-globe,
.topbar + .home-language-mobile-studio {
  display: none;
}

.home-language summary:focus-visible,
.home-language-choices a:focus-visible {
  outline: 2px solid #9ec1ff;
  outline-offset: 2px;
}

.home-language-choices {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: max-content;
  min-width: 154px;
  padding: 5px;
  border: 1px solid #414652;
  border-radius: 11px;
  background: #181b21;
  box-shadow: 0 10px 28px #0008;
}

.home-language-choices a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 4px 10px;
  gap: 14px;
  border-radius: 6px;
  color: #f4f2ee;
  font-weight: 700;
  text-decoration: none;
}

.home-language-choices a:hover,
.home-language-choices a[aria-current] {
  background: #303642;
}

.home-language-choices a[aria-current]::after {
  content: "";
  width: 6px;
  height: 9px;
  border: solid #b1cdff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.lv-hero-copy:lang(ja) h1 {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

html[lang="ja"] .wiz-tab {
  white-space: nowrap;
  padding-inline: 8px;
}

html[lang="ja"] .style-presets .choice {
  white-space: nowrap;
  font-size: clamp(9.5px, 0.8vw, 10.5px);
  letter-spacing: -0.04em;
  padding-inline: 2px;
}

@media (max-width: 900px) {
  .home-language summary {
    padding: 0;
    width: 40px;
  }

  .home-language-globe {
    display: block;
  }

  .topbar + .home-language-mobile-studio {
    display: inline-flex;
    justify-self: start;
  }

  .home-language-name,
  .home-language-arrow {
    display: none;
  }

  .home-language-choices {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .topbar .actions:has(.home-language) {
    flex-wrap: nowrap;
  }

  .lv-topbar .lv-actions:has(.home-language) {
    flex-wrap: wrap;
  }

  .topbar .actions:has(.home-language) :is(.mobile-primary-ios, .dlcta-primary.button.app-button) {
    min-width: 0;
    padding-inline: 9px;
  }

  .topbar .actions:has(.home-language) .mobile-primary-ios .app-store-mark {
    display: none;
  }

  .topbar .actions:has(.home-language) .mobile-primary-ios strong {
    font-size: 12px;
  }

  .topbar .actions:has(.home-language) .dlcta-primary .app-store-copy strong {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .topbar:has(.home-language),
  .lv-topbar:has(.home-language) {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar .actions:has(.home-language),
  .lv-topbar .lv-actions:has(.home-language) {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .home-language-choices {
    left: 0;
    transform: none;
  }
}
