/*
 * Yubeen Site Assets / Global Language Dock / Release candidate 2026-10-21.
 * Mobile-only companion to the existing Back to Top. Do not change its CSS.
 * TranslatePress retains language URLs; JS controls only this compact view.
 */

/* This class is applied only after the replacement is fully initialized. */
nav.trp-floating-switcher.yb-language-native-hidden {
  display: none !important;
}

#yb-language-dock {
  display: none;
}

@media (max-width: 767px) {
  #yb-language-dock {
    position: fixed !important;
    top: 70%;
    right: 0;
    width: 40px;
    height: 56px;
    z-index: 800;
    display: block;
    overflow: visible;
    box-sizing: border-box;
    font: 13px Arial, sans-serif;
  }

  #yb-language-dock,
  #yb-language-dock * {
    box-sizing: border-box;
  }

  #yb-language-dock .yb-language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dce0;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #fff;
    color: #143852;
    cursor: pointer;
    box-shadow: -3px 3px 13px rgba(0, 0, 0, .13);
    -webkit-tap-highlight-color: transparent;
  }

  #yb-language-dock .yb-language-toggle img {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: contain;
  }

  #yb-language-dock .yb-language-toggle:focus-visible,
  #yb-language-dock .yb-language-menu a:focus-visible {
    outline: 2px solid #143852;
    outline-offset: 2px;
  }

  #yb-language-dock .yb-language-menu {
    position: absolute;
    right: calc(100% + 8px);
    bottom: 0;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 76px;
    max-height: min(70dvh, 330px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 0;
    margin: 0;
    border: 1px solid #e0e3e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
  }

  #yb-language-dock .yb-language-menu[hidden] {
    display: none !important;
  }

  #yb-language-dock .yb-language-menu a {
    display: flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 13px;
    color: #143852;
    text-decoration: none;
    font: 13px Arial, sans-serif;
  }

  #yb-language-dock .yb-language-menu a:hover,
  #yb-language-dock .yb-language-menu a:focus-visible {
    background: #eef1f4;
  }
}

@media print {
  #yb-language-dock { display: none !important; }
}
