/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


/* 
remove number arrows
 */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#korowa-payment-gateway h3 {
    margin-bottom: 1.3rem;
}

#korowa-payment-gateway {
    width: 100%;
    /* height: 65vh; */
    /* min-height: 550px; */
    position: relative;
    border: 1px solid lightgrey;
}

.korowa-payment-steps.locked *{
    pointer-events: none;
}

.korowa-payment-form-step {
    padding: 30px;
    /* position: absolute; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: none;
}

.korowa-payment-form-step.current-step {
    opacity: 1;
    visibility: visible;
    display: block;
}

.korowa-payment-form-step__question {
    display: flex;
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
    justify-content: space-between;
    align-items: center;
}

.korowa-payment-form-step__question input:not([type="checkbox"]),
.korowa-payment-form-step__question select {
    appearance: none;
    outline: none;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid black;
    width: 200px;
}

.korowa-payment-form-step__question select {
    cursor: pointer;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
        linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

.korowa-payment-form-step__question label {
    margin-right: 15px;
    margin-bottom: 0;
}

.korowa-payment-form-step .btn:disabled{
    opacity: 0.3;
}


/* payment loading animation */

.payment-loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 32px;
}

.payment-loading__wrap p{
    margin: 1rem 0;
    text-align: center;
}

.payment-loading div {
    display: inline-block;
    position: absolute;
    left: 8px;
    top: 0;
    width: 16px;
    height: 32px;
    background: #B11E3B;
}

.payment-loading__wrap{
    position:absolute;
    left: 0;
    top: 0;
    background:#ffffffda;
    width: 100%;
    height: 100%;
    display: none;
    align-items:center;
    justify-content:center;
    flex-direction: column;
}

.payment-loading__wrap.active{
    display: flex;
}

.payment-loading__wrap.active .payment-loading div{
    animation: payment-loading 2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.payment-loading div:nth-child(1) {
    left: 8px;
    animation-delay: -0.5s !important;
}

.payment-loading div:nth-child(2) {
    left: 32px;
    animation-delay: -0.25s !important;;
}

.payment-loading div:nth-child(3) {
    left: 56px;
    animation-delay: 0 !important;;
}

@keyframes payment-loading {
    0% {
        transform: scaleY(2);
    }

    50%,
    100% {
        transform: scaleY(1);
        background: #E8C9C3;
    }
}

/* payment process steps */

.korowa-payment-steps{
    display:flex;
    flex-wrap: no-wrap;
    position: relative;
    overflow: hidden;
}
.korowa-payment-steps__step{
    padding: 10px;
    text-align: center;
    background-color:#E8C9C3;
    color:#000;
    transition: all 0.3s ease;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    width: 100%;
    transform: translateY(0);
    overflow: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
    display: flex;
}
.korowa-payment-steps__step span{
    position: relative;
    z-index: 3;
}

.korowa-payment-steps__step:not(:last-of-type):after{
    content:'';
    position: absolute;
    background-color: #B11E3B;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(-101%);
    transition: all 0.3s ease;
    z-index: 2;
}

.korowa-payment-steps__step:last-of-type{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateY(101%);
    background-color:#B11E3B;
}
.korowa-payment-steps__step.current{
    transform: translateY(0);
    color: #fff;
    cursor: pointer;
}
.korowa-payment-steps__step.current:after{
    transform: translateX(0);
}

