/**
 * Frontend styles for WH Sticky WhatsApp Button.
 *
 * @package WH_Sticky_WAButton
 */

.whello-sticky-chat-button {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.whello-sticky-chat-button-right {
    right: 20px;
}

.whello-sticky-chat-button-left {
    left: 20px;
}

.whello-sticky-chat-button-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 20px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    text-decoration: none;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.whello-sticky-chat-button-link:hover {
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    /* Ensure color is preserved on hover */
    color: inherit;
}

.whello-sticky-chat-button-icon {
    margin-right: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.whello-sticky-chat-button-icon-only .whello-sticky-chat-button-icon {
    margin-right: 0;
}

.whello-sticky-chat-button-icon-only .whello-sticky-chat-button-link {
    padding: 12px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.whello-sticky-chat-button-text {
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 767px) {
    .whello-sticky-chat-button {
        bottom: 15px;
    }

    .whello-sticky-chat-button-right {
        right: 15px;
    }

    .whello-sticky-chat-button-left {
        left: 15px;
    }

    .whello-sticky-chat-button-link {
        padding: 8px 16px;
    }

    .whello-sticky-chat-button-icon-only .whello-sticky-chat-button-link {
        padding: 10px;
    }

    .whello-sticky-chat-button-text {
        font-size: 12px;
    }
}