/* Downloaded from https://payway.ababank.com/checkout-popup.html?file=css */
/* Uploaded on June 19, 2015 02:05PM */

#aba_main_modal{
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;
    z-index: 100000000;
}

.aba-iframe{
    border: none;
    width: 100%;
    height: 100%;
    overflow-x: no-display;
    overflow-y: no-content;
    border-radius: 5px;
    max-height: 633px;
    background: #FFF;
    -webkit-overflow-scrolling:touch;
}
.aba-iframe.add-card{
    max-height: 540px;
}
#aba_merchant_request{
    display: none;
}
/* The Modal (background) */

.aba-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.aba-modal-content {
    margin: 0 auto; /* 15% from the top and centered */
    margin-top: 20px;
    width: 780px; /* Could be more or less, depending on screen size */
    position: relative;
    height: 100%;
    border-radius: 5px;
}

.aba-modal-content.add-card {
    width: 480px; /* Could be more or less, depending on screen size */
    max-height: 500px;
}

/* The Close Button */
.aba-close {
    color: #fff;
    cursor: pointer;
    float: right;
    font-family: arial;
    font-size: 28px;
    margin-right: -37px;
    position: absolute;
    right: 0;
    top: -11px;
}
.aba-close img{
    width: 22px;
    height: 22px;
}

.aba-loader.add-card {
    top: 280px;
}

.aba-loader {
    animation: load 1s linear infinite;
    border: .5em solid #045B83;
    border-radius: 50%;
    height: 48px;
    left: 50%;
    margin: -1.5em;
    position: absolute;
    top: 320px;
    width: 48px;
    z-index: 1001;
}
.aba-loader:after {
    border: .6em solid #00CDD4;
    border-radius: 50%;
    bottom: 4px;
    content: '';
    left: 4px;
    position: absolute;
    right: 4px;
    top: 4px;
}
.aba-loader:before {
    border-bottom: 1em solid #00CDD4;
    border-left: .7em solid transparent;
    border-right: .7em solid transparent;
    content: '';
    height: 0;
    left: 50%;
    margin-left: -.7em;
    position: absolute;
    top: -.25em;
    width: 0;
}
@keyframes load {
    100% { transform: rotate(360deg); }
}




@media only screen and (max-width: 1024px) {
    .aba-iframe{
        height: 100%;
    }
}


@media only screen and (max-width: 860px) {
    #aba_main_modal{
        overflow-y: scroll;
    }
    .aba-modal {
        padding-top: 30px;
    }

    .aba-modal-content {
        width: 773px;
    }
}

@media only screen and (max-width: 768px) {
    .aba-close {
        margin-right: 0;
        right: 6px;
        top: -45px;
    }
}


@media only screen and (max-width: 738px) {
    .aba-close {
        right: 0;
    }
    .aba-modal-content{
        width: 100%;
        height: 94%;
    }
    .aba-iframe{
        height: 100%;
    }

    .aba-modal {
        padding: 30px 12px 0;
    }
}


@media only screen and (max-width: 420px) {
/* Modal Content/Box */
    .aba-modal-content {
        width: 100%; /* Could be more or less, depending on screen size */
        height: 96%;
    }
}

@media only screen and (max-width: 380px){
    div.box-container div.box-body h1 {
        font-size: 18px;
        margin-bottom: -4px;
    }

    .aba-iframe{
        border: none;
    }
}