.emw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;

    &.emw-active {
        display: flex;
    }
}

.emw-modal {
    display: flex;
    flex-direction: row;
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.emw-media {
    width: 40%;

    img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
}

.emw-content {
    width: 60%;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emw-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: black !important;
    background: white;
    width: 32px;
    border-radius: 100%;

    &:hover {
        color: #343434 !important;
    }
}

.emw-title {
    margin: 0;
    font-weight: bold !important;
}

.emw-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
        font-weight: bold;

        svg {
            width: 20px;
        }
    }
}

.emw-description {
    margin: 0;
    font-size: 0.875rem;
}

.emw-footer {
    margin-top: auto;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 767px) {
    .emw-overlay {
        align-items: end;
    }

    .emw-modal {
        flex-direction: column;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .emw-media, .emw-media img {
        width: 100%;
        max-height: 200px;
    }

    .emw-content {
        width: 100%;
        padding: 16px;
    }

    .emw-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        li {
            margin-top: 0;
        }
    }
}
