

.opsim-floating-contact {
    position: fixed;
    bottom: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366; 
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.2s ease, right 0.2s ease, left 0.2s ease;
    text-decoration: none;
}

.opsim-floating-contact:hover {
    transform: scale(1.08);
    color: #fff;
}

.opsim-floating-contact svg {
    width: 60%;
    height: 60%;
    display: block;
}

.opsim-floating-contact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.5;
    animation: opsim-ripple 2s infinite;
}

@keyframes opsim-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(var(--ripple-scale, 1.4));
        opacity: 0;
    }
}

.opsim-floating-contact.pos-right {
    right: 14px;
}

.opsim-floating-contact.pos-left {
    left: 14px;
}

/* Mobile: Sit close to the bottom and side edges with NO awkward empty space */
@media (max-width: 991px) {
    .opsim-floating-contact {
        bottom: 12px;
    }

    .opsim-floating-contact.pos-right {
        right: 12px;
    }

    .opsim-floating-contact.pos-left {
        left: 12px;
    }

    /* If on single product and sticky checkout bar is visible, push above it */
    body.single-product .sticky-checkout-bar.is-visible ~ .opsim-floating-contact,
    body.single-product:has(.sticky-checkout-bar.is-visible) .opsim-floating-contact {
        bottom: 70px;
    }
}
