/* Всплывающая подсказка IN-HEAT */
/* Скрываем стандартную кнопку KeepInCRM */
		#keepincrmChatButton {
			opacity: 0 !important;
			visibility: hidden !important;
			pointer-events: none !important;
		}
		#keepincrmContainer{
			padding-bottom:0!important;
			height: 0;
		}
	@media (min-width:600px){
		#keepincrmChatIframe {
		transform: translate(5px,34px) !important;
		}
		#keepincrmContainer{
			z-index: 1002!important;
		}
	}
/* ===== IN-HEAT CHAT HINT ===== */

#inheat-chat-hint {
    position: fixed;
    left: 20px;
    bottom: 65px;
    z-index: 9999998;

    box-sizing: border-box;
    width: 350px;
    max-width: calc(100vw - 32px);
    padding: 0;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 28px rgba(0,0,0,.16);
    overflow: hidden;

    color: #1c2430;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;

    animation: inheatHintAppear .35s ease-out;
}

#inheat-chat-hint[hidden] {
    display: none !important;
}

/* ===== ЧЕРНАЯ ШАПКА ===== */

.inheat-chat-hint__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    background: #000;
    color: #fff;
}

/* Аватары */

.inheat-chat-hint__avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 2px;
}

.inheat-chat-hint__avatar {
    display: block;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    background: #ddd;
}

.inheat-chat-hint__avatar + .inheat-chat-hint__avatar {
    margin-left: -13px;
}

/* Название команды */

.inheat-chat-hint__team {
    flex: 1;
    min-width: 0;
}

.inheat-chat-hint__team-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

/* Онлайн статус */

.inheat-chat-hint__status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 12px;
    color: #e5e7eb;
}

.inheat-chat-hint__online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Крестик */

.inheat-chat-hint__close {
    position: static;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

.inheat-chat-hint__close:hover {
    color: #3498DB;
    opacity: 1;
}

/* ===== БЕЛАЯ ОБЛАСТЬ ===== */

.inheat-chat-hint__body {
    padding: 18px 17px 20px;
    background: #fff;
}

/* Приветствие */

.inheat-chat-hint__heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Вопрос */

.inheat-chat-hint__question {
    font-size: 14px;
    margin-bottom: 17px;
}

/* Кнопки */

.inheat-chat-hint__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.inheat-chat-hint__action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    max-width: 100%;
    padding: 8px 13px;

    border: 0;
    border-radius: 22px;
    background: #f3f4f6;

    color: #202632;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;

    transition: background .2s, color .2s;
}

.inheat-chat-hint__action:hover {
    background: #e7f3fc;
    color: #167ab9;
}

.inheat-chat-hint__arrow {
    color: #3498DB;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== АНИМАЦИЯ ===== */

@keyframes inheatHintAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Нижняя панель чата */

.inheat-chat-hint__composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #edf0f3;
    box-sizing: border-box;
}

/* Поле ввода */

.inheat-chat-hint__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 5px 6px 5px 12px;
    border: 1px solid #dce3ee;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s;
	max-height: 44px;
	box-sizing: border-box;
}

.inheat-chat-hint__input-wrap:hover,
.inheat-chat-hint__input-wrap:focus-within {
    border-color: #3498DB;
}

.inheat-chat-hint__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: #1c2430;
    font-family: inherit;
    font-size: 14px;
    cursor: text;
}

.inheat-chat-hint__input::placeholder {
    color: #65758c;
    opacity: 1;
}

/* Скрепка и смайлик */

.inheat-chat-hint__composer-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #65758c;
    cursor: pointer;
}

.inheat-chat-hint__composer-tool:hover {
    color: #3498DB;
}

.inheat-chat-hint__composer-tool svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Черная кнопка отправки */

.inheat-chat-hint__send {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 7px;
    border: 0;
    border-radius: 7px;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
	box-sizing: border-box;
}

.inheat-chat-hint__send:hover {
    background: #3498DB;
}

.inheat-chat-hint__send svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Мобильная версия */



/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media (max-width: 600px) {
    #inheat-chat-hint {
        right: 12px;
        bottom: 65px;
        width: 330px;
		left:auto;
    }

    .inheat-chat-hint__header {
        padding: 10px 12px;
    }

    .inheat-chat-hint__body {
        padding: 16px 15px 18px;
    }

    .inheat-chat-hint__heading {
        font-size: 15px;
    }

    .inheat-chat-hint__action {
        font-size: 12px;
    }
	.inheat-chat-hint__avatar {
		width: 24px;
		height: 24px;
		min-width: 24px;
	}
	   .inheat-chat-hint__composer {
        padding: 10px 12px;
        gap: 8px;
    }

    .inheat-chat-hint__input-wrap {
        padding-left: 10px;
        gap: 6px;
    }

    .inheat-chat-hint__input {
        font-size: 16px;
    }

    .inheat-chat-hint__composer-tool {
        width: 23px;
    }

    .inheat-chat-hint__send {
        width: 32px;
        height: 32px;
    }
}