html.page-imlist,
body.page-imlist {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body.page-imlist .imlist-page,
body.page-imlist .imlist-page--thankyou {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 36px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #eef3f8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    direction: rtl;
    font-family: 'Heebo', 'Assistant', Arial, sans-serif;
    color: #111;
}

body.page-imlist .imlist-page__content {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

.imlist-page__overlay {
    display: contents;
}

.imlist-page__logo {
    margin-bottom: 28px;
}

.imlist-page__logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
}

.imlist-page__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 28px;
}

.imlist-page__title--small {
    font-size: 18px;
    margin-bottom: 20px;
}

.imlist-form__phone-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: ltr;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.imlist-form__country {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-right: 1px solid #e5e5e5;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.imlist-form__phone {
    flex: 1;
    min-width: 0;
    width: 0;
    border: 0;
    background: transparent;
    padding: 16px 14px;
    font-size: 16px;
    outline: none;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
}

.imlist-form__phone::placeholder {
    color: #9a9a9a;
}

.imlist-form__submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #1f1f1f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.imlist-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.imlist-form__disclaimer,
.imlist-page__legal,
.imlist-page__bottom {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.imlist-page__legal a,
.imlist-page__bottom a {
    color: inherit;
    text-decoration: underline;
}

.imlist-form__error {
    color: #c0392b;
    font-size: 13px;
    margin: 0 0 12px;
}

.imlist-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #111;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.75);
    padding: 16px 18px;
    margin: 0 auto 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.imlist-coupon__code {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
    word-break: break-all;
}

.imlist-coupon__copy {
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.imlist-coupon__copied {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a7f37;
    text-align: center;
}

@media (max-width: 480px) {
    body.page-imlist .imlist-page,
    body.page-imlist .imlist-page--thankyou {
        padding: max(20px, env(safe-area-inset-top)) 36px max(20px, env(safe-area-inset-bottom)) 36px;
    }

    body.page-imlist .imlist-page__content {
        max-width: 100%;
    }

    .imlist-page__logo img {
        max-width: 150px;
    }

    .imlist-form__country {
        padding: 0 10px;
        font-size: 13px;
    }

    .imlist-form__phone {
        padding: 14px 12px;
        font-size: 15px;
    }

    .imlist-page__title {
        font-size: 20px;
    }
}
