/* Menguard WhatsApp 1.0.0 */

.menguard-whatsapp {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 99999;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.menguard-whatsapp *,
.menguard-whatsapp *::before,
.menguard-whatsapp *::after {
    box-sizing: border-box;
}

.menguard-whatsapp-trigger {
    display: block;
    margin-left: auto;
    padding: 12px 20px;
    border: 0;
    border-radius: 30px;
    background: #1fc563;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.menguard-whatsapp-trigger:hover,
.menguard-whatsapp-trigger:focus {
    background: #17ac54;
    color: #fff;
}

.menguard-whatsapp-panel {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 24px);
    margin-bottom: 12px;
    padding-top: 32px;
}

.menguard-whatsapp-panel[hidden] {
    display: none !important;
}

.menguard-whatsapp-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1fc563;
    color: #fff;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
}

.menguard-whatsapp-message {
    margin-top: 8px;
    padding: 24px 18px;
    border-radius: 10px 10px 0 10px;
    background: #1fc563;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
}

.menguard-whatsapp-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}

.menguard-whatsapp-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    outline-offset: 2px;
    background: transparent;
    color: #333;
    font-size: 14px;
}

.menguard-whatsapp-form button {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #1fc563;
    font-size: 23px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .menguard-whatsapp-panel {
        width: 300px;
    }

    .menguard-whatsapp-trigger {
        padding: 11px 16px;
    }
}

/* Alineación del ícono y texto del botón */
.menguard-whatsapp-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.menguard-whatsapp-trigger svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Contenedor del mensaje y avatar */
.menguard-whatsapp-message-wrap {
    position: relative;
    margin-left: 24px;
}

/* Avatar circular superpuesto al mensaje */
.menguard-whatsapp-avatar {
    position: absolute;
    left: -28px;
    bottom: -26px;

    width: 52px;
    height: 52px;

    border-radius: 50%;
    background: #f5e3ba;

    object-fit: cover;
    z-index: 2;
}

/* Espacio inferior para el avatar */
.menguard-whatsapp-message-wrap {
    margin-bottom: 20px;
}

/* Ajuste del mensaje */
.menguard-whatsapp-message {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}