/* Moriwell Popup Modals - Styles */

/* Popup Links */
.moriwell-popup-links {
    text-align: center;
    margin: 30px 0;
}

.moriwell-popup-trigger {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    background: #4a4a4a;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;
}

.moriwell-popup-trigger:hover {
    background: #333;
}

/* Modal Overlay */
.moriwell-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.moriwell-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Modal Container */
.moriwell-modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 75vh;
    max-height: 555px;
    background: white;
    border: solid 2px rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.moriwell-modal-overlay.active .moriwell-modal-container {
    opacity: 1;
    transform: translateY(0);
}

/* Close Button */
body .moriwell-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #256f4a !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    z-index: 10;
    font-size: 30px !important;
    line-height: 0 !important;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    font-family: math;
}

body .moriwell-modal-close:hover {
    background: #000;
}

/* Image Section */
.moriwell-modal-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
}

/* Content Section */
.moriwell-modal-content {
    flex: 1;
    background-color: #256f4a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
.moriwell-modal-content img{
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 2em;
}
.moriwell-modal-content .mark{
    text-align: center;
    margin: 2em 0 0;
}
.moriwell-modal-content .mark span{
    background: #89c644;
    color: #256f4a;
    border-radius: 999px;
    padding: 5px 15px;
    font-family: 'Cascadia Mono', sans-serif;
    font-weight: 400;
}
.moriwell-modal-content p {
    font-family: 'Cascadia Mono', sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
    margin: 1em 0 !important;
    max-width: 100%;
}

#supply p{
    color: #256f4a;
}

.moriwell-modal-content p:last-child{
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .moriwell-modal-container {
        flex-direction: column;
        width: 95%;
        height: 75vh;
    }

    .moriwell-modal-image {
        min-height: 40%;
    }

    .moriwell-modal-content {
        padding: 30px 25px;
    }

    .moriwell-modal-content img{
        max-height: 60px;
        margin-bottom: 1em;
    }

    .moriwell-modal-content p {
        font-size: 12px;
    }

    .moriwell-modal-content .mark{
        margin: 1em 0 0
    }
    
    .moriwell-modal-content .mark span,
    .moriwell-modal-content p:last-child{
        font-size: 10px;
    }
}