/* ==========================================================================
   Sticky Bar
   ========================================================================== */

@keyframes slideUpStickyBar {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.main-stickybar {
    transform: translateX(-50%);
    position: fixed;
    bottom: 0;
    z-index: 1000;
    margin-bottom: 40px;
    left: 50%;
    will-change: transform, opacity;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    gap: 10px;
}

.main-stickybar.sticky-hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateX(-50%) translateY(100%) !important;
}

.main-stickybar a {
    text-decoration: none !important;
}

.main-stickybar .btn-sticky-wrap {
    background-color: rgb(255 255 255 / 40%);
    padding: 5px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    max-width: max-content;
}

.main-stickybar .btn-sticky-bar {
    width: max-content;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    max-height: 40px;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-family: 'GraphikTH-SemiBold', 'Prompt', 'Noto Sans TC', sans-serif;
    gap: 8px;
    color: #000;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-stickybar .btn-sticky-bar:hover {
    transform: scale(1.04);
}

.main-stickybar .btn-sticky-bar-social {
    height: 40px !important;
    width: 40px !important;
    padding: 0;
    cursor: pointer;
}

.main-stickybar .btn-sticky-bar-social i {
    margin: 0;
    font-size: 28px;
    width: 1em;
    height: 1em;
}

/* Hide old sansiri.com floating tools */
.santh-footer-tools,
.santh-fbutton.ss-show,
.sfdc-chat-facebook-float {
    display: none;
}

.main-stickybar {
    animation: none !important;
}

@media (max-width: 1200px) {
    .main-stickybar {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .main-stickybar {
        flex-direction: column-reverse;
        align-items: end;
        gap: 5px;
    }
}
