.balance {
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%), url(../assets/paper.jpg) lightgray 50% / cover no-repeat;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1027px;
}

.balance_border {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
}

body.dark .balance_border {
    background: #BD9C49;
}

.balance_body {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%), url(../assets/paper.jpg) lightgray 50% / cover no-repeat;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 29px;
}

body.dark .balance,
body.dark .balance_body,
body.dark .left_block,
body.dark .left_body {
    background: url(../assets/paper_black.jpg) center / cover no-repeat;
}

.balance_first label {
    display: none;
}

.balance_first .input-group {
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 8px;
}

.field-paymentex-amount.required {
    width: 100%;
    gap: 0;
}

.form-control.form-control-amount {
    display: flex;
    padding: 24px 32px;
    align-items: center;
    border-radius: 6px;
    background: #F5F5F5;
    box-shadow: 0px 1.505px 3.009px 0px rgba(0, 0, 0, 0.24) inset;
    width: 100%;
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.input-mc-text {
    position: absolute;
    color: #00000052;
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
    top: 24px;
    right: 310px;
}

.input-group-text {
    min-width: 271px;
    padding: 23px 32px;
    align-items: center;
    border-radius: 6px;
    border-radius: 6px;
    border: 1px solid #E7E7E7;
    background: #FFF;
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.balance_bonuse:nth-child(2) {
    color: #0A9A43;
}

.irs.irs--round .irs-bar,
.irs.irs--round .irs-from,
.irs.irs--round .irs-single,
.irs.irs--round .irs-to {
    background: #AA0909;
}

body.dark .irs.irs--round .irs-bar,
body.dark .irs.irs--round .irs-from,
body.dark .irs.irs--round .irs-single,
body.dark .irs.irs--round .irs-to {
    background: #BD9C49;
}

.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    text-shadow: none;
    padding: 4px 8px;
    background-color: #AA0909;
    color: #FFF;
    font-family: Evolventa Bold;
    font-size: 14px;
    line-height: 13px;
    border-radius: 4px;
}

body.dark .irs--round .irs-from,
body.dark .irs--round .irs-to,
body.dark .irs--round .irs-single {
    background: #BD9C49;
}

#paymentex-payment_system {
    display: grid;
    gap: 11px;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 8px 40px;
}

.selectable-payment-system {
    display: flex;
    height: 83px;
    padding: 24px;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #D6D6D6;
    background: #F5F5F5;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark .selectable-payment-system {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: -2px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: none;
}

.selectable-payment-system * {
    cursor: pointer;
}

.selected-border {
    background-color: #E7E7E7;
}

body.dark .selected-border {
    background: #ffffff2e;
}

.form-check.form-block {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.form-check.form-block input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.payment-system-block.fw-bold {
    display: flex;
    flex-direction: row-reverse;
    width: 100% !important;
    justify-content: space-between;
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
    align-items: center;
}

.field-paymentex-payment_system_type {
    padding: 0 8px 16px;
}

.payment-system {
    width: 40px;
    height: auto;
}

.form-check-label {
    width: 100%;
}

.btn-group.dropright {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
    margin: auto;
    width: fit-content;
}

.btn.btn-primary.btn-lg {
    display: flex;
    width: fit-content;
    padding: 19px 72px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 6px 0px 0px 6px;
    background: #AA0909;
    color: #FFF;
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
    cursor: pointer;
}

.btn.btn-lg.btn-alt-success.dropdown-toggle.dropdown-toggle-split {
    display: flex;
    width: 107px;
    padding: 19px 19px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 0px 6px 6px 0px;
    background: #F5F5F5;
    height: 62px;
    cursor: pointer;
}

.buttons_block {
    width: 100%;
    padding: 32px 0 8px;
}

.show_variants .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border: 1px solid #E7E7E7;
    border-radius: 6px;
    min-width: 107px;
}

.btn-group.dropright .dropdown {
    position: absolute;
    top: 70px;
    right: 0;
    border-radius: 6px;
    box-shadow: 0px 1px 2px 0px #0000004d, 0px 1px 3px 1px #00000026;
}

.balance_filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px 8px;
    gap: 10px;
}

.filter_block,
.field-paymentex-payment_system_type {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balance_filter .form-label,
.field-paymentex-payment_system_type .form-label {
    color: #ACACAC;
    font-family: Evolventa Bold;
    font-size: 14px;
    line-height: 120%;
}

.form-select.form-select-filter,
#paymentex-payment_system_type {
    font-family: Evolventa Bold;
    font-size: 16px;
    line-height: 120%;

    border-radius: 6px;
    border: 1px solid #E7E7E7;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url(../assets/custom-arrow.svg) no-repeat right 0.75rem center;
    background-color: #fff;
    display: flex;
    padding: 12px 24px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    cursor: pointer;
}

.balance_wrapper {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.left_block {
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%), url(../assets/paper.jpg) lightgray 50% / cover no-repeat;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 424px;
}

.left_border {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
}

body.dark .left_border {
    background: #BD9C49;
}

.left_body {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%), url(../assets/paper.jpg) lightgray 50% / cover no-repeat;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 29px;
}

.balance_left {
    width: 424px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.round_but {
    background: url(../assets/white-paper.jpg);
    padding: 3px 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 330px;
    width: fit-content;
    margin: 0 9px;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.30)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    cursor: pointer;
}

.in_round_but {
    font-family: 'Evolventa Bold';
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    text-align: center;
    padding: 11px;
    position: relative;
    width: 100%;
    height: 100%;
}

.round_but::after,
.round_but::before {
    content: "";
    position: absolute;
    top: 0;
    width: 13px;
    height: 100%;
    background: url(../assets/krai_white.svg) center / cover no-repeat;
}

.round_but::before {
    left: -12px;
}

.round_but::after {
    right: -12px;
    transform: rotate(180deg);
}

body.dark .in_round_but::after,
body.dark .in_round_but::before {
    background: #6f5d2f;
}

body.dark .round_but::after {
    background: url(../assets/krai_black_2_r.svg) center / cover no-repeat;
}

body.dark .round_but::before {
    background: url(../assets/krai_black_2.svg) center / cover no-repeat;
}

body.dark .round_but::after {
    transform: none;
}

body.dark .round_but {
    background: url(../assets/black_but.png) center / cover no-repeat;
}

.in_round_but::after,
.in_round_but::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #676767;
    z-index: 0;
}

.in_round_but::before {
    bottom: 0;
}

.in_round_but::after {
    top: 0;
}

.support_title {
    text-align: center;
    font-family: Evolventa Bold;
    font-size: 32px;
    line-height: 130%;
}

.support_after {
    color: #898989;
    text-align: center;
    font-family: Evolventa Bold;
    font-size: 16px;
    line-height: 130%;
}

.support_block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.percent_title {
    font-family: Evolventa Bold;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
}

.percent_variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.percent_item {
    border-radius: 6px;
    background: #F5F5F5;
    border: 1px solid #F5F5F5;
    display: flex;
    padding: 12px 24px;
    justify-content: space-between;

    font-family: Evolventa Bold;
    font-size: 18px;
    line-height: 120%;

    transition: all 0.3s ease;
}

body.dark .percent_item {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: -2px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: none;
}

body.dark .input-group-text {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: -2px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: none;
}

body.dark .form-control.form-control-amount {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: -2px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: none;
    color: #F7F7F7;
}

body.dark .input-mc-text {
    color: #f7f7f780;
}

body.dark .form-select.form-select-filter,
body.dark #paymentex-payment_system_type {
    border: 1px solid #232323;
    background-color: #1f1f1f;
    color: #F7F7F7;
}

.current_percent {
    border: 1px solid #5ECBB0;
    background: #BDFFE4;
}

body.dark .show_variants .dropdown-menu {
    background: url(../assets/paper_black.jpg);
    border: 1px solid #bd9c49;
}

body.dark .current_percent {
    background: #ffffff2e;
}

.irs--round .irs-handle {
    border: 4px solid #AA0909;
    box-shadow: 0 1px 3px #AA09094d;
    cursor: pointer;
}

body.dark .irs--round .irs-handle {
    border: 4px solid #BD9C49;
    box-shadow: 0 1px 3px #bd9c4991;
    cursor: pointer;
}

body.dark .l2-add,
body.dark .dropdown-toggle {
    color: #bd9c49;
}

body.dark .btn.btn-lg.btn-alt-success.dropdown-toggle.dropdown-toggle-split {
    background: #2b2b2b;
    border: 1px solid #977e40;
}

body.dark .dropdown-toggle::after {
    filter: brightness(0) saturate(100%) invert(66%) sepia(36%) saturate(625%) hue-rotate(5deg) brightness(89%) contrast(86%) !important;
}

body.dark .btn.btn-primary.btn-lg {
    background: #bd9c49;
}

.irs--round {
    margin: 16px 0 24px;
}

.irs--round .irs-from:before,
.irs--round .irs-to:before,
.irs--round .irs-single:before {
    border-top-color: #AA0909;
}

body.dark .irs--round .irs-from:before,
body.dark .irs--round .irs-to:before,
body.dark .irs--round .irs-single:before {
    border-top-color: #BD9C49;
}

.irs--round .irs-min,
.irs--round .irs-max {
    color: #080808;
    font-family: Evolventa Bold;
    font-size: 14px;
    line-height: normal;
    top: 0;
    padding: 4px 8px;
    background-color: #F5F5F5;
    border-radius: 4px;
}

#currency-conversions .dropdown-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

@media (max-width: 1430px) {

    .form-control.form-control-amount {
        height: 100%;
    }

    .input-group-text {
        padding: 13px 24px;
        flex-direction: column;
        gap: 8px;
        min-width: 133px;
        font-size: 16px;
        line-height: 120%;
    }

    .payment-system-block.fw-bold {
        font-size: 16px;
        line-height: 120%;
    }

    .selectable-payment-system {
        padding: 16px 24px;
    }

    .btn.btn-primary.btn-lg {
        font-size: 16px;
        line-height: 120%;
    }

    .balance_filter .form-label,
    .field-paymentex-payment_system_type .form-label {
        font-size: 12px;
        line-height: 120%;
    }

    .form-select.form-select-filter,
    #paymentex-payment_system_type {
        font-size: 14px;
        line-height: 120%;
    }

    .percent_item {
        font-size: 16px;
        line-height: 120%;
        padding: 12px;
    }

    .percent_title {
        font-size: 16px;
        line-height: 120%;
    }

    .support_title {
        font-size: 24px;
        line-height: 130%;
    }

    .support_after {
        font-size: 14px;
        line-height: 130%;
    }

    .input-group-text {
        font-size: 16px;
        line-height: 120%;
    }

    #paymentex-payment_system {
        grid-template-columns: 1fr 1fr;
    }

    .input-group-text {
        min-width: 165px;
    }

    .input-mc-text {
        right: 200px;
    }

    .left_block {
        max-width: 299px;
    }

    .round_but {
        min-width: calc(100% - 18px);
    }

    .balance_left {
        flex-direction: column-reverse;
    }

    .irs--round .irs-bar {
        height: 6px;
    }

    .irs--round .irs-line {
        height: 5px;
    }

    .irs--round .irs-handle {
        border: 5px solid #AA0909;
        top: 23px;
        width: 32px;
        height: 32px;
    }

    .irs--round {
        margin: 32px 0 27px;
    }

    .balance_wrapper {
        align-items: flex-start;
    }
}

@media (max-width: 1000px) {

    .balance_body {
        gap: 32px;
        padding: 14px;
    }

    #paymentex-payment_system {
        padding: 0 0 40px;
        gap: 8px;
    }

    .left_body {
        padding: 14px;
    }

    .balance_wrapper {
        gap: 16px;
    }

    .balance_left {
        gap: 16px;
    }

    .balance_filter {
        display: flex;
        flex-direction: column;
        padding: 16px 0;
    }
}

@media (max-width: 835px) {

    .balance_wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .balance_left {
        gap: 32px;
    }

    .balance_left {
        width: 100%;
    }

    .left_block {
        max-width: 100%;
    }
}

@media (max-width: 555px) {

    .balance_first .input-group {
        flex-direction: column;
    }

    .input-group-text {
        min-width: 100%;
        padding: 12px 16px;
        flex-direction: row;
    }

    .irs--round {
        margin: 32px 0 16px;
    }

    .input-mc-text {
        right: 32px;
    }

    .btn-group.dropright {
        width: 100%;
    }

    .btn.btn-primary.btn-lg {
        width: 100%;
        padding: 19px 0;
    }

    .btn.btn-lg.btn-alt-success.dropdown-toggle.dropdown-toggle-split {
        min-width: 80px;
    }

    #paymentex-payment_system {
        grid-template-columns: 1fr;
    }

    .field-paymentex-payment_system_type {
        padding: 0 0 16px;
    }
}