/* ==========================================================
   WhatsApp floating block
   ========================================================== */

/* Base container */
.ets_wa_whatsapp_block {
    position: fixed !important;
    bottom: 0;
    right: 0;
    z-index: 10000;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    max-width: none !important;
    margin: 5px;
    text-align: center;
}

/* Left positions override */
.ets_wa_whatsapp_block.left_bottom,
.ets_wa_whatsapp_block.left_center,
.ets_wa_whatsapp_block.left_top {
    right: auto !important;
    left: 0;
}

/* Main WhatsApp button */
.ets_wa_whatsapp_block > a {
    display: inline-block;
    width: auto;
    position: relative;
}

/* WhatsApp icon */
.ets_wa_whatsapp_block > a img {
    width: 50px;
    height: auto;
    display: block;
}

/* Title / text */
.ets_wa_whatsapp_block .ets_wa_title {
    background: #1da110;
    color: #ffffff;
    padding: 4px 10px;
    margin-top: 6px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
}

/* ==========================================================
   Close button (X)
   ========================================================== */

#closeIcon {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 10001;
    display: block;
}

#closeIcon img.close-icon {
    width: 14px;
    height: auto;
    display: block;
    margin: 0;
    cursor: pointer;
}

/* ==========================================================
   Bootstrap protection
   ========================================================== */

/* Prevent Bootstrap grid from affecting the block */
.row > .ets_wa_whatsapp_block {
    width: auto !important;
    max-width: none !important;
}


@media (max-width: 767px) {
    .ets_wa_whatsapp_block {
        display: none !important;
    }
}
