/* ==========================================================================
   OMNI PREMIUM WIDGET UI (v3) - ANIMATED DELETE CONFIRM
   ========================================================================== */
.omni-actions {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* 1. Delete Button Wrapper */
.delete-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border-radius: 50%;
    margin-inline-start: 8px;
    /* Add space between edit and delete icons */
}

/* 2. Trash Icon */
.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn-delete:hover {
    color: #EF4444;
    background: rgba(254, 226, 226, 0.5);
    border-radius: 6px;
}

/* 3. Confirm Popup (Hidden by default) */
.delete-confirm-popup {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px) scale(0.95);
    background: white;
    border: 1px solid #FECACA;
    border-radius: 20px;
    padding: 4px 4px 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
    z-index: 10;
    /* Ensure it overlays buttons */
}

/* 4. Active State (When .confirming is added to wrapper via JS) */
.delete-wrapper.confirming .btn-delete {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.delete-wrapper.confirming .delete-confirm-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0) scale(1);
}

/* 5. Buttons Inside Popup */
.confirm-text {
    font-size: 12px;
    color: #991B1B;
    font-weight: 500;
    white-space: nowrap;
}

.btn-confirm-yes {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-yes:hover {
    background: #DC2626;
    transform: scale(1.1);
}

.btn-confirm-no {
    background: #F3F4F6;
    color: #4B5563;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-no:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.btn-confirm-yes .dashicons,
.btn-confirm-no .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}