.floating-menu-left,
.floating-menu-right {
    position: fixed;
    flex-direction: column;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    z-index: 1040;
    width: 3rem;
    max-width: calc(100vw - 1.5rem);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.floating-menu-right.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-menu-right {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    align-items: center;
}

.floating-menu-left {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    align-items: flex-start;
}

.floating-menu-left > a,
.floating-menu-left > button,
.floating-menu-left > div,
.floating-menu-right > a,
.floating-menu-right > button,
.floating-menu-right > div {
    filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.18));
}

.btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 50%;
    border: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
    background-color: var(--primary);
    color: var(--white);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-circle:active,
.btn-circle:hover {
    text-decoration: none;
    background-color: var(--primary);
    color: var(--white);
}

.btn-circle > [class*="fa-"] {
    margin-top: 0.07em;
}

.progress-wrap {
    position: relative;
    width: 3rem;
    height: 3rem;
    background: var(--bs-white) !important;
    color: var(--bs-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
    filter: none !important;
    overflow: hidden;
}

.progress-wrap svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: var(--bs-primary);
    stroke-width: 5;
    box-sizing: border-box;
    transition: stroke-dashoffset 10ms linear;
}

.progress-wrap__icon {
    position: relative;
    z-index: 1;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .floating-menu-right {
        bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
        right: max(0.65rem, env(safe-area-inset-right, 0px));
    }
}
