/* Generic card */

.ml-link-card{
    border:1px solid #ddd;
    padding:14px 16px;
    margin:22px 0;
    background:#f8f9fa;
    border-radius:6px;
}

/* Highlight block */

.ml-highlight{
    background:#fff3cd;
    border-left:4px solid #ffb400;
}

/* Titles */

.ml-card-title{
    font-weight:600;
    margin-bottom:8px;
    padding-bottom:6px;
    border-bottom:1px solid #e1e4e8;
    color:#444;
}

/* Nearby action */

.ml-card-action{
    margin-top:10px;
}

.ml-card-button{
    display:inline-block;
    padding:6px 10px;
    background:#fff;
    border:1px solid #d0d7de;
    border-radius:4px;
    font-weight:600;
    text-decoration:none;
    color:#0a58ca;
}

/* Inline links */

.ml-inline-link{
    display:inline;
}

/* Preview highlight */

.ml-temp-insert{
    outline:2px dashed #2e7d32;
    outline-offset:3px;
}



/* Modal layout */

#ml-ai-modal{
    max-width:1100px;
}

#ml-preview{
    background:#fafafa;
    border-radius:6px;
}

/* Suggestion list */

#ml-ai-suggestions{
    display:flex;
    flex-direction:column;
    gap:8px;
}

/* Suggestion card */

.ml-ai-option{
    border:1px solid #e3e3e3;
    border-radius:6px;
    padding:10px 12px;
    background:#fff;
    cursor:pointer;
    transition:all .15s ease;
}

.ml-ai-option:hover{
    border-color:#2e7d32;
    background:#f7fbf8;
}

/* Active suggestion */

.ml-ai-option.active{
    border-color:#2e7d32;
    box-shadow:0 0 0 2px rgba(46,125,50,.1);
}

/* Suggestion title */

.ml-ai-option strong{
    font-size:13px;
    display:block;
}

/* Suggestion snippet */

.ml-ai-option div{
    font-size:12px;
    color:#777;
}

/* Inputs */

#ml-ai-modal input,
#ml-ai-modal textarea,
#ml-ai-modal select{
    border:1px solid #d0d7de;
    border-radius:4px;
    padding:6px 8px;
}

/* Button */

#ml-apply-link{
    margin-top:6px;
    background:#2e7d32;
    border:none;
}

#ml-apply-link:hover{
    background:#256628;
}


/* Preview insertion marker */

.ml-insert-marker{
    display:block;
    font-size:11px;
    font-weight:600;
    color:#2e7d32;
    background:#e8f5e9;
    border:1px solid #c8e6c9;
    border-radius:4px;
    padding:3px 6px;
    margin-bottom:6px;
    width:fit-content;
}

/* Highlight inserted element */

.ml-temp-insert{
    outline:2px dashed #2e7d32;
    outline-offset:3px;
}


.ml-temp-insert{
    outline:2px dashed #2e7d32;
    outline-offset:3px;
    background:#f1f8f3;
}


/* --------------------------------
Gallery fix inside AI preview
-------------------------------- */

#ml-preview .custom-envira-gallery{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
    margin:20px 0;
}

#ml-preview .custom-envira-item{
    width:100%;
}

#ml-preview .custom-envira-item img{
    width:100%;
    height:auto;
    display:block;
    border-radius:4px;
}

#ml-preview .custom-envira-caption{
    font-size:11px;
    line-height:1.3;
}

#ml-preview{
    max-width:720px;
    margin:auto;
}

#ml-preview img{
    opacity:.95;
}