html {
    position: relative;
    min-height: 100%;
}
body {
    font: 14px Roboto;
    padding-bottom: 300px;
    padding-top: 40px;
}
body.modal-open {
    overflow: auto;
    padding-right: 0 !important;
}

@media (max-width: 767px) {
    html.withSidebar, body.withSidebar {
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    body.withSidebar footer {
        position: static !important;
    }

    body {
        padding-bottom: 500px;
    }
    /* body, html {
        overflow: hidden;
    }
    body {
        height: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
    } */

    /* #__next {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 1;
    } */

}

body > .container {
    padding-top: 40px;
}
header .container .row {
    margin:0;
}

h1 {
    font-size: 30px;
    font-weight: bold;
}
h2 {
    font-size: 26px;
    font-weight: bold;
}
h3 {
    font-size: 22px;
    font-weight: bold;
}
label {
    color: #c8c8c8;
    font-size: 14px;
}
.form-control {
    border-radius:0;
    font-size: 1em;
    /*
    padding: .2rem .75rem;
    height: calc(1.3em + .75rem + 2px);
    font-size: 0.8rem;
    */
}

.form-control:focus {
    border-color: #7b7b7b;
    box-shadow: none;
}

.form-control.is-valid:focus, .was-validated .form-control:valid:focus {
    box-shadow: none;
}

.form-control.is-invalid, .form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
    border-color: #de4639;
    box-shadow: 0 0 0 1px #de4639;
}

.form-row:last-of-type .form-group {
    margin-bottom: 0;
}

.input-group-text {
    line-height: 1.2;
}

.profile-edit-section .input-group-text {
    border: 0!important;
    background-color: transparent!important;
}


::-webkit-input-placeholder { /* Chrome */
    transition: opacity 250ms ease-in-out;
}
:focus::-webkit-input-placeholder {
    opacity: 0.3;
}
:-ms-input-placeholder { /* IE 10+ */
    transition: opacity 250ms ease-in-out;
}
:focus:-ms-input-placeholder {
    opacity: 0.35;
}
::-moz-placeholder { /* Firefox 19+ */
    opacity: 0.5;
    transition: opacity 250ms ease-in-out;
}
:focus::-moz-placeholder {
    opacity: 0.3;
}
:-moz-placeholder { /* Firefox 4 - 18 */
    opacity: 0.5;
    transition: opacity 250ms ease-in-out;
}
:focus:-moz-placeholder {
    opacity: 0.3;
}
::placeholder {
    color: #ddd;
    opacity: 0.5;
}

.navbar-toggler {
    border: none;
    margin-left: -1rem;
}
.navbar-toggler:focus {
    outline: none;
}
.navbar-toggler-icon {
    background-image: url(/static/v2/icons/navbar-toggler.svg);
    width: 20px;
    height: 20px;
}

.btn {
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1.2rem;
}
@media (max-width: 320px) {
    .btn {
        /*
        line-height: 1.6rem;
        */
        width: 100%;
    }
}
.btn-rounded {
    border-radius: 13vh;
}

.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
    background-color: #90b557;
    border-color: #90b557;
}
.btn-primary:focus, .btn-primary:active, .btn-primary:hover, 
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus
{
    background-color: #44651f;
    border-color: #44651f;
    box-shadow: none;
}

.btn-secondary {
    background-color: #dddddd;
    border-color: #dddddd;
    color: #7b7b7b;
}
.btn-secondary:focus, .btn-secondary:active, .btn-secondary:hover, 
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus
 {
    background-color: #3b3b3b;
    border-color: #3b3b3b;
    box-shadow: none;
}

.valid-feedback {
    font-size: 12px;
    color: #90b557;
    margin-top: .33rem;
}
.invalid-feedback {
    font-size: 12px;
    color: #ff6659;
    margin-top: .33rem;
}

.common-error {
    padding-left: 30px;
    background: url(/static/v2/icons/exclamation-red.svg) no-repeat 0 0;
    margin-bottom: 20px;
    line-height: 25px;
}
.common-ok {
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 25px;
    position: relative;
}
.common-ok:before {
    content: "👌";
    position: absolute;
    top:0;
    left: 0;
    width: 24px;
    height: 24px;
}

.popover, .popover-header, .list-group-item:last-child, .list-group-item:first-child {
    border-radius:0;
}
.list-group-item, .list-group-item:first-child {
    border: none;
}

.list-group-item {
    padding-left: 34px;
    padding-right: 34px;
    color: #7b7b7b;
    text-decoration: none;
}
.list-group-item:hover, .list-group-item.active {
    background: #ebebeb;
    color: #3b3b3b;
    font-weight: bold;
    text-decoration: none;
}
.list-group-item .badge {
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
}

.card, .card-header:first-child {
    border-radius: 0;
    border: none;
}

.scrollable {
    height: 100%;
    overflow-y: auto;
}

.modal-content {
    border-radius: 0;
    border: none;
}

@media (max-width: 1023px) {
    .modal.show .modal-dialog {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 1023px) and (orientation: portrait) {
    .modal.show .modal-dialog {
        height: 100vh;
    }
    .modal-content {
        height: 100vh;
    }
}

@media (max-width: 1023px) and (max-height: 480px) and (orientation: portrait) {
    .modal.show .modal-dialog.with-captcha {
        height: 124vh;
    }
    .with-captcha .modal-content {
        height: 124vh;
    }
}
@media (max-width: 640px) and (orientation: landscape) {
    .modal.show .modal-dialog {
        height: auto;
    }
    .modal-content {
        height: auto;
    }
}

@media (min-height: 321px) and (max-height: 414px) and (orientation: landscape) {
    .modal.show .modal-dialog {
        height: auto;
        min-height: 100vh;
    }
    .modal-content {
        height: 100%;
        min-height: 100vh;
    }
}


.overlay {
    position: absolute;
    z-index: -1;
    background-color: #000;
    opacity: 0;
    transition: opacity .5s ease-in;
}


@media (max-width: 768px) {
    .overlay.active {
        z-index: 19;
        opacity: .54;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        transition: opacity .5s ease-in;
        user-select: none;
        cursor: pointer;
    }
}


#nprogress .spinner {
    display: none;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: #90B557;
    background-color: #90B557;
}

.block {
    margin: 0 0 10px;
    padding: 20px 20px 26px;
    box-shadow: 0 1px 5px 0 rgba(225, 226, 236, 0.65);
    border: solid 2px #ebebeb;
}
.block, .block label {
    color: #7b7b7b;
    font-size: 14px;
    line-height: 20px;
}
.block .custom-control-label {
    line-height: 25px;
} 

.top-menu {
    border-bottom: 2px solid #ddd;
}
.top-menu .nav {
    margin-left: -15px;
}
.top-menu .nav-link {
    color: #9b9b9b;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .top-menu .nav-link {
        padding: 0.5rem;
    }
}
.top-menu .nav-link:hover,
.top-menu .nav-link.active {
    color: #3b3b3b;
}
.top-menu .nav-link:hover span,
.top-menu .nav-link.active span {
    position: relative;
}
.top-menu .nav-link:hover span:before,
.top-menu .nav-link.active span:before {
    content: '';
    position: absolute;
    top: 32px;
    height: 5px;
    width: 100%;
    background: #90b557;
}

.top-menu .nav-tabs .nav-link.active {
    border-color: transparent;
}


.accordionBlock {
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    line-height: 20px;
}
.accordionBlock a {
    color: #3B3B3B;
    padding-right: 30px;
    
}
.accordionBlock .helpLink:after {
    content: "";
    width: 20px;
    height: 16px;
    display: inline-block;
    background: url('/static/v2/icons/arrow-right-black.svg') no-repeat right 0;
    background-size: contain;
    position: relative;
    top: 3px;
}

.accordionBlock:last-of-type {
    border-bottom: none;
}
.accordionBlockTitle {
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: #000;
}
.accordionBlockTitle:before {
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    height: 24px;
    width: 100%;
    background-size: contain;
}
.accordionBlockTitle.card:before {
    background-image:url("/static/v2/icons/purse/card.svg");
}
.accordionBlockTitle.webmoney:before {
    background-image:url("/static/v2/icons/purse/webmoney.svg");
}
.accordionBlockTitle.qiwi:before {
    background-image:url("/static/v2/icons/purse/qiwi.svg");
}
.accordionBlockTitle.yoomoney:before {
    background-image:url("/static/v2/icons/purse/yoomoney.svg");
}
.accordionBlockTitle.se:before {
    background-image:url("/static/v2/icons/purse/se.svg");
}
.accordionBlockTitle:after {
    position: absolute;
    top: 20px;
    right: 0;
    content: "";
    width: 20px;
    height: 20px;
    background: url(/static/v2/icons/arrow-down-black.svg) no-repeat 50% 50%;
}
.open .accordionBlockTitle:after {
    background: url(/static/v2/icons/arrow-up-black.svg) no-repeat 50% 50%;
}
.accordionBlockTitle img {
    height: 24px;
}
.accordionBlockBody {
    display:none;
    padding: 20px 5px;
}
.accordionBlock:last-of-type .accordionBlockBody {
    padding-bottom: 0;
    margin-bottom: -10px;
}
.block .accordionBlock:last-of-type {
    margin-bottom: -26px;
}
.open .accordionBlockBody {
    display: block;
}

.form-check-input {
    position: absolute;
    left: 20px;
    top: -3px;
}