/* Base trigger styles */
.mt-5774f46d-trigger-container {
    display: flex;
    align-items: center;
}
.mt-5774f46d-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.mt-5774f46d-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.mt-5774f46d-icon svg {
    display: block;
    transition: all 0.3s ease;
}

/* Modal Overlay and Container */
.mt-5774f46d-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: flex-start; /* Align to the top of screen */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto; /* Scroll if content is very tall */
    padding: 60px 20px; /* Small padding above and below modal */
    box-sizing: border-box;
}

body.admin-bar .mt-5774f46d-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 .mt-5774f46d-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.mt-5774f46d-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mt-5774f46d-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin-top: 20px; /* Extra small spacing from the very top */
    box-sizing: border-box;
}

.mt-5774f46d-overlay.is-active .mt-5774f46d-modal {
    transform: scale(1);
}

.mt-5774f46d-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.3s ease;
}
.mt-5774f46d-close svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}

.mt-5774f46d-content {
    margin-top: 10px;
}
