#custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* félátlátszó fekete */
    z-index: 999998;
}

#custom-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:#fff;
    padding: 0px;
    z-index:999999;
    box-shadow:0 0 10px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #f78e1e;
}

#custom-popup #close-popup {
    position:absolute;
    top:10px;
    right:10px;
    display: flex;
    background-color: #2159aa !important;
    color: #FFF !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: 1;
}

#custom-popup #close-popup:hover {
    background-color: #f78e1e !important;
}

#custom-popup .custom-popup-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
}

#custom-popup .custom-popup-bg {
    background: url(https://www.yarooms.com/hs-fs/hubfs/Blog%20post%20photos%202-min.jpg?width=928&height=523&name=Blog%20post%20photos%202-min.jpg);
    min-width: 300px;
    min-height: 300px;
    object-fit: cover;
    background-size: cover;
    background-position: center center;
}

#custom-popup .custom-popup-text {
    width: 400px;
    padding: 1.5rem;
}

.custom-popup-text h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.custom-popup-text p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: justify;
}

.custom-popup-text input[type="email"] {
    border: 1px solid #2159aa !important;
    padding: 15px;
    margin: 0.75rem auto 1rem auto;
    height: 40px;
    font-size: 17px;
    color: #2159aa !important;
}

.custom-popup-text .mc4wp-form-fields input[type="submit"] {
    background-color: #2159aa !important;
    margin: 0 auto !important;
    color: #FFF !important;
    font-size: 16px;
    font-weight: bold;
    border: none !important;
    cursor: pointer;
    padding: 12px 30px !important;
}

.custom-popup-text .mc4wp-form-fields input[type="submit"]:hover {
    background-color: #f78e1e !important;
}

.mc4wp-response p {
    font-size: 13px;
    text-align: center;
    margin-top: 0.6rem !important;
    margin-bottom: 0 !important;
    font-style: italic;
    line-height: 16px;
    color: red;
}

body.no-scroll,
html.no-scroll {
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    #custom-popup .custom-popup-inner {
        display: flex;
        flex-direction: column;
    }
    #custom-popup .custom-popup-bg {
        min-height: 220px;
    }
    #custom-popup .custom-popup-text {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        width: 100%;
    }
    #custom-popup {
        min-width: 460px;
    }
}

@media screen and (max-width: 500px) {
    #custom-popup {
        min-width: auto;
        width: calc(100% - 40px);
        margin: 20px auto;
    }
}

@media screen and (max-width: 380px) {
    #custom-popup {
        width: calc(100% - 30px);
        margin: 15px auto;
    }
}

@media screen and (max-width: 330px) {
    #custom-popup,
    #custom-popup-overlay {
        display: none !important;
    }