/* Контейнер для кнопки, подсказки и крестика */
.telegram-container {
    position: fixed; /* Фиксируем положение по вертикали */
    bottom: 30px; /* Положение снизу */
    left: 30px; /* Начальное положение слева */
    display: flex;
    align-items: center;
    z-index: 1000;
    cursor: move; /* Указатель курсора */
}

/* Стили для кнопки */
.telegram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Относительное позиционирование для крестика */
}

/* Ссылка с иконкой Telegram */
.telegram-link {
    display: block;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-icon {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* Закругление кнопки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень для кнопки */
    background-color: #0088cc;
}

/* Стили для подсказки справа */
.telegram-tooltip {
    margin-left: 10px; /* Отступ между кнопкой и подсказкой */
    background-color: #27a7e7; /* Цвет фона подсказки */
    color: white; /* Белый текст */
    padding: 12px 18px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1001;
    max-width: 180px; /* Ограничение по ширине */
    box-sizing: border-box;
}

/* Стили для крестика (кнопка закрытия) */
.close-button {
    position: absolute;
    top: -20px; /* Расположение над подсказкой */
    right: -20px; /* Расположение справа от подсказки */
    cursor: pointer;
    font-size: 18px;
    color: black; /* Черный цвет крестика */
    background-color: transparent; /* Прозрачный фон */
    border: none;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .telegram-icon {
        width: 50px;
        height: 50px;
    }

    .telegram-tooltip {
        font-size: 12px;
    }
    
    .close-button {
        width: 20px;
        height: 20px;
        font-size: 16px;
        top: -18px; /* Отрицательный отступ для мобильных */
        right: -18px; /* Отрицательный отступ для мобильных */
    }
}
