li.elementor-icon-list-item.ele-modal__custom {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin: 5px 0 !important;
    padding: 0 !important;
    transition: opacity 0.2s ease;
}

li.elementor-icon-list-item.ele-modal__custom:hover {
    opacity: 0.8;
}

li.elementor-icon-list-item.ele-modal__custom span {
    color: var(--e-global-color-secondary) !important;
}

/* Overlay fade in */
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal slide up + fade in */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Overlay fade out */
@keyframes overlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Modal slide down + fade out */
@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
}

.ele-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.25s ease forwards;
    backdrop-filter: blur(3px);
    overflow-y: auto;
    padding: 20px 0;
}

.ele-modal-overlay.closing {
    animation: overlayOut 0.25s ease forwards;
}

.ele-modal-overlay.closing .ele-modal-box {
    animation: modalOut 0.25s ease forwards;
}

.ele-modal-box {
    background: #fff;
    padding: 25px;
    max-width: 700px;
    width: 90%;
    position: relative;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease forwards;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
}

.ele-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #575757;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px 8px;
}

.ele-modal-close:hover {
    color: #fff;
    background: var(--e-global-color-secondary);
}

.ele-modal-box::-webkit-scrollbar {
    width: 4px;
}

.ele-modal-box::-webkit-scrollbar-track {
    background: rgb(230, 230, 240);
    border-radius: 0 12px 12px 0;
}

.ele-modal-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgb(99, 102, 241), rgb(168, 85, 247));
    border-radius: 12px;
}

.ele-modal-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgb(79, 82, 221), rgb(148, 65, 227));
}