.babel-switcher {
    position: relative;
    display: inline-block;
    font: inherit;
    line-height: 1.2;
    z-index: 20;
}

.babel-switcher__details {
    position: relative;
}

.babel-switcher__summary {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    list-style: none;
    padding: .4rem .6rem;
    color: inherit;
    white-space: nowrap;
}

.babel-switcher__summary::-webkit-details-marker {
    display: none;
}

.babel-switcher__arrow {
    font-size: 1.1em;
    line-height: 1;
}

.babel-switcher__languages {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: .35rem 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.babel-switcher__details:not([open]) .babel-switcher__languages {
    display: none;
}

.babel-switcher__languages a {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.babel-switcher__languages a:hover,
.babel-switcher__languages a:focus-visible {
    background: #f0f0f0;
}

.babel-switcher__languages .babel-current-lang {
    font-weight: 700;
}

.babel-flag {
    display: inline-block;
    width: 1.65rem;
    height: 1.1rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: .08rem;
}

.babel-link .babel-flag {
    vertical-align: middle;
    margin-right: .35rem;
}
