/* Floating Widget Container */
.gtls-floating-widget {
    position: fixed;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.gtls-bottom-left {
    bottom: 20px;
    left: 20px;
}

.gtls-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Current Language Display */
.gtls-current-language {
    background-color: #f1f1f1;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gtls-current-language img {
    width: 24px;
    height: auto;
    margin-right: 8px;
    border-radius: 3px;
}

.gtls-current-language .gtls-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.gtls-floating-widget.active .gtls-current-language .gtls-arrow {
    transform: rotate(180deg);
}

/* Language List */
.gtls-language-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: absolute;
    bottom: 100%; /* Hiển thị phía trên nút current */
    left: 0;
    width: max-content; /* Độ rộng tự động theo nội dung */
    min-width: 150px; /* Độ rộng tối thiểu */
    display: none; /* Ẩn ban đầu */
    max-height: 200px; /* Giới hạn chiều cao, thêm scroll nếu cần */
    overflow-y: auto;
}

.gtls-floating-widget.active .gtls-language-list {
    display: block;
}

.gtls-language-list li {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.gtls-language-list li:hover {
    background-color: #f0f0f0;
}

.gtls-language-list li img {
    width: 20px;
    height: auto;
    margin-right: 10px;
    border-radius: 2px;
}

/* Ẩn Google Translate Top Frame nếu không muốn hiển thị */
div.skiptranslate {
    display: none !important;  /* Bỏ comment nếu muốn ép ẩn */
}
body > .skiptranslate > iframe.goog-te-banner-frame {
     display: none !important;  /* Bỏ comment nếu muốn ép ẩn */
}
body {
    /* top: 0px !important; */ /* Bỏ comment nếu muốn ép body không bị đẩy xuống */
}
#goog-gt-tt, .goog-te-balloon-frame {display: none !important;}
.goog-text-highlight {background: none !important; box-shadow: none !important;}