/* Below the mobile nav overlay (z-index 200), above page content */
.floating_button {
    position: fixed;
    right: 32px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 24px;
    background: var(--color_green);
    color: #fff;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: opacity .3s ease-out, transform .3s ease-out, visibility .3s, background .13s ease-out;
}

/* Hidden state is only applied once JS is running, so the button stays visible without JS */
.floating_button.scroll_reveal:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
}

.floating_button:hover,
.floating_button:focus-visible {
    background: #37460d;
    color: #fff;
}

.floating_button.icon_only {
    width: 56px;
    padding: 0;
    justify-content: center;
}

.floating_button_icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating_button_icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@media (max-width: 600px) {
    .floating_button {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        min-height: 48px;
        padding: 10px 24px;
        font-size: 14px;
    }

    .floating_button.icon_only {
        width: 48px;
        padding: 0;
    }
}
