html.che-popup-opened,
body.che-popup-opened {
    overflow: hidden;
}

.che-popup {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    color: var(--che-popup-text-color);
    font-weight: normal;
    font-size: 1em;
    background-color: var(--che-popup-overlay-background-color);
}

.che-popup:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
}

.che-popup__wrapper {
    width: 100%;
    min-height: calc(100% - 3.5rem);
    max-width: 670px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.che-popup__close {
    top: 20px;
    right: 20px;
    width: 12px;
    position: absolute;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
}

.che-popup__bg {
    background-color: var(--che-popup-background-color);
    margin: 0 auto;
    max-width: 670px;
    width: 100%;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 18px 26px 6px rgba(0, 0, 0, 0.1);
}

.che-popup__body {
    width: 100%;
    height: 100%;
    max-width: 670px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.che-popup__caption {
    padding: 10px 20px;
}

.che-popup__picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.che-popup__picture img {
    max-width: calc(100vh - 6.5rem) !important;
    object-fit: contain;
}

.che-popup__content {
    width: 100%;
    max-width: 670px;
}

.che-popup__content img {
    width: 100%;
    object-fit: contain;
    max-height: calc(100vh - 6rem) !important;
}

.che-popup__grid {
    display: grid;
    align-items: center;
}

.che-popup__grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.che-popup__step {
    display: none;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.che-popup__step:nth-child(1) {
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

.che-popup__step:nth-child(2) {
    padding-bottom: 60px;
}

.che-popup__step:nth-child(2) .che-popup__step-title {
    max-width: 450px;
    margin: 0 auto 65px;
}

.che-popup__step:nth-child(3) .che-popup__step-over-title {
    margin-bottom: 10px;
}

.che-popup__step:nth-child(3) .che-popup__step-title {
    font-size: 24px;
    margin-bottom: 40px;
}

.che-popup__step:nth-child(3) .che-popup__button {
    font-size: 12px;
    line-height: 1.2;
    padding: 10px 25px;
    min-height: 52px;
    margin: 0;
}

.che-popup__step.active {
    display: block;
}

.che-popup__step-over-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--che-popup-primary-color);
}

.che-popup__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.che-popup__step-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.che-popup__loading-bar-container {
    width: 100%;
    height: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #FAF8F8;
    border-radius: 20px;
    position: relative;
}

.che-popup__loading-bar-label {
    font-weight: 400;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: -45px;
    left: 0;
}

.che-popup__loading-bar-label i {
    font-style: normal;
}

.che-popup__loading-bar-label:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    color: var(--che-popup-primary-color);
}

.che-popup__loading-bar .che-popup__loading-bar-label {
    left: auto;
    right: -18px;
    color: var(--che-popup-primary-color);
}

.che-popup__loading-bar {
    width: 0%;
    height: calc(100% + 2px);
    margin-top: -1px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    position: relative;
    background: repeating-linear-gradient(-45deg,
            var(--che-popup-loading-bar),
            var(--che-popup-loading-bar) 10px,
            var(--che-popup-loading-bar-stripe) 10px,
            var(--che-popup-loading-bar-stripe) 20px);
    transition: width 0.2s linear;
}

.che-popup__loading-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(14px);
    background: linear-gradient(270deg, var(--che-popup-loading-bar) 0%, rgba(181, 28, 120, 0) 100%);
}


.che-popup__button {
    min-height: 56px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    padding: 10px 25px;
    margin: 10px 0;
    border-radius: 40px;
    background-color: var(--che-popup-button-background-color);
    color: var(--che-popup-button-text-color);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.che-popup__button:hover {
    color: var(--che-popup-button-hover-text-color);
    background-color: var(--che-popup-button-hover-color);
}

.che-popup__casino {
    display: grid;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr min-content;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 0 2px 1px rgba(0, 0, 0, 0.02);
    background: #fff;
}

.che-popup__casino-logo {}

.che-popup__casino-logo img {
    max-width: 90px;
}

.che-popup__casino-promo-code {
    margin: 0 auto;
    height: 40px;
    width: 90px;
    border-radius: 3px;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    background: url(data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAoCAYAAAB+Qu3IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHKSURBVHgB7ZuxSgNBFEWvMSiC26hNUgWErbRJqlilsjIfkMrOj/IH/ACtrFKLWllZpdLKKjYKou86s7Kuu2F3ZZYQ7oFL2JkJPC7Lm7fMmzUUE5tGpkfTNPWccOc18nMJl6Zn09jUSY1fmOamiSlKjZ/737PU2Nyv75pOUuNPpqsFsQy8EqY+/hHyY8zGksSYF0vk12djSWKcma5RgzgTtChmD79fCLFs9Ey7EFXYNB0UTbZyxpiLhqY3iCp8mg5N/bzJ9cwzNy/mmhu4zUKU5wNuQzwybSDj3xrcpseJB7h08WeRqMQ2XCXCaocv7ndV04YrfW79oheI//IKZzJh3qbpMY1mnXgPEYKZVwdCrBwTiNBMWEdHEKGJWhCNIKMbIvky1AeKWB1UTIenwxw9hgjNWJthQ8johpDRDdKFCI08bhK1FIRnwBwto8Mz0GbYEDK6IWj0HCI08lisIDozDM/PmaFKvDD04BqUIp6wMFG/w3UpsSWs7Z9FPdidtA/n5xacl7Psoh5cKokh6pDcChiWWcwmvVPo5KUONLlf5Q80eQeiCuzCVSZYZnhNQNVIOXhZ6HjRgvaCOe6W7F5ngp9C19/KXH8r5AtDRFojxhaf1gAAAABJRU5ErkJggg==)
}

.che-popup__casino-text {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
}

.che-popup-overlay,
.che-popup {
    display: none;
}

.che-popup-opened .che-popup-overlay {
    display: block;
}

.che-popup-opened .che-popup {
    display: flex;
}

@media (max-width:670px) {
    .che-popup__content img {
        width: auto;
    }

    .che-popup__grid_2 {
        grid-template-columns: 1fr;
    }

    .che-popup__step:nth-child(1) {
        text-align: center;
        padding-left: 0;
    }

    .che-popup__step:nth-child(1) .che-popup__grid-item:first-child {
        order: 2;
    }

    .che-popup__casino {
        padding-bottom: 15px;
    }

    .che-popup__casino-logo {
        grid-column: 1/-1;
    }

    .che-popup__casino-text {
        grid-column: 1/3;
    }

    .che-popup__casino-promo-code {
        grid-column: 3/-1;
    }

    .che-popup__casino .che-popup__button {
        grid-column: 1/-1;
        max-width: 200px;
        justify-self: center;
    }
}

@media (max-width:767px) {
    .che-popup__bg {
        max-width: 90vw;
    }

    .che-popup__step-over-title {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .che-popup__step-title {
        font-size: 24px;
    }

    .che-popup__button {
        font-size: 16px;
    }

    .che-popup__step {
        padding-left: 0;
        padding-right: 0;
    }

    .che-popup__step:nth-child(3) .che-popup__step-over-title,
    .che-popup__step:nth-child(3) .che-popup__step-title {
        font-size: 20px;
    }

    .che-popup__step:nth-child(3) .che-popup__step-title {
        margin-bottom: 20px;
    }
}