/* Saferpay custom css*/
.saferpay .saferpay-savedcard {
    padding-top: 15px;
}

.saferpay-ajax-loading {
    display: none;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%)
}

.saferpay-ajax-loading > i {
    animation: saferpay-ajax-loading 1s ease-in-out infinite;
    background-color: #4e4e4e;
    border-radius: 4px;
    display: inline-block;
    height: 18px;
    margin-right: 2px;
    width: 4px
}

.saferpay-ajax-loading > i:nth-child(1) {
    animation-delay: 0
}

.saferpay-ajax-loading > i:nth-child(2) {
    animation-delay: 90ms
}

.saferpay-ajax-loading > i:nth-child(3) {
    animation-delay: .18s
}

.saferpay-ajax-loading > i:nth-child(4) {
    animation-delay: .27s
}

@keyframes saferpay-ajax-loading {
    0% {
        transform: scale(1)
    }
    20% {
        transform: scale(1, 2.2)
    }
    40% {
        transform: scale(1)
    }
}

#saferpay-iframe {
    height: 600px;
    width: 100%;
    border: none;
}

/*credit card styling*/

#saferpay-hostedfield {
    height: 640px;
    width: 100%;
}

.saferpay-credit-card-mode {
    float: left;
    width: 100%;
    margin-top: 25px;
}

.saferpay-credit-card-mode .form-group {
    margin-bottom: 20px;
    float: left;
    width: 100%;
    box-sizing: border-box;
}

.saferpay-credit-card-mode .form-group label {
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

.saferpay-credit-card-mode .form-group input.form-control {
    border: 1px solid #ccc;
    height: 45px;
    width: 100%;
    border-radius: 8px;
    padding: 0 8px;
    box-sizing: border-box;
    color: #000;
    font-size: 14px;
    line-height: 45px;
}

.saferpay-credit-card-mode .credit-card-holder {
    width: 50%;
    padding-right: 20px;
}

.saferpay-credit-card-mode .credit-exp {
    width: 25%;
    padding: 0 10px 0 0;
}

.saferpay-credit-card-mode .credit-cvc {
    width: 25%;
    padding: 0 0 0 10px;
}

.text-danger {
    color: #dc3545;
}

#show-error {
    color: #dc3545;
}

.checkout-payment-method .fieldset.saferpay-paymentservice-form .saferpay-alias {
    position: relative;
    float: left;
    width: 100%;
    height: 20px;
    padding-bottom: 10px;
}

.checkout-payment-method .fieldset.saferpay-paymentservice-form .saferpay-alias span {
    float: left;
    line-height: 20px;
}

.checkout-payment-method .fieldset.saferpay-paymentservice-form .saferpay-alias input[type="checkbox"] {
    top: 0px;
    margin-top: 2.5px;
    margin-left: 7px;
    width: 14px;
    height: 14px;
    border: 0;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) {
    .checkout-payment-method .fieldset.saferpay-paymentservice-form span {
        line-height: inherit;
    }

    .checkout-payment-method .fieldset.saferpay-paymentservice-form .saferpay-alias input[type="checkbox"] {
        top: 0px;
        width: 14px;
        height: 14px;
    }
}

@media only screen and (max-width: 1024px) {
    .saferpay-credit-card-mode .form-group .input-box iframe {
        width: 100% !important;
    }
}

@media only screen and (max-width: 560px) {
    .saferpay-credit-card-mode .credit-card-holder {
        width: 100%;
        padding-right: 0px;
    }

    .saferpay-credit-card-mode .credit-exp {
        width: 50%;
        padding: 0 10px 0 0;
        clear: left;
    }

    .saferpay-credit-card-mode .credit-cvc {
        width: 50%;
        padding: 0 0 0 10px;
    }
}
/***** Creditcard Popup ********/

.saferpay-cc .ui-widget-overlay {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
    width: 100%;
    background-color: #f0f0f0;
    opacity: 0.8;
    visibility: hidden;
    transition: 500ms all;
    visibility: visible;
    transition: 1s all;
}
.saferpay-cc .ui-dialog.ui-widget {
    position: absolute!important;
    left: 0!important;
    right: 0;
    width: 100%!important;
    max-width: 430px;
    margin: 2em auto;
    top: 5%!important;
    padding: 1rem 1rem;
    background: #FFF;
    border-radius: .25em .25em .4em .4em;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}
.saferpay-cc .ui-dialog.ui-widget iframe.cc-liability-frame {
    width: 100%;
}
.saferpay-cc .ui-dialog.ui-widget .ui-widget-content {
    height: auto!important;
}
.saferpay-cc .ui-dialog-titlebar {
    display: none;
}
.saferpay-cc .ui-dialog.ui-widget .ui-widget-content iframe.iframe-dialog {
    width: 100%!important;
    border: 0;
}
.paymentservice-customer-index #iframe-wrap{
    height: 720px !important;
}
.paymentservice-customer-index .table-wrapper{
    clear : left;
}
.paymentservice-customer-index .text-center{
    text-align: center;
}
.paymentservice-customer-index .saferpay-credit-card-mode {
    float: left;
    width: 100%;
    margin-top: 5px;
    max-width: 600px;
    margin-bottom: 50px;
}
.paymentservice-customer-index .action.primary {
    float: right;
}
.paymentservice-customer-index .saferpay-credit-card-mode .box-tocart , .paymentservice-customer-index .message.info {
    clear: left;
}

.input-expirymonth , .input-expiryyear {
    margin-bottom: 5px;
}
.form.payments .opc-payment .payment-method .saferpay-ideal-form {
    margin: 10px 0 20px 0;
}
.form.payments .opc-payment .payment-method .saferpay-ideal-form label.label {
    display: block;
    margin: 0 0 5px 0;
}
.form.payments .opc-payment .payment-method .saferpay-ideal-form label.label span:after {
    content: '*';
    color: #e02b27;
    font-size: 1.2rem;
    margin: 0 0 0 5px;
}
.form.payments .opc-payment .payment-method .saferpay-ideal-form .control select.select.input-text {
    height: 37px;
}

form.form.sfp-secure-card-entry {
    float: left;
    width: 100%;
    margin-top: 5px;
    max-width: 600px;
    margin-bottom: 50px;
}
form.form.sfp-secure-card-entry .sfp-card-selector {
    margin-bottom: 20px;
    float: left;
    width: 100%;
    box-sizing: border-box;
}
form.form.sfp-secure-card-entry .sfp-card-selector select {
    border-radius: 8px;
    height: 45px!important;
}
form.form.sfp-secure-card-entry .box-tocart {
    clear: left;
}
form.form.sfp-secure-card-entry .saferpay-credit-card-mode {
    margin-bottom: 30px;
}
.checkout-payment-method .payment-method .payment-info-block .payment-image img {
    max-height: 35px;
}
.account .block-order-details-view .box-order-billing-method .payment-method .payment-image img {
    max-height: 35px;
}
.checkout-payment-method .payment-method.saferpay .payment-method-content .checkout-agreements-block {
    clear: left;
}