.popup-menu {
    display: flex;
    flex-direction: column;
    max-height: 50vh;
}

.popup-menu__header {

}

.popup-menu__content {
    flex-grow: 1;
    overflow-y: auto;
}

.popup-menu__footer {

}

.error {
    color: #ff0000;
    font-weight: 500;
    text-align: center;
}

.deal-card-sum {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
}
.two-columns > * {
    flex-basis: 0;
    flex-grow: 1;
}

.tf-auth-box {
    display: grid;
    grid-template-columns: auto 40px;
    grid-column-gap: 10px;
}

.online-status {
    font-weight: 700;
    font-size: 12px;
    color: #2ECC71;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* with flexbox:
    display: flex;
    flex-wrap: wrap;
    */
}

/* Add border bottom to all items */
.grid-item {
    padding: 5px;
    border-bottom: 1px solid lightgrey;
    /* with flexbox:
    width: calc(50% - 21px);
    */
}

/* Remove border bottom from last item & from second last if its odd */
.grid-item:last-child, .grid-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

/* Add right border to every second item */
.grid-item:nth-child(odd) {
    border-right: 1px solid lightgrey;
}

.header-logo {
    background-size: 50px;
    width: 50px;
    background-image: url(https://smartbarter.ru/assets/images/logo.png)
}

a.profile-rec.clear {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px
}

.button-close {
    position: absolute;
    top: 0;
    right: 0;
}

.category_header {
    display: grid;
    grid-template-areas: 'sign h4';
    grid-column-gap: 5px;
    grid-template-rows: 20px;
    grid-template-columns: 20px 1fr;
}

.category_header_sign {
    grid-area: sign;
    height: 100%;
    width: 100%;
}

.category_header_text {
    height: 100%;
    line-height: 20px;
}

.multiline {
    white-space: pre-wrap;
}

.home__news__span {
    background: #fff;
    padding: 15px 0;
    color: #000
}

.auction-lot-card {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-column-gap: 8px;
    grid-template-areas: 'pic header' 'pic cat' 'pic desc' 'price timer';
}

.company__card {
    display: grid;
    grid-template-areas: "img title" "blank title" "desc desc";
    grid-template-rows: 55px 18px 1fr;
    grid-template-columns: 55px 1fr;
    height: 100%
}

.company__card__faves {
    display: grid;
    grid-template-areas: "img title delete" "desc desc desc";
    grid-template-rows: 50px 1fr;
    grid-template-columns: 50px 1fr 20px;
    height: 100%
}

.company__card__bottom {
    display: grid;
    grid-template-areas: 'left center right';
    grid-template-columns: 45% 10% 45%;
    grid-template-rows: 20px;
}
.company__card__bottom__left {
    grid-area: left;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 2px;
}
img.company__card__badge {
    display: inline-block!important;
    width: 20px;
    height: 20px;
}
.company__card__bottom__center {
    grid-area: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.company__card__bottom__right {
    grid-area: right;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
}

.company__company__img,
.company__company__img__reviews {
    border-radius: 20%;
    padding: 2px;
    position: relative;
}

.company__company__img {
    grid-area: img;
}

.company__img__frame {
    background: linear-gradient(45deg, #1000ff, #ff0000);
}

.company__img__wrapper {
    position: relative;
    padding: 2px;
    border-radius: 15%;
    background: white;
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 4px 0px rgba(34, 60, 80, 0.2);
}

.company__img {
    width: 100%;
    height: 100%;
    border-radius: 15%;
}

.company__img_star {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 35%;
    height: 35%;
}

.company__img_online {
    position: absolute;
    bottom: -3px;
    left: -3px;
    border-radius: 50%;
    background-color: #2ECC71;
    width: 14px;
    height: 14px;
    border: 2px solid white;
}

.company__company__delete {
    grid-area: delete;
    text-align: right;
}

.company__title {
    grid-area: title;
    font-size: 14px;
    font-weight: 600;
    padding-left: 10px;
    overflow: hidden;
}

.company__title__name {
    display: inline-block;
    max-height: 3em;
    overflow: hidden;
}

.company__company__desc {
    grid-area: desc;
    margin-top: 10px
}

.company__city {
    font-size: 12px;
    color: #504de4;
    padding: 2px;
}

.chat__contact {
    border-radius: 15px;
    font-size: 16px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin: 0 15px 15px;
    background: #fff
}

.chat__top__bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    display: flex
}

.category__company__view {
    border-right: 1px solid #504de4;
    padding: 0 5px;
    display: inline-block;
    margin-bottom: 5px
}

.category__company__view:last-child {
    border-right: none
}

.category__company__view:first-child {
    padding-left: 0
}

.category-box {
    text-align: center;
    display: grid;
    padding: 10px
}

div#itog_sum_block {
    margin-bottom: 25px;
    margin-top: -10px
}

.button_delete_product i {
    line-height: 13px;
    padding: 6px 1px
}

label {
    font-size: 14px;
    color: #504de4;
    font-weight: 600
}

.button_online {
    padding: 1px 7px !important;
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
}

.form-control-file input[type=file] {
    outline: 0;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    display: none
}

.form-control-file .label {
    border: 2px dashed grey;
    border-radius: 10px;
    display: block;
    padding: 10px;
    transition: border 300ms ease;
    cursor: pointer;
    text-align: center;
    color: gray
}

.form-control-file .label i {
    display: block;
    font-size: 24px;
    padding-bottom: 10px
}

.form-control-file .label i, .example-1 .label .title {
    color: grey;
    transition: 200ms color
}

.form-control-file .label:hover {
    border: 2px solid #000
}

.form-control-file .label:hover i, .example-1 .label:hover .title {
    color: #000
}

.description_product {
    height: 50px;
    overflow: hidden;
    line-height: 17px;
}

.product__img {
    height: 120px;
    border-radius: 10px
}

.product__title {
    word-break: break-all;
}

.product__img_big {
    height: 300px;
    border-radius: 10px
}

.fixedContainer {
    background-color: #ddd;
    position: fixed;
    padding: 2em;
    left: 50%;
    top: 0%;
    transform: translateX(-50%);
}

.product_card {
    display: grid;
    grid-template-columns: 4fr 6fr;
    grid-column-gap: 8px;
    grid-template-areas: 'pic header' 'pic cat' 'pic desc' 'price buy_btn';
}

.product_buy_btn, .button_delete_product {
    margin: 0 10px;
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 26px;
    width: 36px;
    height: 36px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: absolute;
    right: 0;
    bottom: 10px;
}

.button_show_product {
    margin: 0 10px;
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 26px;
    width: 36px;
    height: 36px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: absolute;
    right: 51px;
    bottom: 10px;
}

.deal_sort {
    background: #fff;
    display: flex;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)
}

.deal_sort_list {
    width: 100%;
    text-align: center;
    border-radius: 10px
}

.deal_sort_list a {
    padding: 10px 5px
}

.deal_sort_list a.active.show {
    color: #fff;
    border-radius: 10px;
    background: #504de4
}

.history_deal_element {
    padding: 10px 0
}

.info_deal {
    display: grid;
    grid-template-rows: 20px 20px auto;
    grid-row-gap: 5px;
}

.reply {
    padding: 10px;
    border-radius: 15px;
    background-color: #504de41c
}

.img-chat {
    border-radius: 50px;
    margin-right: 10px
}

button.search_btn {
    position: absolute;
    right: 15px;
    bottom: 15px;
    color: #504de4
}

button.search_btn i {
    background: #fff;
    border: none;
    box-shadow: none;
    font-size: 30px !important
}

span.message-data-name.font-14.font-600 {
    height: 50px;
    overflow: hidden
}

.input_home_public {
    background-color: #fff;
    border-radius: 15px !important;
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 14px;
    font-size: 16px;
    -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.input_home_public_button {
    border-radius: 0 15px 15px 0 !important;
    display: block;
    height: 50px;
    width: auto;
    line-height: 50px;
    padding: 0 14px;
    font-size: 14px;
    position: absolute;
    right: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}


.loader-element {
    position: absolute;
    z-index: 999;
    opacity: 0.8;
    background-color: #FFF;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tooltip {
    position: absolute;
    right: 0;
    font-size: 25px;
    margin: 13px 10px;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 75vw;
    top: -5px;
    right: 105%;
    background-color: #504de4;
    color: #fff;
    opacity: 95%;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 10%;
    left: 100%; /* To the right of the tooltip */
    margin-top: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #504de4;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

.rev_text {
    padding: 10px 10px 0 10px;
    border-radius: 10px 10px 5px 10px;
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
}

.rev_text::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: -0.5em;
    bottom: -1em;
    right: 10px;
    box-sizing: border-box;
    border: 0.5em solid;
    border-color: transparent transparent white white;
    transform-origin: 0 0;
    transform: rotate(-45deg);
    box-shadow: -3px 3px 2px 0 rgba(0, 0, 0, 0.08);
}

.survey-box {
    position: relative;
    display: grid;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    grid-template-areas: 'question question' 'btn_yes btn_no';
    grid-template-rows: minmax(35px, auto) auto;
    grid-template-columns: 1fr 1fr;
}

.slide-fade-enter-active {
    transition: all .3s ease;
}

.slide-fade-leave-active {
    transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.slide-fade-enter, .slide-fade-leave-to {
    transform: translateX(10px);
    opacity: 0;
}

.badge-highlight {
    padding: 0 6px;
    /*background: #504de4;*/
    color: #504de4;
    font-weight: bolder;
    border-radius: 19px;
    border: 1px solid #504de4;
    line-height: 22px;
    height: 22px;
}

.company__title.new-company-badge {
    background-image: url('/assets/images/new-company-badge.jpg');
    background-size: 65px;
    background-repeat: no-repeat;
    background-position: top right;
}