/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */

.wtai-edit-keyword-analysis {
    .modal-content {
        .wtai-pipelines-content {
            .wtai-pipelines.wtai-custom-pipeline.wtai-keyword-ranking-container {
                margin-left: 5px;
                
                .wtai-edit-keyword-ranking-wrapper {
                    padding-top: 0;
                }

                .wtai-pipeline:not(.wtai-pipeline-edit) {
                    border: 1px solid #888888;

                    .wtai-actions:not(.wtai-bottom-actions) {
                        margin-bottom: 17px;
                        height: 30px;
                    }

                    ul {
                        li {
                            &.wtai-keyword {
                                cursor: pointer;

                                &:not(:last-child) {
                                    margin-bottom: 82px;
                                }
                            }
                        }
                    }
                }


                .wtai-custom-block {
                    background-color: unset;

                    &.wtai-edit-keyword-ranking-container {
                        border: solid 1px #888888;
                        background-color: unset;
                        margin-top: 0;

                        .wtai-pipeline.wtai-custom-pipeline-sortable-container {
                            background-color: unset;

                            .wtai-keyword-edit-pipeline {
                                min-height: 552px;
                                max-height: 552px;
                            }

                            .wtai-edit-keyword-item {
                                cursor: default;

                                &._wtai-hidden {
                                    visibility: hidden;
                                }

                                .wtai-primary-badge,
                                .wtai-star-badge {
                                    margin-right: 5px;
                                }
                            }
                        }
                    }
                }
                
                &:not(.wtai-clustered) {
                    .wtai-custom-pipeline-sortable-title {
                        margin: 0 0 48px 0;
                    }
                }
                
                .wtai-pipeline {
                    display: flex;
                    flex-direction: column;

                    &.wtai-custom-pipeline-sortable-container  {
                        .wtai-edit-keyword-item:nth-last-child(1 of .wtai-edit-keyword-item) {
                            margin-bottom: 0;
                        }
                    }

                    .wtai-topic {
                        margin: 0 0 48px 0;
                    }

                    ul {
                        flex-grow: 1;

                        li.wtai-keyword.active-details {
                            &:last-child {
                                .wtai-keyword-more-data {
                                    top: 106%;
                                    bottom: unset;
                                }
                            }
                            
                            .wtai-keyword-more-data.wtai-show-upwards {
                                display: block;
                                top: unset;
                                bottom: 0;
                                bottom: 106%;
                            }
                        }
                    }

                    &.wtai-empty-ranking {
                        &:hover .wtai-actions {
                            visibility: hidden;
                        }
                        
                        .wtai-empty-message-wrapper {
                            display: block;
                        }

                        ul {
                            display: none;
                        }

                    }

                    .wtai-actions {
                        justify-content: flex-end;
                    }

                    .wtai-actions:not(.wtai-bottom-actions) {
                        margin-bottom: 0;
                        height: 20px;
                    }
                }
                
                .wtai-empty-message-wrapper {
                    display: none;
                    flex-grow: 1;

                    .wtai-empty-message {
                        font-size: 13px;
                        font-weight: 400;
                        line-height: 17px;
                        text-align: center;
                        color: #303030;
                        opacity: 0.6;
                        margin-top: 10px;
                        margin-bottom: 10px;
                        width: 200px;
                        position: relative;
                        top: 30%;
                    }
                }
            }
        }
    }
}