#vpos form {
    white-space: nowrap;
    overflow: hidden;
}
#vpos form.show-overflow {
    overflow: visible;
}

#vpos form > #messages {
    white-space: normal;
    margin-top: 20px;
}

#vpos form > [class*="step-"] {
    width: 100%;
    display: inline-block;
    -webkit-transition: -webkit-transform 1s ease;
    transition: -webkit-transform 1s ease;
    -o-transition: transform 1s ease;
    transition: transform 1s ease;
    transition: transform 1s ease, -webkit-transform 1s ease;
    white-space: normal;
    vertical-align: top;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    padding: 20px 0 20px;
}

#vpos form > #messages,
#vpos form > [class*="step-"] {
    padding-right: 35px;
    padding-left: 35px;
}

#vpos form > [class*="step-"] {
    width: calc(100% - 70px);
}
#vpos form > [class*="step-1"] {
    float: left;
}
#vpos.skip-step-one form > [class*="step-"] {
    -webkit-transition: none;
    transition: none;
    -o-transition: none;
}
#vpos form > [class*="step-"]:not(.active) {
    height: 0;
}
#vpos form > [class*="step-1"]:not(.active),
#vpos form > [class*="step-2"].active {
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}
#vpos form > [class*="step-"] > * {
    float: left;
    width: 100%;
}
#vpos form > [class*="step-"] > *:not(:last-child) {
    margin-bottom: 20px;
}

#vpos form > [class*="step-"] > .checkbox-wrapper {
    margin-bottom: 10px;
}

#vpos form > [class*="step-"] > *:nth-last-child(2) {
    margin-bottom: 20px;
}

#vpos #error_message,
#vpos #warning_message,
#vpos #info_message,
#vpos #ok_message,
#vpos .message {
    margin-bottom: 0;
}

#vpos .panel-title {
    font-size: 14px;
}

#vpos .form-group {
    padding: 0;
    margin: 0;
}

#vpos #payment-details .controls {
    float: left;
    width: 100%;
    padding-left: 1px;
}

#vpos .form-group:not(.has-error) .form-control,
#vpos .input-group-addon {
    border-color: transparent;
}
#vpos .hide-label ~ .form-control,
#vpos .hide-label ~ .input-group-addon {
    height: 51px;
}
#vpos .hide-label ~ textarea.form-control {
    height: 100px;
}
#vpos .form-group:not(.has-error) .hide-label:not(.show-label):not(.show-label-val) ~ .form-control,
#vpos .hide-label:not(.show-label):not(.show-label-val) ~ .input-group-addon {
    padding: 9px 12px 9px;
    border-bottom: 1px solid #f1f1f1;
}
#vpos .hide-label.show-label ~ .form-control:focus,
#vpos .hide-label.show-label ~ .input-group-addon:focus,
#vpos .hide-label.show-label-val ~ .form-control,
#vpos .hide-label.show-label-val ~ .input-group-addon {
    height: 51px;
    padding: 16px 12px 2px;
    border-bottom: 1px solid #f1f1f1;
}
#vpos .hide-label.show-label ~ textarea.form-control:focus,
#vpos .hide-label.show-label ~ textarea.input-group-addon:focus,
#vpos .hide-label.show-label-val ~ textarea.form-control,
#vpos .hide-label.show-label-val ~ textarea.input-group-addon {
    padding-top: 21px;
    height: 100px;
}
#vpos .hide-label {
    left: 14px;
    top: 5px;
    font-weight: normal;
}
#vpos .btn.btn-block {
    padding-top: 12px;
    padding-bottom: 12px;
}
#vpos .form-control:focus,
#vpos .btn:focus {
    border-color: #66afe9 !important;
    box-shadow: none;
    -webkit-box-shadow: none;
    border-radius: 3px;
}
#vpos .pay-button:focus {
    border: 1px solid #66afe9;
}
#vpos .px-checkbox #terms-link:focus {
    box-shadow: 0 0 10px #66afe9;
}
.dropdown-menu a:focus {
    box-shadow: none;
    border: 1px solid #66afe9;
}
.theme-lang-nav-opener span:focus {
    border-color: #ffffff;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgb(0, 142, 255);
}
#vpos .hide-label {
    background: transparent;
}
#vpos .hide-label:not(.show-label)::before {
    content: '';
    float: left;
    width: 110%;
    position: relative;
    top: 7px;
    right: 5%;
    border-top: 1px solid #fff;
    z-index: -1;
}


#vpos #contact-details > .form-group:first-child > .form-control {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
#vpos #contact-details > .form-group:last-child > .form-control {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

#vpos #price {
    display: flex;
    flex-direction: row;
    background: #fff;
    height: 51px;
}
#vpos #price .recurring-payment {
    width: 190px;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-left: -11px;
    margin-right: -7px;
}
#vpos #price .recurring-payment .fa {
    margin-left: 5px;
}
#vpos #price .form-control:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
#vpos #price .input-group-addon:last-child,
#vpos #price #custom-currency button {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
#vpos #price #fixed-amount,
#vpos #price #custom-amount {
    float: left;
    width: 70%;
}
#vpos #price #fixed-amount {
    height: 51px;
    text-align: right;
    line-height: 36px;
    cursor: not-allowed;
}
#vpos #price #fixed-currency {
    height: 51px;
    line-height: 36px;
}
#vpos .form-control {
    height: 51px;
}

#vpos #price .form-control-recurring {
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    height: 51px;
}

#vpos #price .form-control-recurring #fixed-amount {
    float: none;
    width: auto;
    height: auto;
    flex-grow: 1;
    text-align: right;
    line-height: 36px;
    cursor: not-allowed;
}

#vpos #price .form-control-recurring span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 10px;
    line-height: 36px;
    cursor: not-allowed;
}

#vpos #price #custom-currency {
    position: relative;
}
#vpos #price #custom-currency button {
    width: 100%;
    height: 51px;
}
#vpos #price #custom-currency button:hover,
#vpos #price #custom-currency button:focus,
#vpos #price #custom-currency button:active,
#vpos #price #custom-currency button.active,
#vpos #price #custom-currency.open > button {
    background-color: #ffffff;/* bs override */
    outline: 0;/* bs override */
}
#vpos #price #custom-currency button + .dropdown-menu {
    min-width: 100%;
    border-color: transparent;
}
#vpos #price #fixed-currency,
#vpos #price #custom-currency {
    float: left;
    width: 30%;
}

#vpos #discount-add {
    text-align: right;
    padding: 10px 0 0 0;
    font-size: 13px;
}
#vpos #discount-add a:hover {
    text-decoration: none;
}
#vpos #discount,
#vpos #discount-total {
    display: flex;
    flex-direction: row;
    background: #fff;
    height: 52px;
    border-top: 1px solid #f9fafa;
}
#vpos #discount #discount-code-wrapper {
    width: 100%;
}
#vpos #discount #discount-code {
    border-color: transparent;
}
#vpos #discount #discount-redeem {
    position: relative;
    float: left;
    width: 30%;
    font-size: 12px;
}
#vpos #discount #discount-redeem > i {
    position: relative;
    top: 1px;
}
#vpos #discount-total-amount,
#vpos #discount-total-currency,
#vpos #discount-subtotal-amount,
#vpos #discount-subtotal-currency {
    width: 30%;
    height: 51px;
    line-height: 36px;
    text-align: right;
}
#vpos #discount-subtotal-text,
#vpos #discount-total-text {
    width: 40%;
    height: 51px;
    line-height: 36px;
    text-align: left;
}
#vpos #discount-subtotal-text {
    line-height: 100%;
}
#vpos #discount-subtotal-text > a {
    display: inline-block;
    padding-bottom: 5px;
    font-size: 12px;
}
#vpos #discount-subtotal-text > div {
    overflow: hidden;
    text-overflow: ellipsis;
}
#vpos #discount-total-currency,
#vpos #discount-subtotal-currency {
    text-align: center;
}
#vpos .redeemed #discount-code-wrapper,
#vpos .redeemed #discount-redeem,
#vpos #discount-subtotal-text,
#vpos #discount-subtotal-amount,
#vpos #discount-subtotal-currency,
#vpos #discount-total {
    display: none;
}
#vpos .redeemed #discount-total {
    display: flex;
}
#vpos .redeemed #discount-subtotal-text,
#vpos .redeemed #discount-subtotal-amount,
#vpos .redeemed #discount-subtotal-currency {
    display: block;
}

#vpos #payment-methods header {
    float: left;
    width: 100%;
    margin-bottom: 10px;
}
#vpos #payment-methods header .fa {
    font-size: 19px;
}
#vpos #payment-methods header .fa:not(.active) {
    color: #ccc;
}
#vpos #payment-methods header .fa,
#vpos #payment-methods main .payment-method {
    cursor: pointer;
}
#vpos #payment-methods main .payment-method-unavailable {
    cursor: not-allowed !important;
    opacity: 0.3;
}
#vpos #payment-methods main .payment-method-unavailable > * {
    cursor: not-allowed !important;
}
#vpos #payment-methods main .payment-method img {
    border-radius: 4px;
    background: #fff;
    -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
}
#vpos #payment-methods main .masonry-type .payment-method {
    float: left;
    width: 75px;
    height: 50px;
    padding: 0 5px 10px 5px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
#vpos #payment-methods main .masonry-type .payment-method div {
         width: 100%;
         height: 100%;
     }
#vpos #payment-methods main .masonry-type .payment-method img {
         width: 100%;
         height: 100%;
     }
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3) {
         padding-left: 0;
     }
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n) {
         padding-right: 0;
     }
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n+1) {
         clear: left;
     }
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3):nth-last-child(4),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3):nth-last-child(3),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3):nth-last-child(2),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3):nth-last-child(1),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-2):nth-last-child(3),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-2):nth-last-child(2),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-2):nth-last-child(1),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-1):nth-last-child(2),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-1):nth-last-child(1),
#vpos #payment-methods main .masonry-type .payment-method:nth-child(4n):nth-last-child(1) {
         padding-bottom: 0;
     }
#vpos #payment-methods main .masonry-type .payment-method:last-child {
         padding-right: 0;
     }

#vpos #payment-methods main .masonry-type .payment-method:hover img,
#vpos #payment-methods main .masonry-type .payment-method img:focus-visible {
    opacity: 0.5;
    outline: 0;
}

#vpos #payment-methods main .list-type .payment-method {
    display: table;
    clear: both;
    width: 100%;
}
#vpos #payment-methods main .list-type .payment-method img {
    display: table-cell;
    width: 45px;
    height: 30px;
    margin: 10px 10px 10px 0;
}
#vpos #payment-methods main .list-type .payment-method span:not(.px-cardicon-testbadge) {
    display: table-cell;
    width: 100%;
    height: 45px;
    padding: 10px 0 10px;
    border-bottom: 1px solid #cccccc;
    vertical-align: middle;
    text-align: left;
}

#vpos #payment-details,
#vpos #payment-details > * {
    margin: 0;
}
#vpos #payment-details [class*="psp-"]:not(.active),
#vpos #payment-details [type="radio"][name="pspId"],
#vpos #payment-details .input-group-addon,
#vpos #payment-details #payment-form-card {
    display: none;
}
#vpos #payment-details #payment-form-cc .card-cvc + .input-group-addon {
    display: block;
    position: relative;
    width: 0;
    padding: 0;
    background-color: transparent;
    z-index: 3;
    cursor: pointer;
}
#vpos #payment-details #payment-form-cc .card-cvc + .input-group-addon .fa {
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-24px,-50%);
    -ms-transform: translate(-24px,-50%);
    transform: translate(-24px,-50%);
}
#vpos #payment-details .controls:first-child .form-control {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
#vpos #payment-details .controls:last-child .form-group:first-child .form-control {
    border-bottom-left-radius: 3px;
}
#vpos #payment-details .controls:last-child .form-group:last-child .form-control {
    border-bottom-right-radius: 3px;
}
#vpos #payment-details .input-group {
    width: 100%;
    display: block;
}

#vpos #payment-details .form-group:first-child {
    border-right: 1px solid #f1f1f1;
}

#vpos #payment-details #payment-form-cc .valid .form-group:nth-child(2) {
    border-right: 1px solid #f1f1f1;
}

#vpos #payment-details button {
    width: 100%;
    min-width: inherit;
    margin-top: 10px;
    border-radius: 3px;
}

#vpos #payment-details .ctp-text {
    display: none;
}

.ctp-text:after {
    content: ' ';
    white-space: normal;
}

#vpos #payment-details .controls:first-child img {
    position: absolute;
    top: 13px;
    right: 12px;
    width: 35px;
    z-index: 4;
    border-radius: 3px;
}
#vpos #payment-details .controls:first-child img ~ input {
    padding-right: 59px;
}
#vpos #product-fixed-name {
   height: 46px;
   text-align: left;
}


#vpos .invoice-number-label {
    top: 3px;
    position: absolute;
    font-weight: normal;
    left: 7px;
    font-size: 11px;
    color: #AAA;
    padding: 0 5px 0 5px;
    line-height: 17px;
}

#vpos #invoice-number {
    padding-top: 13px;
}

#vpos #secure-connection {
    text-align: center;
    font-size: 12px;
}

#vpos #purpose-title {
    margin-top: 0;
}

.list-group-item.comp-country-flag {
    margin-bottom: 0px;
    box-shadow: none;
}

.modal {
    padding-left: 0 !important;
}

.nav-cancel-button,
.theme-modal-close-btn {
    position: absolute;
    top: 20px;
    /*background-color: rgba(0,0,0,.2);*/
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: #fff;
    font-size: 20px;
    left: 25px;
}
.theme-modal-close-btn {
    left: auto;
    right: 25px;
}
.is-modal .nav-cancel-button {
    display: none !important;
}
.nav-cancel-button:hover,
.theme-modal-close-btn:hover {
    background-color: #fff;
    color: #00aff0;
}
.nav-cancel-button svg,
.theme-modal-close-btn svg {
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-timing-function: ease;
    animation-timing-function: ease;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    -webkit-animation-fill-mode: none;
    animation-fill-mode: none;
}
.nav-cancel-button svg,
.theme-modal-close-btn svg {
    width: 17px;
    height: 35px;
}
.nav-cancel-button:hover svg,
.theme-modal-close-btn:hover svg {
    -webkit-animation-name: nav-cancel-button;
    animation-name: nav-cancel-button;
}
@-moz-keyframes nav-cancel-button { 100% { -moz-transform: rotate(90deg); } }
@-webkit-keyframes nav-cancel-button { 100% { -webkit-transform: rotate(90deg); } }
@keyframes nav-cancel-button { 100% { -webkit-transform: rotate(90deg); transform:rotate(90deg); } }

@media (min-width: 768px) and (max-width: 991px) {
    #vpos #payment-details .payment-input .valid .form-group.col-md-4:nth-child(1) {
        padding-right: 15px;
    }
}
@media (max-width: 768px) {
    #vpos #payment-details .payment-input .valid .form-group.col-md-4:nth-child(2) {
        padding-right: 0;
    }
}

@media (max-width: 590px) {
    .nav-cancel-button {
        left: 0;
    }

    #vpos form > #messages,
    #vpos form > [class*="step-"] {
        padding-right: 15px;
        padding-left: 15px;
    }

    #vpos form > [class*="step-"] {
        width: calc(100% - 30px);
    }

    #vpos #payment-methods main .masonry-type .payment-method {
        width: 25%;
        height: auto;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    #vpos #payment-methods main .masonry-type .payment-method:nth-child(4n-3) {
        padding-left: 5px;
    }

    #vpos #payment-methods main .masonry-type .payment-method:nth-child(4n) {
        padding-right: 5px;
    }

    #vpos #payment-methods main .masonry-type .payment-method div {
        position: relative;
        width: 100%;
        padding-bottom: 66%;
    }

    #vpos #payment-methods main .masonry-type .payment-method img {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

#payrexx-vpos #iban-element {
    min-height: 50px !important;
    padding-top: 24px !important;
    display: inline-block !important;
    background: #fff !important;
}

#payrexx-vpos #iban-element.StripeElement--focus {
    border: 1px solid #80BDFF !important;
    transition: border-color .15s ease-in-out !important;
}

#vpos #payment-details .cost-summary {
    padding: 10px;
}
#vpos #payment-details .cost-summary .installment .currency {
    padding-left: 4px;
}


#test_credit_card_container {
    /*card testing UI main element*/
    margin-bottom: 15px !important;
}
.app-test-creditcard-element .input-group-sm .form-control {
    height: 30px !important;
}
.app-test-creditcard-element {
    margin-top: 10px;
}
/* overwrite earlier overwrites*/
#test_credit_card_container .input-group {
    display: table !important;
}
#test_credit_card_container .input-group .input-group-addon {
    display: table-cell !important;
}
/** in case there are no cards, only show the title to let the user know its a test payment */
#test_credit_card_container[data-count-cards="0"] .panel-body, #test_credit_card_container[data-count-cards="0"] .panel-title .fa {
    display: none;
}
