/* CSS สำหรับปุ่มเปลี่ยนภาษา */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.language-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #FF8C00;
}

.language-toggle svg {
    margin-right: 4px;
}

.current-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #FF8C00;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

/* เมนูดรอปดาวน์ */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 10px;
    min-width: 120px;
    border: 1px solid #eee;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

/* รายการภาษา */
.language-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.language-item:hover {
    background-color: #f8f8f8;
}

.language-item.active {
    background-color: rgba(255, 140, 0, 0.05);
}

.lang-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
}

.lang-name {
    font-size: 14px;
    color: #333;
}

/* สำหรับโทรศัพท์มือถือ */
@media (max-width: 768px) {
    .language-toggle {
        padding: 3px;
    }
    
    .language-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .current-lang {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* ซ่อน Google Translate element เดิม */
.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}