.telegram-block-module {
    clear: both;
    margin: 10px 0 12px !important;
    font-family: inherit;
}

.telegram-block-module,
.telegram-block-module * {
    box-sizing: border-box;
}

.telegram-block-module .telegram-block-head.online_users_info {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    margin: 0 !important;
    padding: 7px 10px !important;
    color: #fff !important;
    background: #3b817b !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

.telegram-block-module .telegram-block-head .glyphicon {
    top: 0;
    margin: 0;
    color: #fff;
    font-size: 13px;
}

.telegram-block-title {
    overflow: hidden;
    flex: 1 1 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.telegram-block-status {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-left: auto;
    background: #3df19a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(61, 241, 154, .18), 0 0 9px rgba(61, 241, 154, .7);
}

.telegram-block-warning .telegram-block-status {
    background: #f4b642;
    box-shadow: 0 0 0 3px rgba(244, 182, 66, .2), 0 0 9px rgba(244, 182, 66, .68);
}

.telegram-block-module .telegram-block.block,
.telegram-block-module .telegram-block {
    isolation: isolate;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 8px !important;
    color: #243544 !important;
    background: #f4f7fa !important;
    border: 1px solid #dfe6eb !important;
    border-top: 0 !important;
    border-radius: 0 0 2px 2px !important;
    box-shadow: none !important;
}

.telegram-block-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(244, 247, 250, .96), rgba(244, 247, 250, .86)),
        url("telegram-banner.jpg");
    background-position: center;
    background-size: cover;
    opacity: .7;
    pointer-events: none;
}

.telegram-block-body {
    position: relative;
    z-index: 1;
    padding: 0 !important;
    text-align: left !important;
}

.telegram-block-count {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    margin: 0 0 8px !important;
    padding: 10px 11px !important;
    color: #263849 !important;
    background: rgba(255, 255, 255, .9) !important;
    border: 1px solid #d8e1e8 !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 2px rgba(35, 55, 70, .06);
}

.telegram-block-count > .glyphicon {
    display: none !important;
}

.telegram-block-count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #32b8ee, #1689d2);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
}

.telegram-block-count-icon .glyphicon {
    top: 0;
    font-size: 17px;
}

.telegram-block-count-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.telegram-block-count strong {
    display: block;
    color: #1d2d3b !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.telegram-block-label {
    display: block;
    color: #597184 !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
}

.telegram-block-warning .telegram-block-count strong,
.telegram-block-count.telegram-block-warning strong {
    color: #9a6a14 !important;
}

.telegram-block-join,
.telegram-block-join:hover,
.telegram-block-join:focus {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    padding: 9px 10px !important;
    color: #fff !important;
    background: #278fcf !important;
    border: 1px solid #1d7db8 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
    transition: background .16s ease, border-color .16s ease;
}

.telegram-block-join:hover {
    color: #fff !important;
    background: #1f7fb9 !important;
    border-color: #176a9c !important;
}

.telegram-block-join .glyphicon {
    top: 0;
    font-size: 13px;
}

@media (max-width: 420px) {
    .telegram-block-count-text {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .telegram-block-label {
        text-align: left;
    }
}
