﻿/*Mobile Styles*/

fieldset {
    margin: 1rem;
    border-radius: 7px;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}
.qt-balance {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #dadfe2;
    border-radius: 3px;
}
.qt-balance button{
    background: #e70d30;
}

.qt-balance > div {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.qt-balance-container {
    margin: 0 auto 1rem auto;
    width: 100%;
}

/* this is the first container (the new balance box) */
.qt-balance > div:nth-child(1) .qt-balance-container div:nth-child(1){
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* this is the first container (the cart box) */
.qt-balance > div:nth-child(1) .qt-balance-container div:nth-child(2) {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.qt-balance-popup-button {
    padding: 5.5px 12px;
    font-size: 22px;
    line-height: 1;
    color: #555!important;
    text-align: center;
    background-color: #eee!important;
    border: 1px solid #ccc;
    border-radius: 4px 0px 0px 4px;
    position: absolute;
    left: 0;
    top: 61%;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
}
.qt-balance-popup {
    width: 80%;
    max-width: 100%;
    height: 100%;
    position: absolute;
    transform: translate(-50%,-50%);
    left: 50%;
    opacity: 0;
    z-index: -1;
    display: none;
    transition: .15s ease-in all;
    top: 65%;
}
.qt-balance-popup img{
    max-width: 100%;
    margin: 0 auto;
}
.qt-popup-opened{
    opacity: 1; 
    z-index: 102;
    display: block!important;
}
.modal-dialog{
    max-width: 100%!important;
    margin:1.75rem auto;
}

.modal-content {
    height: auto;
    display: flex;
    text-align: center;
    position: relative;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}
.modal-header button {
    padding: 10px;
    margin-right: 10px;
}

.modal-title {
    margin-bottom: 0;
    line-height: 2em;
    padding: 20px;
}
.modal-body{
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}
.modal-footer {
    display: flex;        
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}
/* this is the first container (the new balance box) */
.qt-balance-container > div:nth-child(1):not([class*='g-recaptcha']) {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}
/* this is the first container (the cart box) */
.qt-balance-container > div:nth-child(2) {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding-top: 1rem;
    position: relative;
}

.qt-balance-button {
    background-color: #5dbf74 !important;
}
.g-recaptcha > div:first-child {
    width: auto !important;
    height: auto !important;
    padding-top: 2rem !important;
}
.g-recaptcha > div:first-child {
    width: auto !important;
    height: auto !important;
    padding-top: 2rem !important;
}
/*Desktop Styles*/
@media(min-width: 850px) {
    .qt-balance > div {
        flex-direction: row;
    }
    .qt-balance {
        width: 50%;
    }
    .qt-balance-container {
        width: 100%;
    }
    /* this is the first container (the new balance box) */
    .qt-balance-container > div:nth-child(1):not([class*='g-recaptcha']) {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }
    /* this is the first container (the cart box) */
    .qt-balance-container > div:nth-child(2) {
        width: 80%;
        margin: 0 auto;
        text-align: center;
        padding-top: 1rem;
        position: relative;
    }
    .qt-balance-popup {
        width: auto;
        top: 39%;
        height: auto;
    }
}