.beefup__body {
    overflow: visible !important;
}
/* Widget flotante de WhatsApp propio (reemplaza al plugin whatsapp-chat) */
#ez-wa-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99999;
    font-family: inherit;
}

.ez-wa-launcher {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2db742;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px 12px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.ez-wa-launcher.is-open {
    padding: 14px 20px;
    border-radius: 50%;
}

.ez-wa-launcher.is-open .ez-wa-launcher__label {
    display: none;
}

.ez-wa-launcher__icon {
    font-size: 22px;
    display: flex;
}

.ez-wa-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    width: 350px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ez-wa-panel.is-open {
    display: block;
}

.ez-wa-panel__header {
    background-color: #2db742;
    color: #fff;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ez-wa-panel__header-icon {
    font-size: 28px;
    line-height: 1;
}

.ez-wa-panel__header-text h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #fff;
}

.ez-wa-panel__header-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.95;
}

.ez-wa-panel__response {
    padding: 8px 16px;
    font-size: 12px;
    color: #6b7280;
}

.ez-wa-panel__list {
    max-height: 420px;
    overflow-y: auto;
}

.ez-wa-row {
    border-top: 1px solid #eee;
    padding: 10px 16px;
    border-left: 3px solid #2db742;
}

.ez-wa-row__main {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ez-wa-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ez-wa-row__info {
    flex: 1 1 auto;
    min-width: 0;
}

.ez-wa-row__name {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.ez-wa-row__title {
    font-size: 12px;
    color: #6b7280;
}

.ez-wa-row__toggle {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #2db742;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ez-wa-row.is-open .ez-wa-row__toggle {
    background-color: #2db742;
    color: #fff;
}

.ez-wa-row__capture {
    display: none;
    margin-top: 10px;
}

.ez-wa-row__capture-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;

    .iti {
        width: 100%;

        input {
            width: 100%;
        }
    }
}

.ez-wa-row__phone {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 10px 6px 45px !important;
    border: 1px solid #ced4da;
    border-radius: 4px !important;
    font-size: 14px !important;
    height: 40px !important;
}

.ez-wa-row__submit {
    flex-shrink: 0;
    background-color: #2db742;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    height: 38px;
}

.ez-wa-row__submit:hover {
    background-color: #25a038;
}

.ez-wa-row__error {
    display: none;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
}

@media (max-width: 480px) {
    #ez-wa-widget {
        right: 16px;
        bottom: 16px;
    }

    .ez-wa-panel {
        width: calc(100vw - 32px);
    }
}

.ez-btn__info {
    color: #00a8e9;
    background-color: transparent;
    border: 1px solid #00a8e9;
    text-decoration: none;

    &:hover {
        background-color: #00a8e9;
        color: #fff;
    }
}

/* Popover independiente para botones de WhatsApp sueltos (ej. ficha de curso) */
.ez-popover__whatsapp {
    position: relative;
}

.ez-btn__whatsapp {
    color: #00bb2d;
    background-color: transparent;
    border: 1px solid #00bb2d;
    text-decoration: none;
    position: relative;

    &:hover {
        background-color: #00bb2d;
        color: #fff;
    }
}

.ez-wa-inline-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    width: 270px;
    margin-left: -135px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 14px;
    z-index: 9999;
    text-align: left;
}

.ez-wa-inline-popover__header {
    font-size: 13px;
    font-weight: 600;
    color: #172033;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .ez-wa-inline-popover {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
