.kkw-lang-switch {
    position: fixed;
    right: 0;
    top: 33%;
    transform: translateY(-50%);
    z-index: 9999 !important;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px 0 0 16px;
    background: #0e3152;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kkw-lang-switch--collapsed {
    transform: translateY(-50%) translateX(calc(100% - 48px));
}

.kkw-lang-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.kkw-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.kkw-lang-toggle:active {
    transform: scale(0.95);
}

.kkw-lang-toggle svg {
    transition: transform 0.3s ease;
}

.kkw-lang-switch--collapsed .kkw-lang-toggle svg {
    transform: rotate(180deg);
}

.kkw-lang-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kkw-lang-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kkw-lang-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.kkw-lang-btn.is-active {
    border-color: rgba(0, 144, 247, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 144, 247, 0.25);
}

.kkw-flag {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kkw-flag--uk {
    background-image: var(--kkw-flag-uk);
}

.kkw-flag--pl {
    background-image: var(--kkw-flag-pl);
}

@media (max-width: 768px) {
    .kkw-lang-switch {
        display: none;
    }

    .kkw-lang-buttons {
        display: flex;
        gap: 6px;
        align-items: center;
        margin-right: 4px;
    }

    .kkw-lang-btn {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }

    .kkw-lang-btn:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: none;
    }

    .kkw-lang-btn.is-active {
        border-color: rgba(0, 144, 247, 0.9);
        box-shadow: 0 0 0 2px rgba(0, 144, 247, 0.3);
    }
}