.rw-language {
    color: inherit;
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
    text-align: left;
    font: inherit;
    z-index: 12;
}
.rw-language[open] { z-index: 102; }
.rw-language > summary {
    align-items: center;
    color: inherit;
    cursor: pointer;
    display: flex;
    line-height: 1.2;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    gap: 7px;
    letter-spacing: .02em;
    list-style: none;
    margin: 0;
    min-height: 40px;
    padding: 0 8px;
    white-space: nowrap;
}
.rw-language > summary::-webkit-details-marker { display: none; }
.rw-language-arrow {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    height: 7px;
    margin: -3px 2px 0 0;
    transform: rotate(45deg);
    width: 7px;
}
.rw-language[open] .rw-language-arrow { transform: rotate(225deg); margin-top: 4px; }
.rw-language .rw-language-list {
    background: #fff;
    border: 1px solid #d8dce0;
    border-radius: 6px;
    box-shadow: 0 5px 16px rgb(26 39 50 / 13%);
    box-sizing: border-box;
    display: none;
    left: auto;
    min-width: 112px;
    padding: 5px 0;
    position: absolute;
    right: 0;
    top: 100%;
}
.rw-language[open] > .rw-language-list { display: block; }
.rw-language .rw-language-list a {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: #202b38;
    display: flex;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    height: auto;
    justify-content: flex-start;
    line-height: 1.25;
    margin: 0;
    min-height: 40px;
    padding: 8px 16px;
    text-decoration: none;
    width: 100%;
}
.rw-language .rw-language-list a:hover, .rw-language .rw-language-list a:focus-visible { background: #f3f5f4; }
.rw-language :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html.rw-language-shop-ready .whb-header .wd-header-main-nav > ul > li.trrocket-lang-current { display: none; }
@media(max-width: 767px) {
    .rw-language > summary { min-height: 36px; padding: 0 4px; font-size: 14px; gap: 6px; }
    .rw-language .rw-language-list a { min-height: 44px; }
}

/* Each visible rental action gets its own space, including the language menu. */
@media (max-width: 760px) {
    html body header.header > .wrap.nav:has(> .nav-right > .rw-language) {
        grid-template-columns: 44px minmax(0, 1fr) max-content;
        column-gap: clamp(2px, 1vw, 8px);
    }
    html body header.header > .wrap.nav:has(> .nav-right > .rw-language) > .brand {
        min-width: 0;
        width: 100%;
        max-width: 140px;
        justify-self: start;
    }
    html body header.header > .wrap.nav:has(> .nav-right > .rw-language) > .brand img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}
