﻿/* ========================================================= */
/* FUNDO DO MODAL                                            */
/* ========================================================= */

.pix-modal-background {
    background-color: #000000;
    opacity: 0.45;
    filter: alpha(opacity=45);
}


/* ========================================================= */
/* CONTAINER PRINCIPAL                                       */
/* ========================================================= */

.pix-modal {
    width: 650px;
    min-width: 520px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 26px;
    box-sizing: border-box;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.30);
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
}


/* ========================================================= */
/* CABEÇALHO                                                 */
/* ========================================================= */

.pix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}


.pix-modal-titulo {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
}


.pix-modal-fechar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #888888;
    text-decoration: none;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}


    .pix-modal-fechar:hover {
        color: #333333;
        background-color: #f2f2f2;
        text-decoration: none;
    }


/* ========================================================= */
/* INSTRUÇÃO                                                  */
/* ========================================================= */

.pix-modal-instrucao {
    font-size: 14px;
    line-height: 1.5;
    color: #222222;
    margin-bottom: 20px;
}


/* ========================================================= */
/* QR CODE + DESCRIÇÃO                                       */
/* ========================================================= */

.pix-conteudo-principal {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}


/* QR CODE */

.pix-qrcode-area {
    width: 225px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.pix-qrcode {
    width: 215px;
    height: 215px;
    object-fit: contain;
    display: block;
}


/* ========================================================= */
/* DESCRIÇÃO DO DÉBITO                                       */
/* ========================================================= */

.pix-descricao {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background-color: #edf6ff;
    border-radius: 9px;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.9;
    color: #111111;
    word-break: normal;
    overflow-wrap: normal;
    overflow-x: hidden;
}

    .pix-descricao strong {
        font-weight: 700;
    }


/* ========================================================= */
/* SEPARADOR "OU"                                            */
/* ========================================================= */

.pix-separador {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}


.pix-linha {
    flex: 1;
    height: 1px;
    background-color: #dddddd;
}


.pix-ou {
    color: #888888;
    font-size: 14px;
    font-weight: 600;
}


/* ========================================================= */
/* COPIA E COLA                                              */
/* ========================================================= */

.pix-copia-cola {
    width: 100%;
}


.pix-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}


/* ========================================================= */
/* CAMPO DO CÓDIGO                                           */
/* ========================================================= */

.pix-campo-codigo {
    display: flex;
    width: 100%;
    height: 40px;
}


.pix-input-codigo {
    flex: 1;
    min-width: 0;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #aaaaaa;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    padding: 7px 9px;
    background-color: #ffffff;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    outline: none;
}


    .pix-input-codigo:focus {
        border-color: #1261a0;
    }


/* ========================================================= */
/* BOTÃO ÍCONE COPIAR                                        */
/* ========================================================= */

.pix-botao-icone {
    width: 45px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    color: #07529b;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}


    .pix-botao-icone:hover {
        background-color: #f2f2f2;
    }


.pix-icone-copiar {
    font-size: 20px;
}


/* ========================================================= */
/* BOTÃO COPIAR                                              */
/* ========================================================= */

.pix-botao-copiar {
    display: block;
    margin-left: auto;
    margin-top: 7px;
    padding: 10px 28px;
    border: 0;
    border-radius: 5px;
    background-color: #004b91;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


    .pix-botao-copiar:hover {
        background-color: #003b72;
    }


    .pix-botao-copiar:active {
        transform: translateY(1px);
    }


/* ========================================================= */
/* MENSAGEM DE COPIADO                                       */
/* ========================================================= */

.pix-mensagem-copiado {
    display: none;
    margin-top: 8px;
    text-align: right;
    color: #168342;
    font-size: 12px;
    font-weight: 700;
}


/* ========================================================= */
/* OBSERVAÇÃO                                                */
/* ========================================================= */

.pix-observacao {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #07529b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}


.pix-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #1688d8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}


/* ========================================================= */
/* RESPONSIVO - TABLET                                      */
/* ========================================================= */

@media screen and (max-width: 600px) {

    .pix-modal {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
        border-radius: 8px;
    }


    .pix-modal-titulo {
        font-size: 21px;
    }


    .pix-conteudo-principal {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    .pix-qrcode-area {
        width: 100%;
    }


    .pix-qrcode {
        width: 200px;
        height: 200px;
    }


    .pix-descricao {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        background-color: #edf6ff;
        border-radius: 9px;
        padding: 14px 16px;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.9;
        color: #111111;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        overflow-x: hidden;
    }
}


/* ========================================================= */
/* RESPONSIVO - CELULAR                                     */
/* ========================================================= */

@media screen and (max-width: 600px) {

    .pix-modal {
        width: calc(100vw - 20px);
        min-width: 0;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
    }

    .pix-conteudo-principal {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .pix-qrcode-area {
        width: 100%;
        min-width: 0;
    }

    .pix-qrcode {
        width: 200px;
        height: 200px;
    }

    .pix-descricao {
        width: 100%;
    }
}

.btn-pix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #119e4b;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

    .btn-pix:hover {
        background-color: #0f8f43;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(17, 158, 75, .25);
    }

    .btn-pix:active {
        transform: translateY(1px);
    }

    .btn-pix .ico-pix {
        width: 24px;
        height: 24px;
        display: block;
    }