/*
Theme Name: BDS28
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.2
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 849px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    #gt_float_wrapper .gt_float_switcher, .gtranslate_wrapper .gt_float_switcher {
        transform: translateY(0) !important;
        margin-top: 40px !important;
    }
    /* Flatsome ẩn HTML block trên mobile mặc định, ép hiển thị nếu có gtranslate */
    li.html:has(.gtranslate_wrapper),
    li.html.html_topbar_right {
        display: flex !important;
        align-items: center;
    }
}

/* GTranslate Custom Style */
#gt_float_wrapper, .gtranslate_wrapper {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
#gt_float_wrapper .gt_float_switcher, .gtranslate_wrapper .gt_float_switcher {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
    position: relative !important;
    transform: translateY(-22px) !important;
}
#gt_float_wrapper .gt_float_switcher:hover, .gtranslate_wrapper .gt_float_switcher:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Selected item (Main button) */
#gt_float_wrapper .gt-selected, .gtranslate_wrapper .gt-selected {
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}
#gt_float_wrapper .gt-current-lang, .gtranslate_wrapper .gt-current-lang {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    color: #fff !important;
}
#gt_float_wrapper .gt-current-lang img, .gtranslate_wrapper .gt-current-lang img, .gtranslate_wrapper .gt_float_switcher img {
    width: 18px !important;
    height: auto !important;
    margin: 0 6px 0 0 !important;
    display: block !important;
}
#gt_float_wrapper .gt-current-lang .gt-lang-code, .gtranslate_wrapper .gt-lang-code {
    color: #fff !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    display: block !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}
#gt_float_wrapper .gt_float_switcher-arrow, .gtranslate_wrapper .gt_float_switcher-arrow {
    border-top-color: #fff !important;
    margin-left: 6px !important;
    margin-top: 2px !important;
    display: block !important;
    position: static !important;
}

/* Dropdown Options */
#gt_float_wrapper .gt_options, .gtranslate_wrapper .gt_options {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    margin-top: 10px !important;
    padding: 5px 0 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 120px !important;
    display: none !important;
}
#gt_float_wrapper .gt_options.gt-open, .gtranslate_wrapper .gt_options.gt-open {
    display: block !important;
}
#gt_float_wrapper .gt_options a, .gtranslate_wrapper .gt_options a {
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}
#gt_float_wrapper .gt_options a:hover, .gtranslate_wrapper .gt_options a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}
#gt_float_wrapper .gt_options img, .gtranslate_wrapper .gt_options img {
    width: 18px !important;
    margin-right: 8px !important;
}
