/* Lee Yang Decor shared five-language selector. */
.nav-lang,
.lang-btn,
#langToggle {
  display: none !important;
}

.lyd-language-switcher {
  --lyd-navy: #0a1628;
  --lyd-gold: #c8a84e;
  position: relative;
  z-index: 2147482000;
  flex: 0 0 auto;
  margin-left: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
}

.lyd-language-trigger {
  min-width: 142px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 2px solid var(--lyd-gold);
  border-radius: 999px;
  background: #fff;
  color: var(--lyd-navy);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lyd-language-trigger:hover,
.lyd-language-trigger:focus-visible,
.lyd-language-switcher.is-open .lyd-language-trigger {
  border-color: #e8d48a;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .22);
  outline: none;
}

.lyd-language-trigger:active {
  transform: translateY(1px);
}

.lyd-language-current {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lyd-language-flag {
  width: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.lyd-language-chevron {
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.lyd-language-switcher.is-open .lyd-language-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.lyd-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  padding: 10px;
  border: 1px solid #d8dee8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(10, 22, 40, .24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.lyd-language-switcher.is-open .lyd-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lyd-language-option {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.lyd-language-option:hover,
.lyd-language-option:focus-visible {
  background: #f3f6fa;
  color: var(--lyd-navy);
  outline: none;
}

.lyd-language-option[aria-current="true"] {
  background: var(--lyd-navy);
  color: #fff;
}

.lyd-language-check {
  margin-left: auto;
  color: var(--lyd-gold);
  font-size: 20px;
  font-weight: 900;
}

.lyd-translate-status {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 22, 40, .94);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.lyd-translate-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lyd-translate-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #c8a84e;
  border-radius: 50%;
  animation: lyd-spin .7s linear infinite;
}

@keyframes lyd-spin {
  to { transform: rotate(360deg); }
}

/* Keep Google's helper UI out of the page; the custom selector is the UI. */
#lyd-google-translate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-gadget,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

body > .skiptranslate,
body > [class*="VIpgJd-ZVi9od-ORHb"],
iframe[class*="VIpgJd-ZVi9od-ORHb"],
iframe.skiptranslate {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

html,
body,
body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

/* Existing navy navigation pages. */
.nav-inner > .nav-logo { order: 1; }
.nav-inner > .nav-links { order: 2; margin-left: auto; }
.nav-inner > .lyd-language-switcher { order: 3; }
.nav-inner > .nav-toggle { order: 4; }

/* Blog/article header variant. */
header > .container > .logo { order: 1; }
header > .container > nav { order: 2; margin-left: auto; }
header > .container > .lyd-language-switcher { order: 3; }
header > .container > .menu-toggle { order: 4; }

@media (max-width: 980px) {
  .lyd-language-trigger {
    min-width: 120px;
    height: 40px;
    padding: 0 11px;
  }

  .lyd-language-switcher {
    margin-left: auto;
    margin-right: 8px;
  }

  .nav-inner > .nav-links,
  header > .container > nav {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .lyd-language-trigger {
    min-width: 74px;
    width: 74px;
    padding: 0 10px;
  }

  .lyd-language-trigger .lyd-language-name {
    display: none;
  }

  .lyd-language-menu {
    width: min(224px, calc(100vw - 28px));
    right: -42px;
  }

  .lyd-language-switcher {
    margin-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lyd-language-trigger,
  .lyd-language-chevron,
  .lyd-language-menu,
  .lyd-translate-status {
    transition: none;
  }
}
