.eliseru-tg-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    pointer-events: none;
}

.eliseru-tg-popup.is-open {
    display: block;
    pointer-events: auto;
}

.eliseru-tg-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.eliseru-tg-popup__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(50vw, 560px);
    max-height: min(90vh, 720px);
    overflow: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.eliseru-tg-popup__inner {
    position: relative;
    padding: 48px 40px 36px;
    background: #faf4e2 url(/media/uploads/background-tg.webp) center/cover no-repeat;
    border-radius: 20px;
    text-align: center;
}

.eliseru-tg-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #454545;
    cursor: pointer;
    padding: 0;
}

.eliseru-tg-popup__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.eliseru-tg-popup__star {
    position: absolute;
    width: 28px;
    height: auto;
    opacity: 0.85;
}

.eliseru-tg-popup__star--1 {
    top: 18px;
    left: 24px;
}

.eliseru-tg-popup__star--2 {
    top: 42px;
    right: 56px;
    width: 36px;
}

.eliseru-tg-popup__star--3 {
    bottom: 24px;
    left: 40px;
}

.eliseru-tg-popup__title {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    font-family: "Manrope", sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #454545 !important;
    text-transform: none !important;
}

.eliseru-tg-popup__form-wrap {
    position: relative;
    z-index: 1;
}

.eliseru-tg-popup .custom-form-instance {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.eliseru-tg-popup .form-group {
    margin-bottom: 14px !important;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.eliseru-tg-popup .form-control {
    order: 2;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 80px;
    padding: 0 24px;
    font-size: 16px;
    background: #fff;
    box-shadow: none;
}

.eliseru-tg-popup .label-name {
    order: 1;
    position: static !important;
    transform: none !important;
    display: block;
    margin: 0 0 6px 8px;
    pointer-events: none;
}

.eliseru-tg-popup .label-name::before,
.eliseru-tg-popup .label-name::after {
    display: none !important;
}

.eliseru-tg-popup .label-name .content-name {
    position: static !important;
    color: #454545 !important;
    font-size: 14px;
    font-weight: 600;
}

/* Перебить глобальные стили сайта (светло-голубой label при focus) */
.eliseru-tg-popup .form-control:focus + .label-name .content-name,
.eliseru-tg-popup .form-control:valid + .label-name .content-name,
.eliseru-tg-popup .form-control:not(:placeholder-shown) + .label-name .content-name {
    color: #454545 !important;
}

.eliseru-tg-popup .form-control:focus {
    border: 2px solid #5ba8b8 !important;
    outline: none;
}

.eliseru-tg-popup .form-control::placeholder {
    color: transparent;
}

.eliseru-tg-popup .form-group-inline {
    margin-top: 8px;
}

.eliseru-tg-popup .button-theme_primary {
    width: 100%;
    height: 48px;
    font-size: 16px;
    border-radius: 80px;
}

.eliseru-tg-popup .privacy-policy {
    text-align: left;
    font-size: 12px;
    line-height: 1.35;
}

body.eliseru-tg-popup-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .eliseru-tg-popup__dialog {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        max-height: calc(100vh - 72px);
        border-radius: 20px 20px 0 0;
    }

    .eliseru-tg-popup__inner {
        border-radius: 20px 20px 0 0;
        padding: 36px 24px 28px;
    }

    .eliseru-tg-popup__title {
        font-size: 18px !important;
    }
}
