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

/*************** ADD CUSTOM CSS HERE.   ***************/
* {
    font-family: "Roboto", sans-serif !important;
}

.row-ok .col {
    margin-bottom: -18px;
}


footer#footer {
    display: none;
}


header#header {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
}

.header-language-dropdown img,
.header-language-dropdown .icon-image,
.header-language-dropdown .image-icon {
    display: none !important;
}

.header-language-dropdown .icon-angle-down {
    display: none !important;
}

.header-language-dropdown {
    position: static !important;
}

.header-language-dropdown>a.header-language-dropdown__link {
    display: none !important;
}

.header-language-dropdown .nav-dropdown {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-language-dropdown .nav-dropdown>li {
    display: inline-block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-language-dropdown .nav-dropdown>li>a::after {
    content: " /";
}

.header-language-dropdown .nav-dropdown>li:last-child::after {
    content: "";
}

.header-language-dropdown .nav-dropdown a {
    background: transparent !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.has-dropdown.header-language-dropdown:hover .nav-dropdown {
    display: flex !important;
}

.nav-dropdown-has-border .nav-dropdown {
    border: unset;
}

.nav-dropdown-has-arrow li.has-dropdown:after,
.nav-dropdown-has-arrow li.has-dropdown:before {
    display: none;
}

.nav-dropdown-default .nav-column li>a,
.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: 0px;
    margin: 0;
}

#logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

html[lang|="vi"] #logo a::after {
  content: "Dịch vụ truy xuất nguồn gốc ISOTXNG";
}

/* Tiếng Trung (giản thể/truyền thống) */
html[lang|="zh"] #logo a::after, 
html[lang|="zh-CN"] #logo a::after, 
html[lang|="zh-TW"] #logo a::after {
  content: "ISOTXNG 溯源服务";
}

/* Tiếng Hàn */
html[lang|="ko"] #logo a::after {
  content: "ISOTXNG 원산지 추적 서비스";
}

/* Giữ lại style chung */
#logo a::after {
  font-size: 16px;
  font-weight: 600;
  color: rgb(51,51,51);
  text-transform: none;
  display: inline-block;
  width: 236px;
  margin-left: 12px;
  vertical-align: middle;
  line-height: 1.2;
  white-space: normal;
}

#logo img {
    display: inline-block;
    height: auto;
    max-width: 100%;
}

.af-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.af-message.show {
    opacity: 1;
    transform: translateY(0);
}

.af-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.af-message.success::before {
    content: "✓";
    font-weight: bold;
    font-size: 16px;
}

@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    div#logo {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    ul#ux-language-dropdown {
        width: 207px;
    }

    ul#ux-language-dropdown a {
        font-size: 14px;
    }

    #logo a::after {
        content: "Dịch vụ truy xuất nguồn gốc ISOTXNG";
        font-size: 11px;
        font-weight: 600;
        color: #333;
        text-transform: none;
        display: inline-block;
        width: 128px;
        vertical-align: middle;
        white-space: normal;
        line-height: 1.2;
        margin: 0px 14px 0px -8px;
    }
}