@import "helpers";

.botao-primary,
.botao-default{
    display: block;
    outline: 0px;
    width: 100%;
    max-width: 140px;
    padding: 15px;
    margin: 0 auto;
    color: #FFF;
    font: normal 13px $fontRegular;
    text-align: center;
    background-color: $highlight;
    @include transicao(0.4s ease-in-out);

    &.btn-copy-clipboard{
        color: $textoDark;
        border: solid 1px $dark;
        background-color: $light;
        padding: 5px 15px;
        margin-top: 5px;
    }

    &:hover,&:focus{
        color: #FFFFFF !important;
        border-color: $success !important;
        background-color: $success !important;
    }
}

.botao-primary{
    margin-top: 15px;
    margin-bottom: 15px;
}

#btn-ver-pedido,
.btn-ver-pedido{
    margin-top: 20px;
    font-size: 15px;
}

.pedido-fim{    
    .titulo{
        display: block; 
        margin: 0px;
        margin-bottom: 30px;
        margin-top: 30px;
        color: $textoDark;
        font-size: 20px;
        font-family: $fontRegular;
        letter-spacing: 1px;
        text-align: center;

        @media(min-width:767px){
            margin-top: 0px;
        }

        &:before{
            @include sprite();
            display: block;
            content: "";
            margin: 0 auto;
            margin-bottom: 5px;
            width: 27px;
            height: 22px;
            background-position: -288px -409px;
        }

        &.error {
            &:before{
                width: 34px;
                height: 34px;
                background-position: -330px -402px;
            }
        }
    }

    .conteudo{
        display: block;
        width: 96%;
        height: auto;
        padding: 5px;
        margin: 0 auto 30px auto;
        background-color: $light;
        border: solid 1px $borders;

        .grade-pix {
            display: grid;
            grid-template-areas: 
                "qrcode text"
                "qrcode link";
            grid-template-columns: 260px 1fr;
            margin: 0 auto;
            margin-top: 20px;
            max-width: 500px;

            @media(max-width:575px){
                grid-template-areas: "qrcode" "text" "link";
                gap: 10px;
            }
        }
        .qr-code-image {
            grid-area: qrcode;

            img{
                max-width: 240px;
            }
        }
        .qr-code-text {
            grid-area: text;

            .text{
                font-family: $fontRegular;
                font-size: 10px;
                font-style: italic;
                letter-spacing: 1px;
                opacity: 0.7;
                word-break: break-all;
            }
        }
        .qr-code-link {
            grid-area: link;

            a {
                font-style: italic;
                text-decoration: underline;

                &:hover {
                    color: #333;
                }
            }
        }

        @media(min-width:767px){
            padding: 10px;
        }
    }
}

.checkout-titulo{
    &:before{
        width: 27px;
        height: 22px;
        background-position: -288px -409px;
    }
}

.zfrm{
    display: block;
    width: 100%;
    height: auto;
    padding: 10px;
    color: $textoDark;
    font-size: 14px;
    font-family: $fontRegular;
    text-align:center;
}

.fimPedido {
    display: block;
    margin: 40px auto;
    max-width: 600px;
    min-height: 400px;
    color: $textoDark;
    font-size: 14px;
    font-family: $fontRegular;
    white-space: inherit;
    text-align: center;
}

#btn-imprimir-boleto {
    margin: 30px 0 auto;
}

.botao-highlight {
    display: inline-block;
    padding: 7px 15px;
    margin-top: 16px;
    background-color: $dark;
    border: none;
    border-radius: 5px;
    color: $textoLight;
    outline: 0px;
}

.botao-success {
    display: inline-block;
    padding: 7px 15px;
    background-color: $success;
    border: none;
    border-radius: 5px;
    color: $textoLight;
    outline: 0px;
}


.checkout-galaxpay-pix-row {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    .checkout-galaxpay-qr-imagem {
        border: 1px solid #AAAAAA;
        padding: 1px;
        width: 35%;
        img {
            width: auto;
            height: auto;
            max-width: 100%;
        }
        @media(max-width:767px){
            width: 70%;
        }
    }
    .checkout-galaxpay-codigo-qr {
        width: 35%;
        p {
            margin-top: 10px;;
            color: map-get($palletCheckout, textMedium);
            padding: 1px;
            word-break: break-all;
        }
        @media(max-width:767px){
            width: 70%;
        }
    }
}

.btnConfirmar, .btnCopiarCodigo{
    display: block;
    width: 100%;
    max-width: 270px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    color: #FDFDFD;
    font-size: 13px;
    font-family: $fontRegular;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    background-color: $success;
    border: solid 1px $success;
    margin-top: 10px;
    @include transicao(0.3s ease-in-out);

    @media(min-width:992px){
        width: 270px;
    }

    &:hover, &:focus{
        color: $highlight;
        background-color: #FFFFFF;
    }
}

.resgatar-modal-bg {
    background-color: rgba(0, 0, 0, 0.25);
    position: fixed;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
}

.resgatar-modal {
    padding: 20px;
    background-color: white;
    margin: 0 auto;
    width: 400px;
    position: relative;

    @media(max-width: 767px) {
        width: 90%;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
        svg {
            width: 20px;
            height: 20px;
        }
    }

    .modal-topo {
        .modal-titulo {
            font-size: 20px;
            margin-bottom: 10px;
            font-weight: bold;
        }
    }

    .modal-texto {
        margin-bottom: 20px;
    }

    .modal-btn {
        padding: 10px;
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        gap: 10px;
        justify-content: center;
        font-weight: bold;
        transition: 0.3s all;

        &.resgatar-meu-cupom {
            background-color: #35A02B;
            color: white;
            margin-bottom: 10px;
    
            &:hover {
                background-color: #2C8D2C;
            }
        
            svg {
                height: 30px;
                width: 30px;
                fill: white;
            }
        }

        &.nao-obrigado {
            border: 1px solid black;

            &:hover {
                background-color: black;
                color: white;
            }
        }
    }
}

   