/* ===========================
   BOTÃO WHATSAPP
=========================== */

.whatsapp-button {
    position: fixed;
    right: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: none;
    border-radius: 50px;

    padding: 14px 20px;

    background: #25d366;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

    z-index: 9998;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.whatsapp-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    font-size: 24px;
}

.whatsapp-text {
    white-space: nowrap;
}


/* ===========================
   MODAL
=========================== */

.whatsapp-modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    z-index: 9999;
}

.whatsapp-modal.active {
    display: flex;
}


/* ===========================
   CONTEÚDO
=========================== */

.whatsapp-modal-content {
    position: relative;

    width: 100%;
    max-width: 420px;

    background: #fff;

    border-radius: 16px;

    padding: 30px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    animation: whatsappModalAnimation 0.2s ease;
}

@keyframes whatsappModalAnimation {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ===========================
   FECHAR
=========================== */

.whatsapp-modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    font-size: 30px;

    line-height: 30px;

    color: #666;

    cursor: pointer;
}

.whatsapp-modal-close:hover {
    color: #000;
}


/* ===========================
   HEADER
=========================== */

.whatsapp-modal-header h2 {
    margin: 0 30px 10px;

    font-size: 22px;

    color: #222;
}

.whatsapp-modal-header p {
    margin: 0;

    color: #666;

    font-size: 14px;

    line-height: 1.5;
}


/* ===========================
   QR CODE
=========================== */

.whatsapp-qr-container {
    display: flex;

    justify-content: center;
    align-items: center;

    margin: 25px auto 10px;

    width: 250px;
    height: 250px;

    background: #fff;
}

.whatsapp-qr-container img {
    display: block;

    width: 250px;
    height: 250px;

    object-fit: contain;
}

.whatsapp-qr-message {
    margin: 10px 0 20px;

    color: #666;

    font-size: 13px;
}


/* ===========================
   SEPARADOR
=========================== */

.whatsapp-divider {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 20px 0;
}

.whatsapp-divider::before,
.whatsapp-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #ddd;
}

.whatsapp-divider span {
    color: #888;

    font-size: 13px;
}


/* ===========================
   AÇÕES
=========================== */

.whatsapp-actions {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.whatsapp-web-button,
.whatsapp-copy-button {

    width: 100%;

    box-sizing: border-box;

    border-radius: 8px;

    padding: 12px 15px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition: 0.2s;
}


/* WhatsApp Web */

.whatsapp-web-button {
    background: #25d366;

    color: #fff;
}

.whatsapp-web-button:hover {
    background: #1ebe5d;
}


/* Copiar */

.whatsapp-copy-button {
    border: 1px solid #ddd;

    background: #fff;

    color: #333;
}

.whatsapp-copy-button:hover {
    background: #f5f5f5;
}


/* ===========================
   MENSAGEM COPIADO
=========================== */

.whatsapp-copy-message {
    min-height: 18px;

    margin: 10px 0 0;

    font-size: 13px;

    color: #25a55a;
}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 600px) {

    .whatsapp-button {
        right: 15px;
        bottom: 15px;

        width: 55px;
        height: 55px;

        padding: 0;

        justify-content: center;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-icon {
        font-size: 25px;
    }

    .whatsapp-modal {
        padding: 15px;
    }

    .whatsapp-modal-content {
        padding: 25px 20px;

        max-width: 100%;

        border-radius: 14px;
    }

    .whatsapp-modal-header h2 {
        font-size: 19px;

        margin-left: 20px;
        margin-right: 20px;
    }

    .whatsapp-qr-container,
    .whatsapp-qr-container img {
        width: 220px;
        height: 220px;
    }

}