
/* Etusivun kelluva ajanvarauspainike */

#booking-fab {
    position: fixed;
    right: 20px;
    --fab-safe-area: env(safe-area-inset-bottom, 0px);
    --fab-footer-offset: 0px;
    bottom: calc(
        24px + var(--fab-safe-area) + var(--fab-footer-offset)
    );
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: #052e16;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    transition:
        opacity .22s ease,
        transform .22s ease,
        background-color .22s ease,
        visibility .22s ease;
}

#booking-fab i {
    font-size: 23px;
}

#booking-fab:hover {
    background: #166534;
    transform: translateY(-3px);
}

#booking-fab:focus-visible {
    outline: 3px solid #a3e635;
    outline-offset: 4px;
}

#booking-fab[hidden] {
    display: none !important;
}

#booking-fab {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 280ms ease,
        transform 280ms ease,
        visibility 280ms ease,
        background-color 220ms ease;
}

#booking-fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
}

#booking-fab.is-hidden:hover {
    transform: translateY(14px);
}

@media (max-width: 640px) {
    #booking-fab {
        right: 16px;
        bottom: calc(
            18px + var(--fab-safe-area) + var(--fab-footer-offset)
        );
        min-height: 54px;
        padding: 0 19px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #booking-fab {
        transition: none;
    }
}


/* FAB GRADIENT GLOW SLIDE */

#booking-fab {
    isolation: isolate;
    overflow: visible;
    background: linear-gradient(
        110deg,
        #052e16 0%,
        #064e27 40%,
        #166534 50%,
        #064e27 60%,
        #052e16 100%
    );
    background-size: 250% 100%;
    animation: fab-gradient-slide 7s ease-in-out infinite;
}

#booking-fab::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 15%,
        rgba(132, 204, 22, .08) 35%,
        rgba(163, 230, 53, .32) 50%,
        rgba(132, 204, 22, .08) 65%,
        transparent 85%
    );
    background-size: 250% 100%;
    filter: blur(12px);
    opacity: .7;
    pointer-events: none;
    animation: fab-gradient-slide 7s ease-in-out infinite;
}

#booking-fab > * {
    position: relative;
    z-index: 1;
}

@keyframes fab-gradient-slide {
    0%, 100% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #booking-fab,
    #booking-fab::before {
        animation: none;
    }
}
