#telegram_popup  .modal-content {
    background-clip: padding-box
}

#telegram_popup .modal-content, button {
    background-color: #fff
}

.fade {
    transition: opacity .15s linear
}

#telegram_popup .modal-content {
    display: -ms-flexbox
}

#telegram_popup button.close {
    padding: 0;
    border: 0;
    -webkit-appearance: none
}

#telegram_popup .close {
    font-weight: 700;
    line-height: 1;
    float: right;
    font-size: 1.5rem;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5
}

#telegram_popup .close:not(:disabled):not(.disabled):focus, .close:not(:disabled):not(.disabled):hover {
    color: #000;
    text-decoration: none;
    opacity: .75
}

.modal {
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    outline: 0
}

#telegram_popup .modal-dialog {
    position: relative;
    width: auto;
    pointer-events: none
}

#telegram_popup .modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transition: transform .3s ease-out, -webkit-transform .3s ease-out;
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%)
}

#telegram_popup .modal-content {
    position: relative;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0
}

#telegram_popup .modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
    background-color: #ff9800;
    color: white;
}

#telegram_popup .modal-header .close {
    color: red;
    padding: 0.6rem;
    margin: -1rem;
    background-color: #ff9800;
    font-size: 40px;
    line-height: 38px;
}

#telegram_popup .modal-title {
    line-height: 1.5;
    margin-bottom: 0;
    color: white !important;
    font-size: 17px;
    font-weight: bold;
}

#telegram_popup .modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem
}

#telegram_popup .modal-body h4 {
    font-size: 1rem;
    line-height: 1.6rem;
    color: black;
}

@media screen and (prefers-reduced-motion: reduce) {
    #telegram_popup .fade, .modal.fade .modal-dialog {
        transition: none
    }
}

#telegram_popup .modal-dialog {
    max-width: 500px;
    margin: 10rem auto
}

.show {
    display: block;
}

#telegram_popup .modal-footer {
    padding: 10px;
    text-align: center;
}

#telegram_popup .modal-footer button {
    transition: .3s;
    padding: 10px 25px;
    cursor: pointer;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-weight: 700;
    color: white;
    border: 0;
    margin: 10px;
}

#telegram_popup .modal-footer button:hover {
    transform: scaleX(1.1);
}

#telegram_popup .telegram-channel {
    font-size: 2rem;
    padding: 0.2rem;
    border: 1px solid #ff9800;
    background-color: #ff980042;
    border-radius: 10px;
    margin: 2rem 0 0 0;
    text-align: center;
    direction: ltr;
}

#telegram_popup .telegram-channel strong {
    color: #ff9800;
}

#telegram_popup .telegram-channel .alert-box {
    padding: 0;
    margin: 0;
    line-height: 30px;
}

#telegram_popup .telegram-channel small {
    font-size: 20px;
    color: #ff6000;
}

#telegram_popup #doNotShowAgainPopup {
    background-color: #007eff;
}

#telegram_popup #showPopupTomorrow {
    background-color: #d20000;
}
