
#cont-compra{
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 52;
}

.tachita{
    font-size: 1.5rem;
}

.tachita:hover{
    cursor: pointer;
    color: var(--oro);
}

#compra-fill{
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
}

#compra{
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
    text-align: center;
    border-radius: 10px;
    padding: 1rem 0;
    height: auto;
    min-height: 100vh;
    width: 40%;
    background-color: #fff;
    border: 1px solid var(--verde_oscuro);
    color: #000;
    padding-bottom: 230px;
    .btn{
        background-color: #000;
        color: #fff;
        width: 90%;
        font-weight: 600;
        padding: 1rem 0;
        text-decoration: none;
    }
}

#contCompraItems{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.car-head{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.carItem{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 1rem 0;
    height: auto;
    width: 92%;
}

.carline{
    margin: 1rem 0;
    height: 1px;
    width: 90%;
    background-color: var(--gris);
    flex-shrink: 0;
}

.carImg{
    height: 100px;
    width: 100px;
    border: 1px solid;
    flex-shrink: 0;
    background-position: center;
    background-size: cover;
}

.carData{
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding: 0 2rem;
    text-align: start;
    text-wrap: pretty;
    box-sizing: border-box;
    flex-grow: 0;
}

.carTitle{
    font-weight: 600;
    margin-bottom: 0px;
}

.carPrice{
    flex-shrink: 0;
}

.carStock{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: 30px;
    width: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#carContBtns{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

#fullBtn{
    font-size: 0.9rem;
    width: 80%;
    margin-bottom: 32px;
}

/* Firefox */
/* input[type=number] {
  -moz-appearance: textfield;
} */

.carStock input{
    padding: 0;
    height: 100%;
    width: 20%;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
    border: 1px solid var(--gris_muy_claro);
}

.carStock input:focus{
    outline: none;
    border: 1px solid #D0C9AA;
}

.carStock button{
    padding: 0 1rem;
    height: 100%;
    background-color: black;
    border: 1px solid black;
    color: var(--blanco);
}

.carStock button:hover{
    background-color: #fff;
    color: #000;
    cursor: pointer;
}

#compra-head h2{
    font-weight: 600;
}

#paypal-buttons-container{

    width: 50%;
    height: 50%;
    background-color: var(--color0);

}

#paypal-buttons-container h2{

    font-weight: 500;
    width: 100%;
    text-align: center;

}

@media(max-width:808px){

    #paypal-buttons-container{

        width: 95%;

    }

}


@media(max-width:808px){
    #cont-info{
        flex-direction: column;
    }
    #text-info{
        width: 95%;
        max-width: 90%;
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #compra{
        width: 95%;
    }

    #compra-fill{
        width: 5%;
    }

    .carData{
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .carData>:nth-child(2){
        font-size: 0.7rem;
    }

    .carPrice{
        font-size: 0.8rem;
    }

    .carStock button{
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }

    #btn-buy{
        padding: 1rem 0.5rem;
    }

    #cont-details{
        text-align: center;
    }

    #cont-details h2{
        font-size: 1.1rem;
    }

}

