/* wcemi_ Animations */
.wcemi-spinner {
    width: 40px;
    height: 40px;
    margin: 100px auto;
    background-color: #333;
  
    border-radius: 100%;  
    -webkit-animation: wcemi-sk-scaleout 1.0s infinite ease-in-out;
    animation: wcemi-sk-scaleout 1.0s infinite ease-in-out;
  }
  
  @-webkit-keyframes wcemi-sk-scaleout {
    0% { -webkit-transform: scale(0) }
    100% {
      -webkit-transform: scale(1.0);
      opacity: 0;
    }
  }
  
  @keyframes wcemi-sk-scaleout {
    0% { 
      -webkit-transform: scale(0);
      transform: scale(0);
    } 100% {
      -webkit-transform: scale(1.0);
      transform: scale(1.0);
      opacity: 0;
    }
  }

/* Popup related CSS */
.wcemi-overlay {
    background-color: rgba(0,0,0,.6);
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.wcemi {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    min-width: 700px;
    max-width: 840px;
    min-height: 100px;
    height: auto;
    background-color: #fff;
    z-index: 999999;
    border-radius: 5px;
    display: none;
}

.wcemi-header {
    display: flex;
    align-items: center;
    padding: 0 5px 0 25px;
    border-bottom: 1px solid #f0f0f0;
}

.wcemi-header__col1 {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.wcemi-header--close {
    width: 30px;
    font-size: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 25px;
    padding: 15px 25px;
    cursor: pointer;
}

.wcemi-header__title {
    font-size: 21px;
    color: #222;
}

.wcemi-body {
    padding: 10px 25px 5px 25px;
}

.wcemi-method {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.wcemi-method__item {
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 5px;
    border-radius: 4px;
    transition: background-color 200ms ease-in-out;
    user-select: none;
}

.wcemi-emis {
    display: none;
    margin-top: 10px;
}

.wcemi-emis.wcemi-emis--selected {
    display: flex;
}

.wcemi-bank {
    width: 30%;
    height: 280px;
    padding-right: 15px;
    overflow-x: auto;
}

.wcemi-bank__item {
    cursor: pointer;
    font-size: 15px;
    padding: 6px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 200ms ease-in-out;
    user-select: none;
}

.wcemi-plan {
    width: 70%;
    height: 280px;
    overflow-x: auto;
    display: none;
}

.wcemi-plan.wcemi-plan--selected {
    display: block;
}


.wcemi-plan .wcemi-plan__row:first-child {
    margin-bottom: 15px;
}

.wcemi-plan .wcemi-plan__row:first-child .wcemi-plan__col {
    font-weight: bold;
}
.wcemi-plan__row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.wcemi-plan__col {
    flex-grow: 1;
    flex-basis: 0;
    text-align: center;
}

.wcemi-footer {
    padding: 5px 25px;
    display: flex;
    justify-content: flex-end;
}

.wcemi-m-emis {
    display: none;
}

/* Vaiable product price selector */
.wcemi-variable-message {
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.wcemi-variable-prices {
    padding: 6px 10px 20px 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.wcemi-variable-prices > div {
    padding: 8px 20px;
    margin: 10px;
    border-radius: 4px;
    cursor: pointer;
}

@media ( max-width: 699px ) {
    .wcemi-overlay {
        display: none;
    }

    .wcemi {
        width: 100%;
        min-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .wcemi-header {
        padding: 10px 15px;
    }

    .wcemi-body {
        padding: 5px 15px;
    }

    .wcemi-emis,
    .wcemi-emis.wcemi-emis--selected {
        display: none;
    }

    .wcemi-method__item {
        font-size: 13px;
        text-align: center;
        margin-bottom: 5px;
    }

    .wcemi-m-emis {
        display: none;
        margin-top: 10px;
        padding-bottom: 50px;
        overflow-y: auto;
        max-height: 73vh;
    }

    .wcemi-m-emis.wcemi-m-emis--selected {
        display: block;
    }

    .wcemi-m-bank {
        margin-bottom: 10px;
        padding: 10px 15px;
        overflow: hidden;
        height: 42px;
        background: #f5f5f5;
        cursor: pointer;
        transition: height 200ms ease-in-out;
    }
    
    .wcemi-m-bank.wcemi-m-bank--selected {
        height: auto;
        transition: height 200ms ease-in-out;
    }

    .wcemi-m-bank__title {
        font-size: 14px;
        color: #111;
        margin-bottom: 12px;
        position: relative;
    }

    .wcemi-m-bank__title::after {
        content: "\f067";
        font: normal normal normal 14px/1 FontAwesome;
        position: absolute;
        top: 6px;
        right: 0;
        color: #555;
    }
    
    .wcemi-m-bank__title.wcemi-m-bank__title--selected::after {
        content: "\f068";
    }

    .wcemi-m-plan {
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }

    .wcemi-m-plan .wcemi-m-plan__row:first-child {
        margin-bottom: 5px;
    }

    .wcemi-m-plan__row {
        display: flex;
        justify-content: space-around;
    }

    .wcemi-plan__col {
        font-size: 13px;
    }
    .wcemi-m-plan__col {
        flex: 1;
        text-align: center;
        font-size: 13px;
    }

    .wcemi-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 0 60px rgba(0,0,0,0.1);
    }

}   