/* Shiftcode WhatsApp Button — frontend styles */

.scwb-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
}

.scwb-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366; /* official WhatsApp green */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    animation: scwb-pulse 2.4s infinite;
}

.scwb-button:hover,
.scwb-button:focus {
    background-color: #128C7E; /* WhatsApp dark teal */
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    animation: none;
}

.scwb-button svg {
    width: 34px;
    height: 34px;
}

.scwb-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(10px);
    background-color: #ffffff;
    color: #111111;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.scwb-wrapper:hover .scwb-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes scwb-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .scwb-wrapper {
        bottom: 18px;
        right: 18px;
    }
    .scwb-button {
        width: 54px;
        height: 54px;
    }
    .scwb-button svg {
        width: 30px;
        height: 30px;
    }
    .scwb-tooltip {
        display: none; /* tooltips don't make sense on touch */
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scwb-button {
        animation: none;
        transition: none;
    }
}
