/***************
 Responsive only Paybox Cascading style sheet for payment page
(c) 2018 Paybox by verifone
******************************************/
@import url(https://fonts.googleapis.com/css?family=Open+Sans);

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/

/*
width < 1050px
*/
@media all and (max-width: 1050px) {
    #pbx-main {
        /* margin-left: auto; */
        /* margin-right: auto; */
    }
}

/*
width > 1050px
*/
@media all and (min-width: 1050px) {
    ::-webkit-input-placeholder { /* WebKit browsers */
        /*color: transparent;
        opacity: 0;*/
    }

    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
      /*  color: transparent;/*
    }

    ::-moz-placeholder { /* Mozilla Firefox 19+ */
     /*   color: transparent;*/
    }

    :-ms-input-placeholder { /* Internet Explorer 10+ */
     /*   color: transparent;*/
    }

    ::placeholder {
     /*   color: transparent;*/
    }

    input[type=number]::-webkit-input-placeholder { /* WebKit browsers */
     /*   color: transparent;
        opacity: 0;*/
    }

    input[type=number]:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
     /*   color: transparent;*/
    }

    input[type=number]::-moz-placeholder { /* Mozilla Firefox 19+ */
     /*   color: transparent;*/
    }

    input[type=number]:-ms-input-placeholder { /* Internet Explorer 10+ */
      /*  color: transparent;*/
    }

}
/*
width > 850px
*/
@media all and (min-width: 850px) {
    #pbx-button-validate {
        width: 100%;
    }

    #cvvlabel {
        height: auto;
    }
}

/*
width < 850px
*/
@media all and (max-width: 850px) {
    #pbx-form {
        /* width: 98%; */
        /* max-height: 240px; */
        /* height: auto; */
    }

    #pbx-main {
        /* margin-left: 0; */
        /* margin-right: 0; */
        /* display: block; */
    }

    aside img {
        position: relative;
        left: auto;
        transform: none;
        float: left;
        max-width: 106px;
        top: 35%;
    }

    .pbx-card-button img, .pbx-card-button-div img {
        vertical-align: bottom;
        border: 1px solid #ccc;
        background-color: white;
        max-height: 50px;
        margin: 0;
        height: 98%;
    }

    #pbx-card-display.card {
        height: 30px;
        padding: 0;
        line-height: 30px;
    }

    #pbx-card-display, #pbx-card-buttons {
        width:100%;
        text-align:center;
    }

    h1 {
        font-size: 1.2em;
    }

    #Paiement {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #cardlogo {
        width: 46%;
        height: 45px;
        margin-top: -104px;
        margin-right: 45%;
        position: relative;
        padding-left: 25%;
    }

    #cardlogo img {
        max-height: 30px;
        margin-left: auto;
        margin-right: auto;
    }

    #middle {
        padding-bottom: 5px;
        position: inherit;
        margin-left: 20%;
    }

/*
    #pbx-footer {
        position: absolute;
        right: 5px;
        top: 5px;
        text-align: right;
        margin: 2px;
        width: 75%;
    }

    #pbx-footer-version-mpads, #pbx-footer-3ds-info, #pbx-footer-merchant-nation {
        width: 98%;
    }

    #pbx-footer-version-mpads {
        margin-top: 50px;
    }

    #pbx-footer-merchant-nation {
        bottom: 2%;
    }
*/
    .cert-seal {
        display: none;
    }

    .pbx-transaction-summary/*, #pbx-footer*/ {
        padding: 1% 4%;
    }

    #pbx-container {
        /* margin-top: 8%; */
    }

    #cvvlabel {
        width: 50%;
        min-height: 40px;
    }

    input#CVV {
        width: 94%;
    }
}

/*
width < 480px
*/
@media all and (max-width: 570px) {
    #pbx-container {
        margin-top: 60px;
    }

    #pbx-main {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
/*
    #pbx-footer {
        margin-left: 0;
        margin-right: 0;
        width: 80%;
    }

    #pbx-footer .pci, #pbx-footer .cert-seal {
        display: none;
    }

    #pbx-footer .inlineImg {
        margin-right: 0;
    }
*/
    #pbx-logo {
        position: absolute;
        background: none;
        background-color: #EFEFEF;
        width: 100%;
        margin: 0;
        top: 0;
        left: 0;
        height: 50px;
    }

    #pbx-transaction-summary h1 {
        display: none;
    }

    #pbx-transaction-summary {
        margin: 15px 0 0 0;
    }

    #pbx-transaction-summary div {
        padding: 0;
    }
/*
    #pbx-footer {
        position: absolute;
        top: 0;
        background: none;
        right: 5px;
        max-width: 80%;
        font-size: xx-small;
        border: none;
    }

    #pbx-footer img {
        padding: 6px;
    }
*/
    .payment #pbx-transaction-summary {
        float: none;
        width: 98%;
        height: auto;
        margin: 0;
        text-align: left;
        font-size: small;
    }

    #pbx-transaction-summary .dv {
        margin-left: 0;
        margin-right: 0;
    }

    h1 {
        font-size: 10pt;
    }

    h2 {
        font-size: 8pt;
    }

    #middle {
        margin-left: 0;
        position: inherit;
        float: none;
        width: 100%;
    }

    .pbx-card-label {
        width: 100%;
    }

    img.logoVeriSign {
        left: 15%;
        top: 12px;
    }
}

/*
height < 450px
*/
@media all and (max-height: 450px) {
    #pbx-custom-area, #pbx-language {
        display: none;
    }

    .payment #pbx-transaction-summary div {
        padding: 0;
        font-size: small;
    }

    .payment #pbx-transaction-summary {
        text-align: left;
    }

    #middle {
        margin-top: 0;
    }

    #pbx-form {
        max-height: 200px;
    }

    #cardlogo {
        max-height: 25%;
        margin-top: -135px;
    }
}

/*
height < 370px
*/
@media all and (max-height: 370px) {
    h1#pbx-transaction-summary-header, #pbx-custom-area, #pbx-language {
        display: none;
    }

    .pbx-frame {
        border: none;
    }

    #pbx-mean-payment, #pbx-redirect {
        margin-top: 0;
    }

    #pbx-transaction-summary div.dv {
        padding: 0;
        margin-left: 0;
    }

    .payment #pbx-transaction-summary {
        text-align: left;
    }

    #middle {
        margin-top: 0;
    }

    #cardlogo {
        height: 96%;
    }

    #pbx-form {
        max-height: 150px;
    }
}

/*
height < 540px
*/
@media all and (max-height: 540px) {
    #cgu {
        display: none;
    }

    #pbx-mean-payment h2 {
        display: none;
    }

    #pbx-exchange-rates {
        display: none;
    }

    #pbx-button-validate {
        float: right;
        width: -moz-available;
        margin-right: 1px;
        width: 98%;
    }

    #pbx-mean-payment-content-list {
        font-size: large;
        min-height: 251px;
    }

    label, p.cvv_label {
        display: none;
    }

    #pbx-form-err label{
        display:inherit;
    }

    #cvvlabel {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    #pbx-form {
        max-height: 250px;
    }

    #middle {
        float: left;
        padding-bottom: 0;
    }

    #cardlogo {
        margin-top: -45px;
    }
}

/*
height < 540px
*/
@media all and (max-height: 540px) {
    #pbx-form {
        max-height: 100%;
    }
}

/*
height < 600px
*/
@media all and (max-height: 600px) {
    #pbx-button-validate, #pbx-button-cancel, #pbx-button-back {
        position: relative;
        margin-top: 5px;
        bottom: 0;
        left: 1px;
        right: 0;
    }

    #cardlogo button img {
        margin-top: 0;
    }

    #pbx-button-validate {
        width: 99%;
    }

    #cardlogo {
        margin-top: -130px;
        margin-left: 10px;
    }
/*
    #pbx-footer-version-mpads, #pbx-footer-3ds-info, #pbx-footer-merchant-nation {
        position: relative;
    }
*/	
}

/*
480px < width < 850px
height < 600px
*/
@media all and (min-width: 480px) and (max-width: 850px) and (max-height: 600px) {
    #cardlogo {
        /*margin-top: -104px;*/
        margin-left: 10px;
    }
/*
    #pbx-footer-version-mpads, #pbx-footer-3ds-info, #pbx-footer-merchant-nation {
        bottom: 0;
        position: relative;
    }
	*/
}

/*
width > 850px
height < 600px
*/
@media all and (min-width: 850px) and (max-height: 600px) {
    #cardlogo {
        margin-top: -30px;
    }
}

/*
width < 480px
height < 600px
*/
@media all and (max-width: 480px) and (max-height: 600px) {
    #middle {
        float: none;
    }

    #cardlogo {
        /*margin-top: -104px;*/
    }
}

/*
height < 540px
*/
@media all and (max-height: 540px) {
    #cardlogo {
        margin-top: 0;
    }
}

/*
width < 480px
height > 300px
*/
@media all and (max-width: 480px) and (min-height: 300px) {
    #pbx-button-validate, #pbx-button-cancel, #pbx-button-back {
        margin-top: 5px;
    }

    #pbx-form {
        max-height: 100%;
    }
}

/*
width > 850px
height < 370px
*/
@media all and (min-width: 850px) and (max-height: 370px) {
    #pbx-container {
        padding-top: 0;
    }
}

/*
481px < width < 850px
height < 450px
*/
@media all and (min-width: 481px) and (max-width: 850px) and (max-height: 450px) {
    #pbx-logo {
        height: 20px;
    }
}

/*
width > 850px
height < 450px
*/
@media all and (min-width: 850px) and (max-height: 450px) {
    #cardlogo {
        margin-top: -30px;
    }
}

/*
481px < width < 850px
height < 369px
*/
@media all and (min-width: 481px) and (max-width: 850px) and (max-height: 369px) {
    aside img {
        top: 15%;
    }
}

/*
481px < width < 850px
height > 450px
*/
@media all and (min-width: 481px) and (max-width: 850px) and (min-height: 450px) {
    aside img {
        top: 25%;
    }
}

/*
width < 850px
height < 300px
*/
@media all and (max-width: 850px) and (max-height: 300px) {
    #pbx-container {
        padding-top: 10px;
    }

    aside img {
        top: 15%;
    }

    .cert-seal {
        display: none;
    }
/*
    #pbx-footer {
        width: 75%;
    }
	*/
}

/*
width < 480px
height < 300px
*/
@media all and (max-width: 480px) and (max-height: 300px) {
    aside img {
        top: 50%;
    }
}

/*
width > 850px
*/
@media all and (min-width: 850px) {
    #input_section {
        width: 100%;
        margin: 0;
    }

    #pbx-card-button-main {
        height: 80px;
    }

    #pbx-button-back, #pbx-button-cancel {
        bottom: 0;
    }
}

/*
@media all and (max-width:850px) {
    #pbx-footer-version-mpads, #pbx-footer-3ds-info, #pbx-footer-merchant-nation {
        margin-top: 20px;
        display: -webkit-inline-box;
    }
}
*/
/*
height > 540px
*/
@media all and (min-height: 540px) {
    ::-webkit-input-placeholder { /* WebKit browsers */
        /*color: transparent;
        opacity: 0;*/
    }

    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
       /* color: transparent;*/
    }

    ::-moz-placeholder { /* Mozilla Firefox 19+ */
      /*  color: transparent;*/
    }

    :-ms-input-placeholder { /* Internet Explorer 10+ */
      /*  color: transparent;*/
    }

    ::placeholder {
      /*  color: transparent;*/
    }

    input[type=number]::-webkit-input-placeholder { /* WebKit browsers */
     /*   color: transparent;
        opacity: 0;*/
    }

    input[type=number]:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
      /*  color: transparent;*/
    }

    input[type=number]::-moz-placeholder { /* Mozilla Firefox 19+ */
      /*  color: transparent;*/
    }

    input[type=number]:-ms-input-placeholder { /* Internet Explorer 10+ */
       /* color: transparent;*/
    }
}

/*
height > 540px
*/
@media all and (min-height: 650px) and (max-width:850px) {
    .payment #pbx-transaction-summary h1{
        display: block;
    }
	.payment #pbx-transaction-summary {
		/* margin-top: 70px; */
	}
}

@media (max-height: 540px) and (max-width: 850px) {
    #cardlogo {
        margin-top: -111px;
    }
}

/*
ratio > 16/9
*/@media (min-aspect-ratio: 16/9){
    .payment #pbx-transaction-summary {
        margin-top:10px;
    }
    label, p.cvv_label {
        display: initial;
    }
}
/*
ratio > 16/9
height < 650px
*/
@media (min-aspect-ratio: 16/9) and (max-height: 650px) {
    .payment #pbx-transaction-summary {
        text-align: left;
        float: left;
        position: absolute;
        left: 0;
        width: 25%;
        height: auto;
        font-size: small;
        margin-top: 10%;
    }

    #pbx-mean-payment, #pbx-redirect {
        max-width: 100%;
        height: 90%;
        float: right;
        width: 63%;
        position: absolute;
        right: 5px;
        top: 7px;
    }
/*
    #pbx-footer {
        position: absolute;
        right: 5px;
        top: 5px;
        text-align: right;
        margin: 2px;
        float: left;
        left: 0;
        width: 25%;
        height: auto;
    }

    #pbx-footer img {
        margin-right: 0;
    }

    #pbx-button-validate, #pbx-button-cancel, #pbx-button-back {
        margin-top: 5px;
        left: 1px;
    }

    #pbx-footer-version-mpads, #pbx-footer-3ds-info, #pbx-footer-merchant-nation {
        font-size: 0.5em;
        position: absolute;
        left: 0;
        bottom: 1px;
        width: 35%;
    }

    #pbx-footer-version-mpads{
        bottom: 25%;
    }

    #pbx-footer-merchant-nation{
        bottom: 28%;
    }
*/
    #pbx-logo {
        position: absolute;
        left: 0;
        top: 45px;
        width: 35%;
    }

    #middle {
        width: 100%;
        margin: 0;
    }

    #input_section {
        width: 320px;
        margin: 0 auto;
    }

    #cardlogo {
        right: 5%;
        margin-top: 0;
    }
}

/*
ratio > 16/9
width < 850px
height < 650px
*/
@media (min-aspect-ratio: 16/9) and (max-height: 650px) and (max-width: 850px) {
    #cardlogo {
        right: -145px;
        margin-top: -104px;
    }
}

/*
ratio > 16/9
width < 850px
height < 650px
*/
@media (min-aspect-ratio: 16/9) and (max-height: 250px) {
    .payment #pbx-transaction-summary {
        margin-top: 2%;
    }

    label, p.cvv_label {
        display: none;
    }

}
