/* Виджет Telegram — стиль как у виджета заметок, оранжевый */

.telegram-widget-trigger {
    position: fixed !important;
    right: 0 !important;
    top: calc(55% + 95px) !important;
    transform: translateY(-50%) !important;
    background: linear-gradient(135deg,rgba(245, 123, 0, 0.51), #ef6c00);
    color: white;
    border: none;
    padding: 12px 5px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1048 !important;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    min-width: 36px;
    width: 36px;
    min-height: 140px;
    height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    overflow: hidden;
    will-change: transform, width, opacity;
    text-decoration: none;
}

.telegram-widget-trigger:hover {
    background: linear-gradient(135deg,rgba(239, 108, 0, 0.56), #e65100);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.45);
    transform: translateY(-50%) translateX(-2px) !important;
    width: 100px !important;
    padding: 12px 8px !important;
    color: white;
}

.telegram-widget-trigger:hover .telegram-trigger-text {
    opacity: 1 !important;
    max-width: 80px !important;
    margin-left: 4px;
}

.telegram-widget-trigger:hover .telegram-trigger-icon {
    margin-bottom: 6px;
}

.telegram-widget-trigger .telegram-trigger-icon {
    margin-bottom: 4px;
    transform: rotate(90deg);
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-widget-trigger .telegram-trigger-icon svg {
    width: 22px;
    height: 22px;
}

.telegram-widget-trigger .telegram-trigger-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.3;
}

/* Скрытие на мобильных */
@media (max-width: 768px) {
    .telegram-widget-trigger {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .telegram-widget-trigger {
        top: calc(55% + 75px) !important;
        min-height: 100px;
        padding: 16px 6px;
    }
}
