.wpml-wrapper {
    position: relative;
    display: inline-flex;
    margin-left: 1rem;
    align-items: center;
    width: fit-content;
    z-index: 1000;
}

.wpml-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    height: 3rem;
    width: 3rem;
    border-radius: 2.5rem;
    background: #888;
    transition: width 0.35s ease, background-color 0.3s ease;
    overflow: hidden; /* Dôležité: aby nič nevytekalo mimo */
}

.wpml-switcher.active {
    width: 10rem;
    background: #888;
}

.wpml-switcher .current-lang {
    color: #fff;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    padding-left: 0;
    transition: padding-left 0.35s ease;
    white-space: nowrap;
    z-index: 2;
}

.wpml-switcher.active .current-lang {
    justify-content: flex-start;
    padding-left: 1.2rem;
    width: auto; /* nech sa text roztiahne */
	text-decoration: underline;
}

.wpml-switcher .lang-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: absolute;
    left: 4rem;
    top: 0;
    height: 3rem;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.35s;
    white-space: nowrap;
    user-select: none;
}

.wpml-switcher.active .lang-options {
    opacity: 1;
    pointer-events: auto;
}

.wpml-switcher .lang-options a {
    color: #fff;
    text-decoration: none;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.3s ease;
}

.wpml-switcher .lang-options a:hover {
    text-decoration: underline;
}

@media (max-width: 921px) {
    .wpml-switcher {
        width: auto !important;
        background: none !important;
        overflow: visible !important;
        height: auto !important;
        padding: 0 0.5rem;
    }
.wpml-wrapper {
    position: relative;
    display: inline-flex;
    margin-left: 0rem;
    align-items: center;
    width: fit-content;
    z-index: 1000;
}
    .wpml-switcher .current-lang {
        width: auto !important;
        padding: 0;
        justify-content: flex-start !important;
        color: #fff !important;
		padding-left: 0rem!important;
    }

    .wpml-switcher .lang-options {
        position: static !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-wrap: wrap;
        gap: 2rem;
        margin-left: 2rem;
    }

    .wpml-switcher .lang-options a {
        color: #fff !important;
    }
	
	.wpml-switcher .lang-options a:hover {
    text-decoration:none;
}
}

