/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/


.ninja_square_error {
    background-color: #f2dede;
    border-color: #d59595;
    color: #a94442;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    padding: 8px;
    margin-bottom: 18px;
    border-radius: 2px;
}


/* Define how SqPaymentForm iframes should look */
.njsq-input {
    border: 1px solid #bbb;
    border-radius: 3px;
    outline-offset: -2px;
    margin-bottom: 5px;
    display: inline-block;
    min-height: 35px;
}

/* Define how SqPaymentForm iframes should look when they have focus */
.njsq-input--focus {
    outline: 5px auto rgb(59, 153, 252);
}

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

.nf-form-fields.date, 
.nf-form-fields.cvv {
    float: left;
    width: 49%;
}

.nf-form-fields.date {
    margin-right: 2%;
}

.squareform-container .nf-field-label label {
    display: none;
}

.ninja-square-connect-button {
    display: inline-block;
    background-color: rgb(41, 150, 204);
    height: 28px;
    color: rgb(255, 255, 255);
    box-shadow: rgb(153, 153, 153) 3px 4px 15px 2px;
    font-weight: 700;
    font-family: "Square Market", Helvetica, Arial, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
    text-rendering: optimizelegibility;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 3px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px; 
}

.ninja-square-connect-button:hover{

    color: rgb(255, 255, 255);

}

.ninja-square-connect-button span{
vertical-align: top;
display: inline-block;
padding-top: 7px;
padding-left: 10px;
}
 
.ninja-square-connect-button span a{
    color: white;
    text-decoration: none;
}

.hidden{

    display: none;
}


.single-element-configuration,
.cardholder_name {
    border: 1px solid #dfdfdf;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
    border-radius: 4px;
    max-width: 500px;
    color: #333;
    min-height: 42px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.cardholder_name {
    margin-top: 12px;
}
.cardholder_name > input[type="text"] {
    border:none;
    padding: 12px 0!important;
    width: 100%;
    outline:none;
    background: #fff;
    height: 44px;
}
.single-element-configuration > .element-toLeft > iframe.gfsq-input {
    width: 100%;
    max-width: 280px;
    outline:none;
    visibility: visible;
    padding-left: 10px;
}
.single-element-configuration > .element-toRight > iframe.gfsq-input {
    width: 100%;
    max-width: 80px;
    outline:none;
    visibility: visible;
}
.element-toLeft {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.element-toRight {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.gfsq-ccard-container {
    perspective: 1000px;
}
.gfsq-card {
    width: 24px;
    height: 24px;
    position: relative;
    transition: all 1s linear;
    transform-style: preserve-3d;
}
.gfsq-front,
.gfsq-back {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

/* if card is unknown*/
.gfsq-front {
    background: url('../img/card/card-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back {
    background: url('../img/card/card-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is unknown*/

/* if card is visa*/
.gfsq-front.visa {
    background: #fff url('../img/card/visa-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.visa {
    background: url('../img/card/visa-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is visa*/

/* if card is masterCard*/
.gfsq-front.masterCard {
    background: #fff url('../img/card/mastercard-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.masterCard {
    background: url('../img/card/mastercard-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is masterCard*/

/* if card is discover*/
.gfsq-front.discover {
    background: #fff url('../img/card/discover-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.discover {
    background: url('../img/card/discover-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is discover*/

/* if card is discoverDiners*/
.gfsq-front.discoverDiners {
    background: #fff url('../img/card/dinerclub-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.discoverDiners {
    background: url('../img/card/dinerclub-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is discoverDiners*/

/* if card is JCB*/
.gfsq-front.JCB {
    background: #fff url('../img/card/jcb-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.JCB {
    background: url('../img/card/jcb-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is JCB*/

/* if card is americanExpress*/
.gfsq-front.americanExpress {
    background: #fff url('../img/card/amex-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.americanExpress {
    background: url('../img/card/amex-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is americanExpress*/

/* if card is unionPay*/
.gfsq-front.unionPay {
    background: #fff url('../img/card/unionpay-front.svg') left / 24px no-repeat;
    z-index: 2;
    backface-visibility: hidden;
}
.gfsq-back.unionPay {
    background: url('../img/card/unionpay-back.svg') left / 24px no-repeat;
    z-index: 1;
    transform: rotateY(180deg);
}
/* if card is unionPay*/

.gfsq-card.rotate {
    transform: rotateY(180deg);
}