/*
 *  Menu Language Switcher
 */

.menu-item-object-language_switcher .trp-flag-image {
    display: inline-block;
    margin: -1px 5px;
    vertical-align: baseline;
    padding: 0;
    border: 0;
    border-radius:0;
}


.trp-language-switcher{

    position: relative;
    box-sizing: border-box;

    white-space: nowrap;
}


.trp-language-switcher > div {
    box-sizing: border-box;
  


  
}

.trp-language-switcher > div:hover {
    background-image: none;

	
}


.trp-language-switcher > div > a {
    display: block;

padding-left: 5px;
    text-decoration: none;
    color: #ffffff;
	background-color: #000000;
   
}

.trp-language-switcher > div > a:hover {
    background: #3a3a3a;

}




.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {
    cursor: default;

}
.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language:hover {
    background: none;
}

/* .trp-language-switcher > div > a > img{
    display: inline;
    margin: 0 3px;
    width: 18px;
    height: 12px;
    border-radius: 0;
} */

.trp-language-switcher .trp-ls-shortcode-current-language{
    display: inline-block;
}
.trp-language-switcher:focus .trp-ls-shortcode-current-language,
.trp-language-switcher:hover .trp-ls-shortcode-current-language{
    visibility: hidden;
}

.trp-language-switcher .trp-ls-shortcode-language{
    display: inline-block;
 
    overflow: hidden;
    visibility: hidden;
    z-index: 1;

    max-height: 250px;
    overflow-y: auto;
    left: 0;
    top: 0;
    min-height: auto;
}

.trp-language-switcher:focus .trp-ls-shortcode-language,
.trp-language-switcher:hover .trp-ls-shortcode-language{
    visibility: visible;
    max-height: 250px;

    height: auto;
    overflow-y: auto;
    position: absolute;

    display: inline-block !important;
    min-height: auto;
}

.trp-language-switcher::after {
  content: '\2228'; /* Символ стрелки */
  margin-bottom: 5px;
  margin-left: -12px;
  
  /* Делаем верхним индексом */
  vertical-align: super;
  font-size: 0.6em; /* Уменьшаем размер, чтобы выглядело как индекс */
}


/*
 *  Front-end Admin Bar Icon
 */
#wpadminbar #wp-admin-bar-trp_edit_translation .ab-icon:before {
    content: '\f326';
    top: 3px;
}

@media screen and ( max-width: 782px ) {
    #wpadminbar #wp-admin-bar-trp_edit_translation > .ab-item {
        text-indent: 0;
    }

    #wpadminbar li#wp-admin-bar-trp_edit_translation {
        display: block;
    }
}

/*
 * Fix Language Switcher Shortcode in Elementor Popup
 */
.elementor-shortcode .trp-ls-shortcode-current-language,
.elementor-shortcode .trp-ls-shortcode-language {
    width: 300px !important;
}