.nav-floating-wrapper {
    position: fixed;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.nav-button {
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    color: white;
    text-decoration: none;
    border-radius: 0 2px 2px 0;
    overflow: hidden;
    width: 44px;
    height: 44px;
    transition: width 0.3s ease, background-color 0.3s ease;
    padding: 0 6px;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1);
}

.nav-button.back {
    width: 55px;
    background-color: rgb(var(--highlight-rgb-color));
}

.nav-button.share {
    border: 1px solid #dddddd;
}

.nav-button.share svg path {
    stroke: #625c74;
    fill: none;
}

.nav-button .text {
    margin-right: 8px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-button .icon {
    font-size: 16px;
    line-height: 1;
}

.nav-button:hover {
    width: 100px;
}

.nav-button.back svg path {
    fill: white;
}

.nav-button.share svg path {
    stroke: #625c74;
}

.nav-button.share {
    color: #625c74;
}

.nav-button .icon-preview {
    display: flex;
}

.nav-button:hover .icon-preview {
    display: none;
}

.nav-button:hover .text {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-button {
        width: calc(var(--font-size-root) * 2);
        height: calc(var(--font-size-root) * 2.5);
        padding: 0;
    }

    .nav-button.back {
        width: 30px;
    }

    .nav-button.share {
        display: none;
    }

    .nav-button:hover .text {
        margin-left: 5px;
    }
}
