/* ТП */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

a {
    text-decoration: none;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

h4,
h5 {
    line-height: 1.5em;
    margin: 0;
}

hr {
    background: #e9e9e9;
    bottom: 0;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 1px;
    margin: 0;
    min-height: 1px;
}

img {
    border: 0;
    display: block;
    height: auto;
    max-width: 100%;
}

.input_container {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
    padding: 10px 20px;
    box-shadow: 0 -5px 20px 0 rgba(0,0,0,0.03);
    justify-content: space-between;
}

.rules_text {
    font-size: 9px;
    position: absolute;
    right: 45px;
    bottom: 21px;
    color: #00000059;
    font-family: 'Poppins';
}
input {
    border: 0;
    color: inherit;
    font-family: "Poppins", sans-serif;
    font-size: 100%;
    line-height: normal;
    margin: 0;
}

p {
    margin: 0;
}

.clearfix {
    margin-bottom: 25px;
}

#automatic_support_message_content {
	background-color: #ff02020f;
	animation: fadeIn 0.5s ease-in-out; /* Имя анимации, длительность и плавность */
}

/* Определение анимации с ключевыми кадрами */
@keyframes fadeIn {
  from {
    opacity: 0; /* Начальное состояние (прозрачный) */
  }
  to {
    opacity: 1; /* Конечное состояние (полностью видимый) */
  }
}

.support-description {
    font-size: 12px;
    display: flex;
    color: #ffffff7d;
    /* text-transform: uppercase; */
    align-items: center;
    justify-content: flex-start;
}

#live-chat {
	font-family: "Poppins", sans-serif;
    bottom: 0;
    z-index: 1;
    background: white;
    transition: transform 0.5s ease; /* Анимация скрытия */
    font-size: 15px;
    right: 40px;
    position: fixed;
    width: 340px;
    border-top-right-radius: 26px;
    box-shadow: 0 20px 40px 8px rgba(0,0,0,.25);
}
.closed {
    transform: translateY(383px); /* Смещение блока вниз */
}

.rotated {
    rotate: 180deg;
}

#live-chat .chat_header {
    background: linear-gradient(189deg, rgba(0, 98, 231, 0.85), rgba(5, 69, 166, 0.94) 67%);
    border-radius: 5px 5px 0 0;
    color: #FFF;
    cursor: pointer;
    padding: 16px 24px;
    border-top-right-radius: 26px;

}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#live-chat h4:before {
    background: #00ff3b;
    border-radius: 50%;
    padding: 2px;
    content: "";
    display: inline-block;
    height: 8px;
    margin: 0 8px 0 0;
    width: 8px;
    animation: blink 1s infinite; /* Продолжительность мигания 2 секунды */
}


#live-chat h4 {
    font-size: 15px;
}

.message-block {
    background-color: #1474f614;
    border-radius: 5px;
    padding: 10px;
}
.send_button {
    padding: 4px;
    display: flex;
    background: #0564a84f;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.5s ease;
}


#live-chat h5 {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.53);
}

#live-chat form {
    padding: 24px;
    box-shadow: 0px 0px 65px 0px rgba(0,0,0,0.05);
}

#live-chat input[type="text"] {
    background: #eff0f1;
    border: none;
    border-radius: 3px;
    padding: 8px;
    outline: none;
    width: 234px;
}
#live-chat input::placeholder {
    color: #5a5a5a7d;
}


.chat_message_counter {
    background: red;
    border: 1px solid #fff;
    border-radius: 50%;
    display: none;
    font-size: 12px;
    font-weight: bold;
    height: 28px;
    left: 0;
    line-height: 28px;
    margin: -15px 0 0 -15px;
    text-align: center;
    position: absolute;
    top: 0;
    width: 28px;
}

.chat_close {
    transition: transform 0.5s ease;
    display: block;
    float: right;
    margin: 0 -12px 0 0;
    width: 40px;
}

/* Стилизация полосы прокрутки для WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    background-color: transparent; /* Устанавливаем прозрачный фон для полосы прокрутки */
    width: 5px; /* Ширина полосы прокрутки */
}

/* Стилизация трека (фона) полосы прокрутки для WebKit */
::-webkit-scrollbar-track {
    background-color: transparent; /* Устанавливаем прозрачный фон для трека */
}

/* Стилизация маркера (ползунка) полосы прокрутки для WebKit */
::-webkit-scrollbar-thumb {
    background-color: #f7f7f7;; /* Цвет маркера (ползунка) */
    border-radius: 5px; /* Закругление углов маркера (ползунка) */
}
.chat {
    background-color: #fff;
}

.chat_history {
    height: 252px;
    padding: 8px 24px;
    overflow-y: scroll;
}

.chat_message img {
    border-radius: 5px;
    float: left;
    object-fit: cover;
    width: 40px;
    height: 40px;
}

.chat_message_content {
    margin-left: 56px;
}

.chat_time {
    float: right;
    font-size: 10px;
    margin-left: 2px;
    color: rgba(0, 0, 0, 0.51);
}




/* ЧАТ ФОТО */
/* Стандартное состояние изображения */
.image-container img {
    max-width: 100%;
    height: auto;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, z-index 0.3s;
}

/* Растянутое состояние изображения */
.image-container img.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2); /* Увеличение в 2 раза */
    z-index: 1000;
    min-width: 50%;
    max-height: none;
    max-width: 180px;
    cursor: pointer;
}

/* Фон для затемнения */
.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.backdrop.active {
    display: block;
}