/* ==========================================================================
   Green WhatsApp chat button, shown in every page header
   ========================================================================== */

.whatsapp-button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.40);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;   /* stays tappable inside the product page's floating header */
}

.whatsapp-button:hover {
    background: #1EBE5A;
    color: #FFFFFF;
}

/*
 * The official WhatsApp glyph (public/images/whatsapp.svg) is used as a mask,
 * so it always shows in white whatever colour the file is.
 */
.whatsapp-glyph {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url('../../../images/whatsapp.svg') center / contain no-repeat;
    mask: url('../../../images/whatsapp.svg') center / contain no-repeat;
}

/* Pushed to the right end of a header row (e.g. the cart page) */
.whatsapp-button--end {
    margin-left: auto;
}
