#sq-ccbox {
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    background-color: #f8f3ed;
    padding: 20px 35px;
    margin-top: 70px;
    display: none;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translateY(-50%) translateX(50%);
    overflow: auto;
}

.form-background-overlay {
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

#sq-ccbox .sq-close {
    font-size: 3em;
    line-height: 1;
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
}

#sq-ccbox h2 {
    color: #026cb2;
    font-size: 28px;
    letter-spacing: 0px;
}

#sq-ccbox input[type='text'], #sq-ccbox textarea {
    width: 100%;
    border: 1px solid #555;
    padding-left: 4px;
}

#sq-ccbox .row {
    padding: 15px 0;
}

.row > div {
    margin-top: 10px;
}

#sq-ccbox .button-credit-card {
    color: #fff !important;
    font-size: 1.2em;
    text-transform: uppercase;
    background-color: #c4ac08;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 6px 30px;
    margin-top: 15px;
    cursor: pointer;
}

#sq-ccbox .form-section-label {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
}

#sq-ccbox .small-text {
    font-size: 0.8em;
}

#sq-ccbox .shipping-address-container {
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

#sq-ccbox .shipping-address-container.shipping-expanded {
    max-height: 600px;
    padding: 15px 0;
}

.sidebar .pay-success {
    color: #026cb2 !important;
    font-size: 1.6em !important;
    text-align: center !important;
    margin-top: 35px;
}

#loadbox {
    display: none;
}

label.error, #err {
    color: red !important;
}

.terms-container strong {
    font-size: 0.9em;
    line-height: 1.2em;
}

.terms-container p {
    line-height: 1.2em;
}

.terms-container .small-text {
    margin-bottom: 5px;
}

.col-sm-4 select {
    width: 100%;
    height: 28px;
}

.state-popup-cont {
    position: relative;
}

.state-popup {
    width: 280px;
    font-weight: bold;
    background-color: #f8f3ed;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 20px;
    display: none;
    position: absolute;
    z-index: 1;
}

.state-popup-close {
    font-size: 2em;
    line-height: 1;
    position: absolute;
    top: 2px;
    right: 10px;
    cursor: pointer;
}

.state-popup ul {
    font-weight: normal;
    list-style-type: none;
    padding-left: 5px;
    margin-top: 10px;
}

.sq-input {
    width: 100%;
    height: 28px;
    line-height: 1.6em;
    padding: 2px;
    background-color: #FFF;
    border: 1px solid #000;
}

#sq-ccbox .button-inactive {
    color: transparent !important;
    background-image: url(../img/30.gif);
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff !important;
    border-color: #f5f5f5 !important;
}

.button-inactive:hover {
    cursor: default !important;
    outline: none !important;
    box-shadow: none !important;
}
.button-inactive:focus {
    outline: none !important;
    box-shadow: none !important;
}

#sq-ccbox h2 {
    text-align: center;
}

#sq-ccbox h6 {
    font-size: 0.9em;
}

#sq-ccbox h6 .error {
    color: red;
    font-size: 0.8em;
}

#sq-ccbox h6:focus {
    outline: 0 !important;
}

#sq-ccbox h6 + div {
    padding: 15px 0;
}

/* Define how SqPaymentForm iframes should look when they have focus */
.sq-input--focus {
    outline: none;
}

/* Define how SqPaymentForm iframes should look when they contain invalid values */
.sq-input--error {
    outline: 5px auto rgb(255, 97, 97);
}


/* Customize the "{{Wallet}} not enabled" message */
.wallet-not-enabled {
    min-width: 200px;
    min-height: 40px;
    max-height: 64px;
    padding: 0;
    margin: 10px;
    line-height: 40px;
    background: #eee;
    border-radius: 5px;
    font-weight: lighter;
    font-style: italic;
    font-family: inherit;
    display: block;
}

/* Customize the Apple Pay on the Web button */
.button-apple-pay {
    min-width: 200px;
    min-height: 40px;
    max-height: 64px;
    padding: 0;
    margin: 10px;
    background-image: -webkit-named-image(apple-pay-logo-white);
    background-color: black;
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 5px;
    cursor:pointer;
    display: none;
}

/* Customize the Masterpass button */
.button-masterpass {
    min-width: 200px;
    min-height: 40px;
    max-height: 40px;
    padding: 0;
    margin: 10px;
    background-image: url(https://static.masterpass.com/dyn/img/btn/global/mp_chk_btn_147x034px.svg);
    background-color: black;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 5px;
    border-color: rgb(255, 255, 255);
    cursor:pointer;
    display: none;
}

#sq-walletbox {
    float:left;
    margin:5px;
    padding:10px;
    text-align: center;
    vertical-align: top;
    font-weight: bold;
}
