/**
 * WhatsApp Bubble Styles
 */

/* Wrapper — fixed container for bubble + tooltip */
.ebo-whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bubble */
.ebo-whatsapp-bubble {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
}

.ebo-whatsapp-bubble.visible {
    opacity: 1;
    visibility: visible;
}

.ebo-whatsapp-bubble:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ebo-whatsapp-bubble:active {
    transform: scale(0.95);
}

.ebo-whatsapp-bubble svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

/* Badge de notificación */
.ebo-whatsapp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background-color: #FF3333;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ebo-whatsapp-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* Tooltip */
.ebo-whatsapp-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    position: relative;
}

/* Flecha del tooltip apuntando a la derecha */
.ebo-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #ffffff;
}

.ebo-whatsapp-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.ebo-whatsapp-tooltip-text {
    font-family: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2D2D2D;
    cursor: pointer;
    line-height: 1.3;
}

.ebo-whatsapp-tooltip-text:hover {
    text-decoration: underline;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .ebo-whatsapp-wrapper {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }

    .ebo-whatsapp-bubble {
        width: 56px;
        height: 56px;
    }

    .ebo-whatsapp-bubble svg {
        width: 28px;
        height: 28px;
    }

    .ebo-whatsapp-tooltip {
        max-width: 200px;
        white-space: normal;
        border-radius: 16px;
        padding: 8px 12px;
    }

    .ebo-whatsapp-tooltip-text {
        font-size: 13px;
    }
}
