#p24-card-modal-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

#p24-card-modal-holder > #p24-card-modal {
    float: none;
    box-shadow: 0 0 40px #000;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -175px;
    min-height: 170px;
}

#p24-card-modal {
    background: lightgray;
    background: linear-gradient(to bottom, #ddd 0%, #bbb 100%);
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 0.5em;
    width: 350px;
    min-height: 200px;
}

@media screen and (min-width: 992px) {
    #p24-card-modal {
        float: right;
    }
}

#p24-card-modal-holder, #P24_cardNumber {
    padding-left: 0.3em;
}

#p24-card-modal button:hover {
    background: #3aa04c;
    background: linear-gradient(to bottom, #3aa04c 0%, #3aa04a 100%);
}

#p24-card-modal button {
    border-radius: 4px;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
    font-weight: bold;
    background: #43b754;
    background: linear-gradient(to bottom, #43b754 0%, #41b757 2%, #41b854 4%, #43b756 6%, #41b354 38%, #44b355 40%, #45af55 66%, #41ae53 74%, #42ac52 91%, #41ae55 94%, #43ab54 96%, #42ac52 100%);
    border: 1px solid;
    border-color: #af0d1d #e94a59 #89000d #af0d1d;
    padding: 11px 15px 10px 15px;
    margin: 10px auto 0 auto;
    background: #db2032;
    background: linear-gradient(to bottom, #e94a59 0%, #db2032 100%);
    display: block;
}

#p24-card-modal button:hover {
    background: #e94a59;
    background: linear-gradient(to bottom, #f87582 0%, #e94a59 100%);
}

#p24-card-modal label {
    display: inline-block;
    width: 130px;
    text-align: right;
    padding: 0 15px 0 0
}

#p24-card-modal input {
    border-style: none;
    border-radius: 4px;
    height: 23px;
}

#p24-card-modal input.not-long {
    text-align: center;
}

#p24-card-modal span.info {
    margin: 3em 0;
    display: block;
    text-align: center;
}

#uniform-p24_regulation_accept {
    display: inline-block;
}

#przelewy24lastmethod_img.inactive, a.bank-box.inactive {
    opacity: 0.5;
    -webkit-filter: grayscale(1);
    -moz-filter: grayscale(1);
    -ms-filter: grayscale(1);
    -o-filter: grayscale(1);
    filter: grayscale(1);
    filter: gray;
}

label {
    cursor: pointer;
    cursor: hand;
}

a.bank-box.selected:before {
    font-family: FontAwesome;
    content: "\f00c";
    float: right;
    font-size: 4em;
    color: #db2032;
    margin: -8px -8px 0 0;
}

.bank-box {
    float: left;
    width: 135px;
    height: 71px;
    margin-left: 4px;
    margin-top: 5px;
    padding: 0px 0;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    cursor: hand;
    background: white;
}

.bank-box:hover {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.27);
    text-decoration: none !important;
}

.mobile .bank-box {
    width: 66px;
    height: 70px;
    margin-left: 4px;
    margin-top: 12px;
    background: none;
    border: none;
}

.mobile .bank-box:hover {
    box-shadow: none;
}

@font-face {
    font-family: 'FontAwesome';
    src: url("../fonts/fontawesome-webfont.eot?v=4.1.0");
    src: url("../fonts/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"),
    url("../fonts/fontawesome-webfont.woff?v=4.1.0") format("woff"),
    url("../fonts/fontawesome-webfont.ttf?v=4.1.0") format("truetype"),
    url("../fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg");
    font-weight: normal;
    font-style: normal
}

.payMethodList li {
    display: inline-block;
    width: 20em;
}

.bank-box.recurring .bank-logo {
    padding-top: 23px;
}

.bank-box.recurring .bank-logo > span {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.5);
}

.bank-logo {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 120px 35px;
    width: 137px;
    height: 50px;
    font-size: 9px;
}

.bank-name {
    color: gray;
    height: 30px;
    font-size: 9px;
}

.mobile .bank-logo {
    background-size: cover;
    width: 56px;
    height: 60px;
}
.mobile .bank-name {
    display: none;
}

.moreStuff, .lessStuff {
    text-align: center;
    border-bottom: 1px solid #ccc;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2em;
    cursor: pointer;
    cursor: hand;
}

.moreStuff:hover, .lessStuff:hover {
    border-color: #bbb;
}

.moreStuff:hover:before, .lessStuff:hover:before {
    border-color: #bbb;
    background: #bbb;
}

.moreStuff:before, .lessStuff:before {
    font-family: FontAwesome;
    text-align: center;
    color: #fff;
    border: 2px solid #ccc;
    padding: 0.1em;
    border-radius: 3px;
    position: relative;
    top: 12px;
    cursor: pointer;
    cursor: hand;
    background: #ccc;
}

.bank-element {
    width: 137px;
    text-align: center;
}

.przelewy24AjaxCardBox {
    overflow: hidden;
}

[data-type="p24PaymentConfirmation"] {
    display: none;
}

#p24-installment-widget {
    margin-top: 1em;
    margin-bottom: 1em;
}

#installment-calculator-modal {
    /* Workaround. The imported code has too low z-index inline. */
    z-index: 6000 !important;
}
