.telegram-widget {
    display: grid;
    gap: 15px;
    max-height: 430px;      /* LIMIT HEIGHT */
    overflow-y: auto;       /* ENABLE SCROLL */
    padding-right: 5px;     /* PREVENT SCROLLBAR OVERLAP */
}

.telegram-widget-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.telegram-widget-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.telegram-widget-content {
    flex: 1;
}

.telegram-widget-text {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.3;
}

.telegram-widget-date {
    font-size: 12px;
    color: #777;
    margin: 0 0 6px 0;
}

.telegram-widget-link {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}
/* Limit widget height */
.tg-feed-wrapper {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px; /* prevents scrollbar overlap */
}

/* Optional: smooth scrolling */
.tg-feed-wrapper::-webkit-scrollbar {
    width: 6px;
}

.tg-feed-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tg-feed-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
