.docs-floating-switches {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    border-top: 1px solid rgba(82, 82, 91, 0.48);
    border-radius: 0;
    background: #a8a8a8;
    box-shadow: none;
    backdrop-filter: none;
}

.docs-floating-switches__item {
    width: 100%;
    max-width: none;
}

.docs-floating-switches .lang-switch {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 3rem;
    padding: 0.95rem 1rem !important;
}

.docs-version-switch {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    padding: 0.95rem 1rem 1rem;
    border-top: 1px solid rgba(82, 82, 91, 0.28);
}

.docs-version-switch__header {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f3f46;
}

.docs-version-switch__control {
    display: grid;
    gap: 0.25rem;
}

.docs-version-switch__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.docs-version-switch__select {
    width: 100%;
    min-height: 2.4rem;
    padding: 0 0.85rem;
    border: 1px solid #7f7f88;
    border-radius: 0;
    background: #97979f;
    color: #18181b;
    font-size: 0.95rem;
    font-weight: 600;
}

.docs-version-switch__select:focus {
    outline: 2px solid rgba(63, 63, 70, 0.32);
    border-color: #3f3f46;
}

.wy-nav-side {
    position: fixed;
}

.wy-nav-side .wy-side-scroll {
    padding-bottom: 10.5rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .docs-floating-switches {
        position: fixed;
        left: 12px;
        right: auto;
        bottom: 12px;
        width: auto;
        min-width: 176px;
        max-width: calc(100vw - 24px);
        border: 1px solid rgba(82, 82, 91, 0.42);
    }

    .docs-floating-switches__item {
        max-width: calc(100vw - 24px);
    }

    .docs-floating-switches .lang-switch {
        min-height: 0;
        justify-content: flex-start !important;
        padding: 0.75rem 0.85rem !important;
    }

    .docs-version-switch {
        min-width: 156px;
        width: auto;
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .docs-version-switch__header {
        font-size: 0.68rem;
    }

    .docs-version-switch__select {
        min-height: 2.2rem;
        font-size: 0.88rem;
    }

    .wy-nav-side .wy-side-scroll {
        padding-bottom: 0;
    }
}
