.languageswitch-container{
    position: absolute;
    z-index: 1000;
    top: 50%;
    margin-left: 15px;
    border: 1px solid rgb(0 0 0 / .125) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    padding: 3px 5px;
    gap: 2px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.languageswitch-rounded {
    border-radius: 8px;
    overflow: hidden;
}

/* Media query for mobile devices (max-width: 768px for tablets and smaller) */
@media (max-width: 768px) {
    .languageswitch-container {
        position: absolute;
        right: 1rem;
        top: 5.25rem;
    }
}

.lang-switch-btn {
    padding: 2px 5px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-decoration: none;
    transition: background-color 0.15s ease;
    background-color: transparent;
    flex: 0 1 auto;
    position: relative;
    font-size: 0.8rem;
    line-height: 1.2;
    border-radius: 4px;
}

/* Current language styling - inherits inline color */
.lang-switch-current a {
    color: inherit;
}

/* No separators - gap handles spacing */
.lang-switch-btn:not(:last-child)::after {
    display: none;
}

.lang-switch-btn:hover:not(.lang-switch-current) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.lang-switch-btn a {
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
    color: #495057;
}

/* Rounded corners for current language when enabled */
.lang-switch-current.lang-switch-round {
    border-radius: 4px;
}
