/* Areas */

/*
# Modals
*/
.modal__back {
    display: flex;
    position: fixed;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0s 0.5s;
}

.modal__back.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0s 0s;
}

.modal__body {
    width: 460px;
    max-width: 90%;
    /*height: 300px;*/
    margin: auto;
    margin-top: 65px;
    background-color: #fff;
    position: relative;
    padding: 32px 50px;
}
.modal__close {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 0;
    right: -40px;
    opacity: .85;
    cursor: pointer;
}
.modal__close:hover {
    opacity: 1;
}

.modal_button {
    width: 300px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    background-color: #0d0;
    border-radius: 6px;
    margin-top: 15px;
    color: pink;
    font-weight: bold;
}

.itf_modal_area {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000aa;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.itf_modal_area.visible {
    opacity: 1;
    visibility: visible;
}
/* Modal Common */


.modal_body {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    max-width: 90vw;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 6px;
}

.modal_header {
    position: relative;
    height: 50px;
    background: #efefef;
    border-bottom: 2px solid #888888;
    padding: 9px 16px 9px 32px;
    line-height: 32px;
    font-size: 24px;
    color: var( --black);
    font-weight: 600;
}

.modal_header .modal_close {
    float: right;
    cursor: pointer;
}

.modal_header .modal_close:hover i{
    color: var( --black );
}

.modal_content {
    height: auto;
    padding: 16px 32px 16px 50px;
    overflow-y: auto;
    min-height: 30vh;
    min-width: 30vw;
}

.modal_footer {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    height: 50px;
    background: #efefef;
    border-top: 2px solid #888888;
    padding: 9px 16px 9px 32px;
    min-height: 50px;
}

.modal_flex {
    display: flex;
    flex-direction: column;
}

.modal_flex__column {
    margin-bottom: 8px;
    min-width: 360px;
}

.modal_flex__column:last-of-type {
    margin-bottom: 0;
}

.remove_modal_column,
.add_modal_column {
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 50%;
    vertical-align: top;
    margin-top: 5px;
    cursor: pointer;
    color: #ccc;
}

.remove_modal_column:hover,
.add_modal_column:hover {
    color: #000;
    border-color: #000;
}

/*Levels List */

.levels_list__element {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cccccc;
}

.levels_list__element:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.levels_list__element_number {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    font-size: 18px;
    color: var( --title_font );
    font-family: var( --regular_font );
    min-width: 30px;
}

.levels_list__choose_button {
    margin-left: 15px;
    float: right;
}

/* Color Picker */

.color_picker_cont {

}

.color_picker_area {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    text-align: center;
}

.color_picker__body {
    position: relative;
    display: inline-block;
    min-width: 320px;
    min-height: 320px;
    max-width: 70%;
    max-height: 80%;
    background-color: #fff;
    margin: 10vh auto;
    border-top-width: 2px;
    overflow-y: auto;
    text-align: justify;
}

.color_picker__header {
    display: flex;
    flex-direction: row;
    padding: 20px;
    height: 58px;
    background-color: #f5f6f7;
    border-bottom: 1px solid #cccccc;
}

.color_picker__title {
    font-family: var(  --title_font );
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 0.1px;
    line-height: 0.5;
    color: #2c314f;
    margin: 0;
}

.color_picker__close {
    right: 20px;
    top: 15px;
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 2px;
    border: solid 2px #989fa5;
    text-align: center;
    cursor: pointer;
    color: #989fa5;
    z-index: 300;
    font-size: 24px;
    font-weight: 900;
}

.color_picker__page {
    width: 100%;
    padding: 15px 30px;
}

.color_picker__footer {
    padding: 0 30px 15px;
    text-align: right;
}

/* Choose User Client */

.modal__client_string {
    text-align: left;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.client_string__col {
    text-align: left;
    margin-right: 15px;
    display: inline-block;
}

.client_string__col:last-of-type {
    margin-right: 0;
}

.client_string__avatar {
    width: 50px;
    display: inline-block;
}

.client_string__avatar img {
    width: 100%;
}

.client_string__name {
    font-size: 24px;
    font-weight: 600;
}

.client_string__button {

}

.client_string__button .blue_button {
    margin-bottom: 0;
}

/* Modal Table */

.modal_table {
    font-size: 14px;
}

.modal_table__header {
    display: flex;
    flex-direction: row;
    justify-content: start;
    border-bottom: 2px solid #666;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    height: 50px;
}

.modal_table__row {
    display: flex;
    height: 50px;
    border: 1px solid #ccc;
    flex-direction: row;
    justify-content: start;
    box-shadow: 4px 4px 8px #888, -3px 0 0 #ccc;
    cursor: move;
    background-color: #efefef;
}

.modal_table__col {
    display: flex;
    align-items: center;
    justify-content: center
}

/* Modal Col's */

.mt_col__name {
    width: 220px;
}

.mt_col__edit,
.mt_col__remove {
    width: 60px;
    cursor: pointer;
}

.mt_col__edit:hover span i {
    color: var( --light_blue );
}

.mt_col__remove:hover span i {
    color: var( --red );
}

/* Modal stickers */

.modal_sticker {
    position: relative;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 520px;
}
.modal_sticker__header {
    background: #eee;
    height:40px;
    line-height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-size: 22px;
}

.sticker_icon {
    width: 39px;
}

.sticker_icon:hover span i {
    color: var( --light_blue );
}

.sticker_position {
    width: 39px;
    cursor: pointer;
    transition: transform 0.5s;
}

.sticker_position.collapse {
    transform: rotate(180deg);
}

.modal_sticker__body {
    display: block;
    border: 1px solid var( --grey );
    border-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    height: 0;
    padding: 0;
    border-radius: 4px;
    line-height: 1.5em;
    font-size: 14px;
    font-family: var( --regular_font);
}

.modal_sticker.collapse .modal_sticker__body {
    opacity: 1;
    top: 40px;
    visibility: visible;
    height: auto;
    padding: 15px;
}

.sticker_choose {
    position: absolute;
    right: -30px;
    top: 8px;
    cursor: pointer;
    color: var( --dark_green);
}

.modal_get_pair_rate {
    cursor: pointer;
}

.modal_flex__column .price_history {
    display: block;
    float: left;
}

.modal_body .wp-editor-wrap,
.modal_wp_editor_area {
    min-height: 420px;
    width: 920px;
}

.modal_close:hover svg {
    transition: fill 0.3s;
    fill: #000;
}