
#payment-wrapper iframe, #payment-form iframe {
    /* This fixes a mobile Safari bug */
    height: 38px !important;
}

#payment-form {
    margin: 0 auto;
}

#payment-wrapper label {
    display: block;
    color: #13395e;
    font-size: 14px;
    font-weight: 500;
    line-height: 10px;
    margin-right: 15px;
    z-index: 9;
    font-weight: 700;
    position: absolute;
    margin-top:10px;
}
#payment-wrapper-mobile label {
    display: block;
    color: #13395e;
    font-size: 14px;
    font-weight: 500;
    line-height: 10px;
    margin-right: 15px;
    z-index: 9;
    font-weight: 700;
    position: absolute;
    margin-top:10px;
}

#payment-form .date-and-code {
    display: flex;
    margin-bottom: 15px;
}
.date-and-code{
    display:flex;
}
.date-and-code > div{
    position:relative
}
.date-and-code > div:nth-child(1) {
    width: 54.715%;
}
.date-and-code > div:nth-child(2) {
    width: 45.719%; /*  */
}

#payment-form .input-container {
    position: relative;
    display: flex;
    /* height: 40px; */
}
.icon-container:last-child {
    right: 30px;
}
.icon-container.payment-method {
    right: 0;
}

.input-container.card-number {
    /* margin-bottom: 8px; */
    margin-bottom: 15px;
    position: relative;
}
.input-container.expiry-date {
    margin-left: 8px;
}

.card-number-frame,
.expiry-date-frame,
.cvv-frame {
    flex: 1 1 auto;
    padding-left: 40px;
}


.icon-container {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 26px;
    margin: 0 7px;
    padding-top: 29px;
}

.icon-container.payment-method {
    transform: translateY(-50%) rotateY(90deg);
    transition: opacity 0.15s ease-out;
    opacity: 0;
    top: 50%;
}

.icon-container.payment-method.show {
    opacity: 1;
    transition: all 0.4s ease-out;
    transform: translateY(-50%) rotateY(0deg);
}

.icon-container.payment-method img {
    width: 100%;
}

[id$="-error"] {
    display: none;
}

.frame {
    opacity: 0;
}

.frame--activated {
    padding: 5px 10px 10px;
    padding-top: 30px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    color: #3A3335;
    min-height: 65px;

    opacity: 1;
}

.frame--activated.frame--focus {
    border: solid 1px #13395e;
    box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.15);
}

.frame--activated.frame--invalid {
    border: solid 1px #d96830;
    box-shadow: 0 2px 5px 0 rgba(217, 104, 48, 0.15);
}

.error-message {
    display: block;
    color: #c9501c;
    font-size: 0.9rem;
    margin: 8px 0 0 1px;
    font-weight: 300;
}

#pay-button {
    border: none;
    border-radius: 3px;
    color: #fff;
    font-weight: 500;
    height: 40px;
    width: 100%;
    background-color: #13395e;
    box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:active {
    background-color: #0b2a49;
    box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:hover {
    background-color: #15406b;
    box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:disabled {
    background-color: #697887;
    box-shadow: none;
}

#pay-button:not(:disabled) {
    cursor: pointer;
}

.success-payment-message {
    color: #13395e;
    line-height: 1.4;
}
.token {
    color: #b35e14;
    font-size: 0.9rem;
    font-family: monospace;
}

/**
IE11-targeted optimisations
 */
_:-ms-fullscreen,
:root .icon-container {
    display: block;
}

_:-ms-fullscreen,
:root .icon-container img {
    top: 50%;
    -ms-transform: translateY(-50%);
    position: absolute;
}

_:-ms-fullscreen,
#icon-card-number,
_:-ms-fullscreen,
#icon-expiry-date,
_:-ms-fullscreen,
#icon-cvv {
    left: 7px;
}

#checkout-frames-card-number::-ms-clear {
    display: none;
}
#payment-wrapper-mobile iframe{
    height: 38px !important;
}