/**
 * K-TRANS 스타일
 *
 * @package K_TRANS
 */

/* 기존 웹사이트 언어 선택 버튼 숨김 */
.btn-language,
.language-bubble {
    display: none !important;
}

/* 다른 언어 버튼들 숨김 (버튼 1개만 표시) */
.ayc-ml-switcher .ayc-ml-lang-btn:not(:first-child),
.ayc-ml-switcher .ayc-ml-lang-btn:nth-child(2),
.ayc-ml-switcher .ayc-ml-lang-btn:nth-child(3),
.ayc-ml-switcher .ayc-ml-lang-btn:nth-child(4) {
    display: none !important;
}

/* ayc-ml-switcher 컨테이너 자체를 숨김 (버튼은 ayc-ml-fixed-bottom-left에서만 표시) */
.ayc-ml-switcher {
    display: none !important;
}

/* 언어 전환 버튼 (한국 국기 + KO 텍스트 버튼 1개만) */
.ayc-ml-fixed-bottom-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.ayc-ml-lang-switcher {
    position: relative;
}

/* 메인 버튼 (KO 버튼) - .ayc-ml-lang-btn 스타일 상속 */

/* 호버 메뉴 (위에 표시되는 언어 버튼들) */
.ayc-ml-lang-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0;
    padding-bottom: 4px;
    display: none;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.ayc-ml-lang-switcher:hover .ayc-ml-lang-menu {
    display: flex;
    pointer-events: auto;
}

.ayc-ml-lang-menu:hover {
    display: flex;
    pointer-events: auto;
}

/* 메뉴 버튼들 (English, 日本語, 中文) */
.ayc-ml-lang-btn-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-width: fit-content;
    pointer-events: auto;
}

.ayc-ml-lang-btn-menu:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: #f5f5f5;
}

/* 메인 버튼과 메뉴 버튼 공통 스타일 */
.ayc-ml-lang-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ayc-ml-lang-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ayc-ml-flag {
    font-size: 21px;
    line-height: 1;
    flex-shrink: 0;
}

.ayc-ml-name {
    font-weight: 600;
    color: #333;
}

/* 위쪽 화살표 아이콘 */
.ayc-ml-caret {
    font-size: 15px;
    color: #999;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.ayc-ml-lang-switcher:hover .ayc-ml-caret {
    transform: rotate(180deg);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .ayc-ml-fixed-bottom-left {
        bottom: 15px;
        left: 15px;
    }
    
    .ayc-ml-lang-btn-main,
    .ayc-ml-lang-btn-menu {
        padding: 9px 15px;
        font-size: 18px;
    }
    
    .ayc-ml-flag {
        font-size: 21px;
    }
}
