/*кастомизации кнопки загрузки изображения*/
.cabinet__photo-input {
    display: none; /* Скрываем стандартный input */
}
.cabinet__photo-label {
    border: 1px solid #87a0b2;
    border-radius: .625rem;
    padding: .625rem 1.25rem;
    font-family: Ubuntu;
    font-size: 1rem;
    color: #87a0b2;
    background-color: #fff;
    cursor: pointer;
}
/*фото юзера в кабинете*/
#profile-image {
    width: 100px; /* Ширина круга, в который будет вписана фотография */
    height: 100px; /* Высота круга, в который будет вписана фотография */
    border-radius: 50%; /* Создаем круглую форму */
    object-fit: cover; /* Обрезаем изображение, чтобы оно вписывалось в круг полностью */
    object-position: center center; /* Центрируем изображение внутри круга */
}

.error-label{
    color: #d22d72;
}
.success-message {
    display: none;
    background-color: #a5d6a7;
    color: #2e7d32;
    padding: 10px;
    margin: 10px 0;
}
/*question*/
.cabinet_question_container{
    position: relative;
    right: 20px;
}
.cabinet_question_phone{
    margin-top: 45px;
}
.cabinet_question_phone img,
.cabinet_question_birthday img{
    position: relative;
    top:30px;
    margin-right: 7px;
}
.cabinet_question_text,.cabinet_question_text_mobile_phone{
    border: 1px solid;
    border-color: #87A0B2;
    width: 250px;
/*    height:84px ;*/
    float: right;
    color:#87A0B2 ;
    padding: 10px;
    line-height: 16px;
    font-size: 14px;

}
.cabinet_question_text span{
    font-weight: bolder;
    font-size: 16px;
}

.cabinet_question_birthday{
    margin-top: 80px;
}
.cabinet_question_mobile_birthday,
.cabinet_question_mobile_phone{
   display: none;
}

/* Стили для Tooltip */
.custom-tooltip {
    border: 1px solid;
    border-color: #d5d3d5;
    border-radius: 4px; /* Закругленные углы */
    padding: 5px; /* Отступы внутри Tooltip */
    position: absolute;
    top: 35px;
}
.cabinet_question_phone_mobile,.cabinet_question_birthday_mobile {
    position: absolute; /* Позиционирование относительно ближайшего позиционированного родителя */
    background-color: #fff;
    z-index: 9999; /* Установить высокий z-index, чтобы блок был поверх других элементов */
    display: flex; /* Разместить содержимое блока внутри flex-контейнера */
    align-items: center; /* Выравнивание по вертикали по центру */
    justify-content: center; /* Выравнивание по горизонтали по центру */
    padding: 10px; /* Добавить отступы вокруг содержимого */
    margin-top: 25px;
    left: 50%; /* Расположить блок по горизонтали в центре */
    transform: translateX(-50%); /* Сдвигаем блок на половину его ширины влево */
}



/*стр Контакти*/
#map {
    width: 100%; /* 100% от родительского контейнера или окна браузера */
    height:50vh!important; /* 50% высоты окна браузера */
    max-width: 800px; /* Максимальная ширина, чтобы ограничить размер на больших экранах */
    margin: 0 auto; /* Центрировать карту по горизонтали */
}
.contacts__title{
    margin-bottom: 1.125rem;
}
.contacts__filter{
    margin-top: 7.125rem;
}


/*barcode*/

.config .barcode2D,
      #miscCanvas{
        display: none;
      }
      #submit{
          clear: both;
      }
      #barcodeTarget,
      #canvasTarget{
/*        margin-top: 20px;*/
      }   
    .barcode__barcode {
            height: 120px;
            position: relative;
            top: 150px;
            left: -120px;
    }

    .barcode__barcode img {
        padding: 0px;
        border: none;
        height: 90px;
        width: 450px;
    }

    .barcodeTarget img{
        margin-bottom: 120px;
    }

    .barcode__modal {
        margin-top: 95px;
/*        height: 45%;*/
        /* width: 100%; */

    }

    .barcode__wrapper{
        border-right: 2px solid #fff;
    }

/*message*/
/*Зміна статусу повідомлення для юзера (прочитано =1)*/
.user-message.no-read{
/*    background: #efefef;*/
}
span.new-user-message {
    display: inline-block;
    background-color: #ff9933; /* Цвет фона, замените на ваш желаемый цвет */
    color: #fff; /* Цвет текста внутри круга, замените на ваш желаемый цвет */
    border-radius: 50%; /* Создает круглую форму */
    width: 25px; /* Ширина круга, замените на ваш желаемый размер */
    height: 25px; /* Высота круга, замените на ваш желаемый размер */
    line-height: 25px; /* Выравнивание текста по центру */
    text-align: center; /* Выравнивание текста по центру */
    font-size: 18px; /* Размер текста, замените на ваш желаемый размер */
    margin-left: 8px;
}

.message-image-container{
    float: left;
    margin-right: 15px;
    width: 60px;
    height: 60px;
    top: 18px;
    position: relative;
    overflow: hidden;

}

.message_image{
    float: left;
    margin-right: 12px;
    width: 100%;
    height: auto;
    object-fit: cover; /* Заполняет контейнер, сохраняя соотношение сторон и обрезая избыточные части */
}
.message_container-mobile{
    display: none;
}
/*.message-date_create-mobile{
    display: none;
}*/
.message-description{
    width: 80%;
    font-weight: bold;
    text-transform: uppercase;
}
.message-date_create,.message-date_create-mobile{
    color: #999999;
}

.wrapper__button-about{
    width: auto!important;
}
/*end message*/


/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .cabinet_question_container{
        display: none;
    }
    .cabinet_question_mobile_birthday,
    .cabinet_question_mobile_phone{
        float: right;
        display: block;
        position: relative;
        right: 20px;
    }
    .cabinet__person-item input{
        font-size: 14px;
    }
    .message_container{
        display: none;
    }
    .message_container-mobile{
        display: block;
    }
    .message-image-container-mobile{
        display: block;
        margin-right: 0;
        width: 60px;
        height: 60px;
        overflow: hidden;
    }

    .message-date_create-mobile{
        display: block;
        font-weight: normal;
    }
    /*.message-date_create{
        display: none;
    }*/


}
/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .cabinet_question_container{
        display: none;
    }
    .cabinet_question_mobile_birthday,
    .cabinet_question_mobile_phone{
        float: right;
        display: block;
        position: relative;
        right: 125px;
    }
    .cabinet__person-item input{
        font-size: 14px;
    }
    .message-image-container-mobile{
        display: block;
        float: left;
    }
}

