.wpr-language-switcher {
 background-color: #fff;
}

.wpr-language-switcher .wpr-language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-right: 30px;
}

.wpr-language-switcher-current,
.wpr-language-switcher-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpr-language-switcher-label {
    color: #222222;
}

.wpr-language-switcher .wpr-language-switcher-toggle,
.wpr-language-switcher .wpr-language-switcher-toggle:focus,
.wpr-language-switcher .wpr-language-switcher-toggle:active,
.wpr-language-switcher .wpr-language-switcher-toggle.show {
    color: #222222;
}

.wpr-language-switcher-flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
    flex: 0 0 auto;
}

.wpr-language-switcher-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.wpr-language-switcher-flag.wpr-language-switcher-flag--hidden {
    display: none;
}

#wpr-language-switcher-wpr_translate_language_switcher-toggle.btn:hover {
    color: #222222;
}

.wpr-language-switcher .wpr-language-switcher-toggle::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    margin-left: 0;
    font-size: 14px;
    line-height: 1;
    border: none;
}

/* WPRentals-only caret alignment override. */
body.wp-theme-wprentals .wpr-language-switcher .wpr-language-switcher-toggle::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    position: absolute;
    right: 0px;
}

.wpr-debug-panel {
    position: relative;
    height: 400px;
    padding: 10px;
    z-index: 9999;
    font-size: 12px;
}

/* Menu-injected language switcher only. */
.wpresidence-navigation-menu .wpr-language-switcher-menu-item {
    position: relative;
}

.wpresidence-navigation-menu .wpr-language-switcher-menu-item .wpr-language-switcher-menu {
    display: none;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
}

.wpresidence-navigation-menu .wpr-language-switcher-menu-item:hover .wpr-language-switcher-menu,
.wpresidence-navigation-menu .wpr-language-switcher-menu-item .wpr-language-switcher-menu.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wpresidence-navigation-menu .wpr-language-switcher-menu-item .dropdown-item.active,
.wpresidence-navigation-menu .wpr-language-switcher-menu-item .dropdown-item:active,
.wpresidence-navigation-menu .wpr-language-switcher-menu-item .dropdown-item:hover,
.wpresidence-navigation-menu .wpr-language-switcher-menu-item .dropdown-item:focus {
    color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-menu-hover-font-color));
    background-color: transparent;
}

.top_bar_wrapper .wpr-language-switcher-menu > li:hover {
    color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-menu-hover-font-color));
    background-color: var(--wp-estate-menu-hover-back-color-option, var(--wp-estate-menu-hover-back-color));
}

.top_bar_wrapper .wpr-language-switcher-menu .dropdown-item:hover,
.top_bar_wrapper .wpr-language-switcher-menu .dropdown-item:focus {
    color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-menu-hover-font-color));
    background-color: var(--wp-estate-menu-hover-back-color-option, var(--wp-estate-menu-hover-back-color));
}

/* WPRentals header menu compatibility (Bootstrap 3 / #access menu markup). */
#access .wpr-language-switcher-menu-item--wprentals > .wpr-language-switcher {
    background: transparent;
}

#access .wpr-language-switcher-menu-item--wprentals > .wpr-language-switcher > .wpr-language-switcher-toggle {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    min-height: 0;
    padding: 23px 20px;
    text-align: left;
}

#access .wpr-language-switcher-menu-item--wprentals > .wpr-language-switcher > .wpr-language-switcher-toggle:hover,
#access .wpr-language-switcher-menu-item--wprentals > .wpr-language-switcher > .wpr-language-switcher-toggle:focus {
    background: transparent;
    color: #b881fc;
}

#access .wpr-language-switcher-menu-item--wprentals > .wpr-language-switcher .wpr-language-switcher-menu {
    top: 77px;
}

#access .wpr-language-switcher-menu-item--wprentals:hover > .wpr-language-switcher .wpr-language-switcher-menu,
#access .wpr-language-switcher-menu-item--wprentals.is-open > .wpr-language-switcher .wpr-language-switcher-menu {
    opacity: 1;
    top: 69px;
    visibility: visible;
}

#access .wpr-language-switcher-menu-item--wprentals .wpr-language-switcher-menu .wpr-language-switcher-item {
    background: transparent;
    border: 0;
    color: #484848;
    display: block;
    font-size: 13px;
    padding: 10px 25px;
    text-align: left;
    width: 100%;
}

#access .wpr-language-switcher-menu-item--wprentals .wpr-language-switcher-menu .wpr-language-switcher-item:hover,
#access .wpr-language-switcher-menu-item--wprentals .wpr-language-switcher-menu .wpr-language-switcher-item:focus {
    background: transparent;
    color: #b881fc;
    padding-left: 30px;
}
