#histomer-greetings {
    margin-left: -400px;
    width: 800px;
    max-width: 800px;
}

#histomer-greetings .close {
    z-index: 400;
}

.histomer-redirect {
    padding: 20px;
    position: relative;
}

.histomer-redirect__border {
    border: 1px solid #4b2ca3;
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
}

.histomer-redirect__inner {
    margin: 0 auto;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 300;
}

.histomer-redirect__content {
    flex: 1;
    text-align: center;
    color: #4b2ca3;
}

.histomer-redirect__title {
    font-size: 26px;
    margin-bottom: 25px;
}

.histomer-redirect__content p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.histomer-redirect__btn {
    display: inline-block;
    background-color: #5637a2;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 60px;
    font-size: 18px;
    margin-bottom: 30px;
    cursor: pointer;
}

.histomer-redirect__btn:hover {
    background-color: #482a80;
    color: #ffffff;
}

.histomer-redirect__btn:active,
.histomer-redirect__btn:focus {
    color: #ffffff;
}

.histomer-redirect__footer {
    font-size: 20px;
    color: #9a8f8f;
    letter-spacing: 1px;
}

.histomer-redirect__image {
    flex: 1;
    text-align: center;
}

.histomer-redirect__image img {
    max-width: 100%;
    height: auto;
}

.histomer-redirect__image {
    display: none;
}

.histomer-redirect__desktop-img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    max-height: 100%;
    z-index: 200;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
    #histomer-greetings {
        width: 350px;
        max-width: 350px;
        margin-left: -175px;
    }

    #histomer-greetings .close {
        right: 17px;
        top: 17px;
    }

    .histomer-redirect {
        padding: 10px;
    }

    .histomer-redirect__desktop-img {
        display: none;
    }

    .histomer-redirect__inner {
        flex-direction: column;
        padding: 30px 20px;
    }

    .histomer-redirect__content .histomer-redirect__title {
        font-size: 20px;
    }

    .histomer-redirect__content p {
        font-size: 16px;
    }

    .histomer-redirect__content p span {
        white-space: nowrap;
    }

    .histomer-redirect__btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .histomer-redirect__footer {
        font-size: 18px;
    }

    .histomer-redirect__image {
        display: block;
    }

    .histomer-redirect__border {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}
