:root {
    --max-popup-width: 86%;
}

/* Popup */
/* =========================
   Popup (infrastructure)
========================= */
/*

.popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}



.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
*/

.popup-request {
    position: relative;
    max-width: 100%;
}

.popup-request__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.popup-request__close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    min-height: auto;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.popup-request__close span {
    display: block;
    transform: translateY(-1px);
}

/* Image */
.popup-request__image {
    height: 232px;
    border-radius: 13px;
    overflow: hidden;
}
.popup-request__image img {
    display: block;
    width: 100%;
    min-height: 232px;
    object-fit: cover;
}

/* Content */

.popup-request__content {
    padding: 24px 20px;
}

.popup-request__title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
}

.popup-request__text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-grey);
}

.popup-request__button {
    width: 100%;
}

.popup-request--success .popup-request__button {
    color: #126E1A;
    background-color: #2180275E;
    border: 0 none;
}

.wpcf7-form > p {
    margin: 0;
}

/* Спиннер у формы */
.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    margin: 0;          /* убираем отступы CF7 */
    display: none;      /* скрыт по умолчанию */
    z-index: 10;
}

.wpcf7-form.submitting .wpcf7-spinner {
    display: block;
}


@media (min-width: 1025px) {
    .popup-request {
    }

    .popup-request__container {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        min-width: auto;
    }

    .popup-request__close {
        top: 8px;
        right: 8px;
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .popup-request__image {
        flex: 0 0 50%;
        height: auto;
    }

    .popup-request__image img {
        height: 422px !important;
        object-fit: cover;
        border-radius: 13px;
    }

    .popup-request__content {
        flex: 0 0 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 16px 24px 0;
    }

    .popup-request__title {
        font-size: 32px;
    }

    .popup-request__text {
        font-size: 16px;
        max-width: 325px;
    }

    .popup-request--success .popup-request__button {
        padding: 12px;
        margin-bottom: 36px;
    }

    .popup-request--success .popup-request__button span {
        font-size: 20px;
        margin-right: 16px;
    }
}

/* Rewrite Pum styles */
html.pum-open,
body.pum-open {
    position: relative;
    width: 100%;
}

.pum-overlay {
    left: 0;
    right: 0;
    width: auto !important;
}

.pum-container {
    width: auto !important;
    max-width: var(--max-popup-width) !important;
}

.pum-content {
    width: auto !important;
}

#pum-1511,
#pum-1512,
#pum-1663,
#pum-1710,
#pum-1797 {
    background:rgba(0, 0, 0, 0.7);
}

#popmake-1511.pum-container,
#popmake-1512.pum-container,
#popmake-1663.pum-container,
#popmake-1710.pum-container,
#popmake-1797.pum-container {
    max-width: var(--max-popup-width) !important;
    width: auto !important;
    --padding: 10px !important;
    border-radius: 24px;
}

#popmake-1511 .popmake-close,
#popmake-1512 .popmake-close,
#popmake-1663 .popmake-close,
#popmake-1710 .popmake-close,
#popmake-1797 .popmake-close{
    display: none;
}
