/**
 * MWCODERS Popup Maker Styles
 */

/* Body class for preventing scroll when popup is open */
body.popup_scroll {
    max-height: 100vh;
    overflow: hidden;
}

#mwcoders-popup-root {
    display: none;
}

#mwcoders-popup-root.active {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.mwcoders-popup-overlay {
    padding: 20px;
    overflow: auto;
    max-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.mwcoders-popup-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
    text-align: center;
    font-family: inherit;
    animation: mwcoders-popup-fadein 0.3s;
    display: flex;
    flex-direction: column;
    /* max-height: 100vh; */
}



@keyframes mwcoders-popup-fadein {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mwcoders-popup-img-container {
    overflow: hidden;
}

.mwcoders-popup-img {
    width: 100%;
    display: block;
    min-height: 600px;
    object-fit: cover;
}

.mwcoders-popup-close {
    background-color: #fff;
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    cursor: pointer;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 10000px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #511e26;
}

.mwcoders-popup-close:hover {
    background-color: #511e26;
}
.mwcoders-popup-close:focus {
    background-color: #fff;
}

.mwcoders-popup-close:hover svg path {
    fill: #fff;
    stroke: #fff;
}

.mwcoders-popup-content {
    padding:24px;
    overflow-y: auto;
}

.mwcoders-popup-title {
    font-size: 42px;
    font-weight: bold;
    color: #5a2d2d;
    line-height: 1.2;
    margin-bottom: 16px;
}

.mwcoders-popup-title strong {
    color: #f48232;
}

.mwcoders-popup-desc {
    margin: 0 0 32px 0;
    color: #3a2d2d;
    font-size: 1.1rem;
    line-height: 1.4;
}

.mwcoders-popup-btn {
    display: inline-block;
    background: #f48232;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    margin: unset;
    text-align: center;
    padding-top: 13px;
    padding-bottom: 15px;
    font-size: 1.125rem;
    line-height: 100%;
    display: inline-block;
    font-family: "blogger_sansbold", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

.mwcoders-popup-btn:hover {
    color: #fff;
    background: #df630c;
}

/* Style for mobile popup */
@media (max-width: 767px) {
    .mwcoders-popup-overlay {
        padding: 16px;
    }

    .mwcoders-popup-modal {
        border-radius: 12px;
        width: 100%;
    }

    .mwcoders-popup-img {
        min-height: auto;
    }

    .mwcoders-popup-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .mwcoders-popup-desc {
        font-size: 16px;
    }

    .mwcoders-popup-btn {
        /* width: 100%; */
        /* padding: 10px 20px; */
        /* font-size: 1rem; */
        /* border-radius: 8px; */
        width: 100%;
    }
}

/* Style for hiding/showing images based on screen size */
.mwcoders-popup-img-mobile {
    display: block;
}

.mwcoders-popup-img-desktop {
    display: none;
}

@media (min-width: 768px) {
    .mwcoders-popup-img-mobile {
        display: none;
    }

    .mwcoders-popup-img-desktop {
        display: block;
    }
}


@media (min-width: 768px) {
    .mwcoders-popup-modal {
        flex-direction: row;
        text-align: left;
    }

    .mwcoders-popup-content {
        padding: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .mwcoders-popup-img-container {
        width: 50%;
        max-width: 400px;
    }

    .mwcoders-popup-img {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}