/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 760px),
(min-device-width: 368px) and (max-device-width: 1024px) {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    td {
        /* Behave  like a "row" */

        padding-left: 100%;
    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;

    }

}

/* Smartphones (portrait and landscape) ----------- */
/*@media only screen
and (min-device-width : 120px)
and (max-device-width : 480px) {
    body {
        padding: 0;
        margin: 0;
        width: 320px; }
    }*/

/* iPads (portrait and landscape) ----------- */
/*@media only screen and (min-device-width: 168px) and (max-device-width: 1024px) {
    body {
        width: 495px;
    }
}*/

td, th {
    padding: 26%;
    width: 100%;
    display: inline-block;

}

#inputTextform {
    /* width: 100px; */
    height: 36px;
    border-radius: 5px !important;
    position: relative;
    float: left;
    /* margin-left: 8px; */
}

.inputTextPayu {
    width: 300px;
    border-radius: 5px !important;
}

.inputTextDPayu {
    /*width: 100px;*/
    /*height: 22px;*/
    border-radius: 5px !important;
}

.inputTextDEditPayu > .radio {

    height: 16px;

}

.inputTextDEditPayu {
    line-height: 1em;
    background-color: #f9f9f9;
    border: 1px solid #f9f9f9;
    color: #222222;
    font-size: 25px;
    /*margin-left: 8px;*/
}

select.inputTextDEdit {
    padding: 0;
}

select.TIPO_DOCUMENTO {
    width: 550px;
}

/*.tablaDetalleOperacionPayu {

   font-size:1.2em;
    margin-top: 16px;
    border-radius: 25px;*/

}
.tablaDetalleOperacionPayu td {
    padding: 25px;
    border: none !important;
}

.tablaDetalleOperacionPayu {
    border-radius: 25px;
    font-size: 1.2em;
    margin: 0 auto;
    width: 90%;

}

#tablaDetallePayu td {

    padding: 1px;

}

.titAgrupacionDetallePay {

    font-weight: bold;
    font-size: 6em;
}

.inputTextDEditPayu {
    width: 100%;
    float: left;
    height: 42px;
    line-height: 32px;
    font-size: 1.1em;
    padding: 0 10px;
    border-color: #E4E7EB;

}

#CODIGO_SEGURIDAD {
    width: 61%;
    margin-right: 20px;

}

/* @media screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {
    .tablaDetalleOperacionPayu {
        width: 93%;
    } <----
    
    .tablaDetalleOperacionPayu tr:not(:first-of-type) td:first-child,
    .tablaDetalleOperacionPayu tr:not(:first-of-type) td:last-child
    {
        height: 0;
    }
    */
.tablaDetalleOperacionPayu #boton {
    margin: 0 auto;
    width: 50%;
}

input[type="radio"]:checkbox {
    margin-left: 125px;
    height: 20px;
}

#formpagos {
    margin: 4%;
    border: 1px solid;
    border-color: #dfdfdf;
    padding: 1%;
}

/** **/
body {
    padding: 0;
    width: 100%;
}

/*img {
    width: 0;
}*/

table {
    margin: 0;
}

.cards {
    text-align: center;
    width: 25%;
}

input[type="radio"].inputTextDEditPayu {
    height: 15px;
    margin-bottom: 5px;
    background-color: #fff;
    border: 0px solid #f9f9f9;
}

input[type="text"], select {
    border: 1px solid #0554AA !important;
}

@media screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {
    #titulo {
        margin-left: 0;
        margin-bottom: 0;
        text-align: justify;
    }

    #formpagos {
        margin: 0;
        padding: 4%;
    }

    .tablaDetalleOperacionPayu {
        margin-bottom: 0;
        width: 100%;
    }

    body > p {
        margin: 0;
        padding: 0;
    }

    td {
        display: inline-block;
        width: 100%;
    }

    .titAgrupacionDetalle {
        text-align: justify;
    }

    .btn.btn-primary2, .btn.btn-primary3 {
        margin-top: -7px;
    }

    /* Credito */
    .cards {
        width: 25%;
    }

    #fecha > div:first-child p {
        padding: 0;
    }

    .form-venci {
        width: 120px;
    }

    .confirmOperacion .btn.btn-primary2 {
        margin-top: 10px;
    }

    #codigoCVV {
        width: 100px;
    }

    /** Debito **/
    #formpagos div:first-child img {
        width: 70px;
    }

    #formpagos div:first-child p {
        margin: 0;
        margin-top: 24px;
    }

    .tablaDetalleOperacion {
        padding: 0;
    }
}

@media screen and (min-width: 360px) and (max-width: 640px) and (orientation: portrait) {
    .tablaDetalleOperacion {
        padding: 0;
        border-radius: 3px;
    }

    /** Debito **/
    #formpagos div:first-child p {
        margin-right: 10px;
        margin-top: 27px;
        padding: 0;
    }

    #formpagos div:first-child img {
        width: 75px;
    }
}

@media screen and (min-width: 180px) and (orientation: landscape) {
    #titulo {
        margin-left: 0;
        margin-bottom: 0;
    }

    #formpagos {
        margin: 0;
        padding: 4%;
    }

    .tablaDetalleOperacionPayu {
        margin-bottom: 0;
        width: 100%;
    }

    .titAgrupacionDetalle {
        margin-left: 0;
    }

    tr:first-child {
        height: 45px !important;
    }

    tr:first-child td {
        top: -95px;
    }

    .tablaDetalleOperacionPayu td {
        display: inline-block;
        width: 100%;
    }

    .btn.btn-primary2, .btn.btn-primary3 {
        margin-top: -5px;
        max-width: 23em;
    }

    /* Credito */
    .cards {
        width: 25%;
    }

    #fecha > div:first-child p {
        margin: 0;
        padding: 0;
    }

    #fecha {
        height: 50px;
    }

    .form-venci {
        width: 120px;
    }

    #codigoCVV {
        width: 100px;
    }

    /** Debito **/
    #formpagos div:first-child p {
        margin: 35px;
        margin-right: 10px;
        margin-left: 0;
    }

    #formpagos div:first-child img {
        width: 93px;
    }
}

@media screen and (min-width: 600px) and (orientation: portrait) {
    #formpagos {
        margin: 0;
        padding: 4%;
    }

    td {
        display: inline-block;
        width: 100%;
    }

    .titAgrupacionDetalle {
        margin-left: 0;
    }

    /* Credito */
    .cards {
        width: 20%;
    }

    .cards img {
        width: 50%;
    }

    #fecha > div:first-child p {
        padding: 0;
    }

    .form-venci {
        width: 120px;
    }

    /** Botones **/
    .tablaDetalleOperacionPayu {
        width: 100%;
    }

    .btn.btn-primary2, .btn.btn-primary3 {
        margin-top: -5px;
        max-width: 27em;
    }
}

@media screen and (min-width: 640px) and (max-width: 768px) and (orientation: landscape) {
    body > p {
        margin: 0;
        padding: 0;
    }

    .tablaDetalleOperacion {
        padding: 0;
    }

    td {
        width: 100%;
    }

    .tablaDetalleOperacionPayu img {
        width: 20%;
    }

    /*tr:first-child {
        height: 180px !important;
    }*/
    tr:first-child td {
        top: 0;
    }

    .btn.btn-primary2 {
        max-width: 29em;
        margin-top: 26px;
    }

    .btn.btn-primary3 {
        margin-top: -5px;
        max-width: 29em;
    }
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    td {
        width: 100%;
    }

    /* Credito */
    .cards {
        width: 15%;
    }

    .cards img {
        width: 50%;
    }

    .form-venci {
        width: 130px;
    }

    /** Debito **/
    #formpagos div:first-child p {
        margin: 35px;
        margin-right: 10px;
        margin-left: 2%;
        float: left;
    }

    /** Botones **/
    .tablaDetalleOperacionPayu {
        padding: 15px;
    }

    .btn.btn-primary2, .btn.btn-primary3 {
        margin-top: 20px;
        max-width: 45em;
    }
}

@media only screen and (min-width: 1224px) {
    .tablaDetalleOperacionPayu td {
        display: table-cell;
        width: 50%;
    }

    #tablaDetalle td:first-child {
        vertical-align: middle;
    }

    /** Credito **/
    input[type="radio"].inputTextDEditPayu {
        height: 20px;
        margin-bottom: 5px;
    }

    .cards img {
        width: auto;
    }

    /** Debito **/
    #formpagos div:first-child p {
        margin-left: 0;
    }
}

#titulo {
    margin-left: 9%;
    margin-bottom: -4%;

}