/**
 * Advanced Media Offloader - Attachment delete loading indicator styles
 */

/* List view: indicator near the title */
.advmo-delete-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: #50575e;
    font-size: 12px;
}

.advmo-delete-indicator .spinner {
    float: none;
    margin: 0;
}

/* List view: center overlay on the thumbnail (icon) cell */
tr.advmo-deleting td.column-icon.advmo-delete-thumb {
    position: relative;
}

tr.advmo-deleting td.column-icon.advmo-delete-thumb img {
    opacity: 0.35;
}

tr.advmo-deleting td.column-icon.advmo-delete-thumb .advmo-delete-overlay--list {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    pointer-events: none;
}

tr.advmo-deleting td.column-icon.advmo-delete-thumb .advmo-delete-overlay--list .spinner {
    float: none;
    margin: 0;
}

tr.advmo-deleting td.column-icon.advmo-delete-thumb .advmo-delete-overlay--list .advmo-delete-overlay-text {
    font-size: 12px;
    color: #1d2327;
}

/* Grid/details view: overlay host should be positioned */
.advmo-deleting .attachment-preview,
.advmo-deleting .thumbnail {
    position: relative;
}

/* When we choose a tighter wrapper around the actual <img>, ensure it's positioned too */
.advmo-deleting .advmo-delete-host {
    position: relative;
}

/* Grid/details view: overlay on the image area */
.advmo-deleting .advmo-delete-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
    pointer-events: none;
    text-align: center;
}

.advmo-deleting .advmo-delete-overlay .spinner {
    float: none;
    margin: 0;
}

.advmo-deleting .advmo-delete-overlay-text {
    color: #1d2327;
    font-size: 13px;
}


