.iw-idle-modal[hidden] {
    display: none !important;
}

.iw-idle-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
}

.iw-idle-modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .68);
}

.iw-idle-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    margin: auto;
    box-sizing: border-box;
    padding: 64px 52px 54px;
    overflow: hidden;
    border-radius: 36px;
    background: #ff5100;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #fff;
    text-align: center;
    animation: iw-idle-modal-enter .22s ease-out;
}

.iw-idle-modal__close {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.iw-idle-modal__close::before,
.iw-idle-modal__close::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 8px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
}

.iw-idle-modal__close::before {
    transform: rotate(45deg);
}

.iw-idle-modal__close::after {
    transform: rotate(-45deg);
}

.iw-idle-modal__close:hover {
    background: rgba(255, 255, 255, .26);
    transform: scale(1.06);
}

.iw-idle-modal__close:focus,
.iw-idle-modal__chat-link:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.iw-idle-modal__support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 126px;
    margin: 0 auto 34px;
}

.iw-idle-modal__support-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iw-idle-modal__title {
    margin: 0 auto 46px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.8px;
}

.iw-idle-modal__chat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 430px;
    box-sizing: border-box;
    padding: 20px 46px;
    border-radius: 48px;
    background: #59b747;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.iw-idle-modal__chat-link:hover,
.iw-idle-modal__chat-link:focus {
    background: #48a43a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.iw-idle-modal__chat-link .fa {
    margin-right: 22px;
    font-size: 66px;
}

body.iw-idle-modal-open {
    overflow: hidden;
}

@keyframes iw-idle-modal-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    .iw-idle-modal {
        padding: 10px;
    }

    .iw-idle-modal__dialog {
        padding: 44px 18px 30px;
        border-radius: 24px;
    }

    .iw-idle-modal__close {
        top: 10px;
        right: 10px;
        transform: scale(.84);
    }

    .iw-idle-modal__close:hover {
        transform: scale(.9);
    }

    .iw-idle-modal__support-icon {
        width: 74px;
        height: 74px;
        margin-bottom: 20px;
        font-size: 68px;
    }

    .iw-idle-modal__title {
        margin-bottom: 28px;
        font-size: 25px;
        line-height: 1.12;
        letter-spacing: -.3px;
    }

    .iw-idle-modal__chat-link {
        min-width: 0;
        width: 82%;
        padding: 15px 22px;
        font-size: 31px;
    }

    .iw-idle-modal__chat-link .fa {
        margin-right: 12px;
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iw-idle-modal__dialog {
        animation: none;
    }
}
