/* You can add global styles to this file, and also import other style files */

.gt-close {
    display: none;
}

.wipolex-translators {
    margin: 25px 0;
}

.translator-item {
    padding: 0 32px 0 16px;
    background-color: #fff;
    cursor: pointer;
    white-space: nowrap;    
}

[dir="rtl"] .translator-item {
    padding: 0 16px 0 32px;
}

.translator-item:hover {
    background-color: #F5F5F5;
}

.translator-button {
    border: 1px solid grey;
    border-radius: 2px;
    font-weight: bold;
    margin-bottom: 5px;
}

.translator-item img {
    margin: 0 5px
}

.caret {
    position: relative;    
}

.caret:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid black;
    margin-left: 5px;
}

[dir="rtl"] .caret:before {    
    border-right: 5px solid black;
    border-left: unset;
    margin-right: 5px;
}

.translator-dropdown {
    position: relative;
    display: inline-block;
    font-size: 1rem!important;
}

.translator-dropdown-menu {
    position: absolute;
    top: 80%;
    left: 0;
    z-index: 1001;
    display: none;
    /* box-shadow: 2px 2px 2px #ccc; */
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
    background-color: #fff;
    padding: 8px 0;
    border-radius: 4px;
}

[dir="rtl"] .translator-dropdown-menu {
    left: unset;
    right: 0;
}

.translator-dropdown-menu.show {
    display: block;
}

.has-submenu {
    position: relative;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu {
    position: absolute;
    top: -8px;
    right: -90%;
    z-index: 2;
    width: 90%;
    display: none;
    /* box-shadow: 2px 2px 2px #ccc; */
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);    
    border-radius: 4px;
}

[dir="rtl"] .submenu {
    left: -90%;
    right: unset;
}

.submenu.show {
    display: block;
}

.submenu-item-wrapper {
    padding-top: 5px;
    background-color: #fff;    
}

.submenu-item {
    /* padding: 10px; */
    background-color: #fff;
    height: 25px;
    text-align: center;
    cursor: pointer;
}

.submenu .submenu-item-wrapper:first-child {
    padding-top: 8px;
    border-radius: 4px 4px 0 0;
}

.submenu .submenu-item-wrapper:last-child {
    padding-bottom: 8px;
    border-radius: 0 0 4px 4px;
}

.submenu-item:hover {
    background-color: #F5F5F5;
}