/* Flag dropdown styles from the original AdsRock frontend. */
/*=========== Custom Dropdown Css Start=========== */
.custom--dropdown {
    margin-left: 20px;
}

@media screen and (max-width: 1199px) {
    .custom--dropdown {
        margin-left: 10px;
    }
}

@media screen and (max-width: 991px) {
    .custom--dropdown {
        width: 90px;
    }
}

.custom--dropdown.open>.custom--dropdown__selected::before {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.custom--dropdown>.custom--dropdown__selected {
    background-color: transparent;
    position: relative;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    padding-right: 30px;
}

.custom--dropdown>.custom--dropdown__selected::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    content: "\f107";
    display: inline-block;
    position: absolute;
    margin-left: auto;
    width: unset !important;
    right: 10px;
    color: hsl(var(--black, 0 0% 0%));
    font-size: 12px;
}

@media screen and (max-width: 1399px) {
    .custom--dropdown>.custom--dropdown__selected::before {
        right: 2px;
    }
}

@media screen and (max-width: 1399px) {
    .custom--dropdown>.custom--dropdown__selected {
        padding-right: 15px;
    }
}

.custom--dropdown>.dropdown-list {
    position: absolute;
    background-color: #E8ECEF;
    width: 100%;
    border-radius: 3px;
    -webkit-box-shadow: 0px 12px 24px rgba(21, 18, 51, 0.13);
    box-shadow: 0px 12px 24px rgba(21, 18, 51, 0.13);
    opacity: 0;
    overflow: hidden;
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: top center;
    transform-origin: top center;
    top: 100%;
    margin-top: 5px;
    z-index: -1;
    visibility: hidden;
    max-height: 230px;
    width: 85px;
    overflow-y: auto !important;
}

@media screen and (max-width: 991px) {
    .custom--dropdown>.dropdown-list {
        left: auto;
        right: 0;
        width: 80px;
    }
}

.custom--dropdown>.dropdown-list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom--dropdown>.dropdown-list::-webkit-scrollbar-thumb {
    background-color: hsl(var(--black, 0 0% 0%)/0.15);
}

.custom--dropdown>.dropdown-list::-webkit-scrollbar-thumb {
    background-color: hsl(var(--black, 0 0% 0%)/0.3);
}

.custom--dropdown.open>.dropdown-list {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 999 !important;
    background-color: #E8ECEF !important;
    -webkit-box-shadow: var(--box-shadow, 0px 12px 24px rgba(21,18,51,.13));
    box-shadow: var(--box-shadow, 0px 12px 24px rgba(21,18,51,.13));
}

.dropdown-list>.dropdown-list__item {
    padding: 10px 8px !important;
    cursor: pointer;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    font-size: 14px;
}

.dropdown-list>.dropdown-list__item:hover {
    background-color: hsl(var(--base, 167 100% 37%)) !important;
}

.dropdown-list>.dropdown-list__item:hover .text {
    color: hsl(var(--black, 0 0% 0%)) !important;
}

.dropdown-list>.dropdown-list__item,
.custom--dropdown>.custom--dropdown__selected {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.dropdown-list>.dropdown-list__item .thumb img,
.custom--dropdown>.custom--dropdown__selected .thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover !important;
    object-fit: cover !important;
}

.dropdown-list>.dropdown-list__item .thumb img,
.custom--dropdown>.custom--dropdown__selected .thumb img {
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    overflow: hidden;
    margin-right: 5px;
    border-radius: 50%;
}

.dropdown-list>.dropdown-list__item .text,
.custom--dropdown>.custom--dropdown__selected .text {
    width: calc(100% - 24px);
    padding-left: 4px;
    color: hsl(var(--black, 0 0% 0%)) !important;
}

.dropdown-list__item .icon {
    width: 24px;
    font-size: 20px;
    color: hsl(var(--black, 0 0% 0%));
}

.custom--dropdown__selected.dropdown-list__item .text {
    color: hsl(var(--black, 0 0% 0%)) !important;
    font-weight: 600;
}


/* Position the same flag menu in the additional account/admin entry points. */
.navbar__action-list .custom--dropdown, .dashboard-header .custom--dropdown, .auth-language-switcher .custom--dropdown { position:relative; flex-shrink:0; }
.navbar__action-list .custom--dropdown { margin-left:0; }
.navbar__action-list .custom--dropdown .dropdown-list__item { margin-right:0; }
.navbar__action-list .custom--dropdown > .custom--dropdown__selected .text,
.navbar__action-list .custom--dropdown > .custom--dropdown__selected::before { color:#fff !important; }
.custom--dropdown .text { white-space:nowrap; }
.language-switcher > .dropdown-list > .dropdown-list__item { padding:0 !important; }
.language-switcher > .dropdown-list > .dropdown-list__item > a { width:100%; padding:10px 8px; align-items:center; }
.auth-language-switcher { display:flex; justify-content:flex-end; margin-bottom:16px; }
html[lang^="zh"] body, html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4, html[lang^="zh"] h5, html[lang^="zh"] h6 { font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif; }
html[lang^="zh"] input, html[lang^="zh"] select, html[lang^="zh"] textarea, html[lang^="zh"] button { font-family:inherit; }
