/* Premium Messenger Widget Styles */
.messenger-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2100;
}

.messenger-btn {
    width: 60px;
    height: 60px;
    background: #0056d2;
    /* Brand Blue */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.messenger-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: #0044a5;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.messenger-btn .m-close {
    display: none;
    font-size: 32px;
    line-height: 0;
    font-weight: 300;
    margin-top: -4px;
    /* Optical centering for the times character */
}

.messenger-widget.active .m-icon-msg {
    display: none;
}

.messenger-widget.active .m-close {
    display: block;
}

.messenger-options {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.messenger-widget.active .messenger-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.m-opt {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: transparent;
    padding: 0;
    border: none;
}

.m-opt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: none;
}

.messenger-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border: none;
    filter: brightness(0) invert(1);
    /* Ensure the icon is pure white */
}

.m-opt:hover {
    transform: translateX(-8px) scale(1.08);
}

.m-opt:hover img {
    transform: scale(1.05);
}

/* Gradients removed to avoid 'strange border' with user PNGs */

@media (max-width: 768px) {
    .messenger-widget {
        bottom: 25px;
        right: 25px;
    }

    .messenger-btn {
        width: 55px;
        height: 55px;
    }
}