/*
 * WhatsApp Toolbar Styles
 */

/* Base Button Styling */
.wpwqf-toolbar-button {
    position: fixed;
    z-index: 9999;
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* WhatsApp Icon inside the button (SVG) */
.wpwqf-toolbar-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Hover text container */
.wpwqf-toolbar-text {
    position: absolute;
    background-color: #075e54; /* Darker WhatsApp shade */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none; /* Prevents it from blocking clicks */
}

/* Hover effects */
.wpwqf-toolbar-button:hover {
    background-color: #128c7e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.wpwqf-toolbar-button:hover .wpwqf-toolbar-text {
    opacity: 1;
    visibility: visible;
}

/* --- Position Classes --- */
.wpwqf-toolbar-button.wpwqf-pos-bottom-right {
    right: 20px;
    bottom: 20px;
}
.wpwqf-toolbar-button.wpwqf-pos-bottom-right .wpwqf-toolbar-text {
    top: -30px; /* Position above */
    right: 50%;
    transform: translateX(50%);
}

.wpwqf-toolbar-button.wpwqf-pos-bottom-left {
    left: 20px;
    bottom: 20px;
}
.wpwqf-toolbar-button.wpwqf-pos-bottom-left .wpwqf-toolbar-text {
    top: -30px; /* Position above */
    left: 50%;
    transform: translateX(-50%);
}

.wpwqf-toolbar-button.wpwqf-pos-top-right {
    right: 20px;
    top: 20px;
}
.wpwqf-toolbar-button.wpwqf-pos-top-right .wpwqf-toolbar-text {
    bottom: -30px; /* Position below */
    right: 50%;
    transform: translateX(50%);
}

.wpwqf-toolbar-button.wpwqf-pos-top-left {
    left: 20px;
    top: 20px;
}
.wpwqf-toolbar-button.wpwqf-pos-top-left .wpwqf-toolbar-text {
    bottom: -30px; /* Position below */
    left: 50%;
    transform: translateX(-50%);
}

/* --- Animation Keyframes --- */

/* Pulse Animation */
.wpwqf-anim-pulse {
    animation: wpwqf-pulse 2s infinite;
}
@keyframes wpwqf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Bounce Animation */
.wpwqf-anim-bounce {
    animation: wpwqf-bounce 2s infinite;
}
@keyframes wpwqf-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Shake Animation */
.wpwqf-anim-shake {
    animation: wpwqf-shake 0.82s cubic-bezier(.36,.07,.19,.97) both infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
@keyframes wpwqf-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* No Animation */
.wpwqf-anim-none {
    animation: none;
}