.lime-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.admin-bar .lime-modal-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .lime-modal-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

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

.lime-modal-content {
    background: #ffffff;
    width: 900px;
    max-width: 95%;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .lime-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.lime-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.lime-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.lime-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #333;
}

.lime-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.lime-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}