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

@-webkit-keyframes jiggle {
    0% {
        -webkit-transform: rotate(-1deg);
    }

    50% {
        -webkit-transform: rotate(1deg);
    }
}

@-moz-keyframes jiggle {
    0% {
        -moz-transform: rotate(-1deg);
    }
    
    50% {
        -moz-transform: rotate(1deg);
    }
}

.wtai-edit-keyword-analysis {

    .modal-content {
        .wtai-pipelines-content {
            display: flex;
            margin-top: 20px;
            overflow-x: auto;
            min-width: 100%;
            padding-bottom: 10px;
            
            @media screen and (min-width: 768px) {
                overflow-x: auto;
            }

            .wtai-difficulty-levels {
                .wtai-difficulty-levels-wrapper {
                    display: flex;
                    flex-direction: column;
                    flex-wrap: wrap;
                    margin-top: 178px;
                    margin-right: 10px;
                    width: max-content;

                    .wtai-difficulty-levels-item {
                        font-weight: 600;
                        font-size: 13px;
                        line-height: 17px;

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

            .wtai-clusterpipeline-container {
                margin-right: 5px;
                
                .wtai-pipelines {
                    margin-top: 0;
                    margin-right: 0;
                }

                .wtai-clusterpipeline-label {
                    display: flex;
                    align-items: center;
                    height: 30px;
                    gap: 10px;
                    padding: 10px;
                    font-size: 13px;
                    font-weight: 600;
                    line-height: 17px;

                    .wtai-clusterpipeline-label-start,
                    .wtai-clusterpipeline-label-end {
                        flex-grow: 1;
                        border-top: solid 2px #8C8F94;
                        height: 12px;
                        position: relative;
                        top: 5px;
                    }

                    .wtai-clusterpipeline-label-start {
                        border-left: solid 2px #8C8F94;
                    }

                    .wtai-clusterpipeline-label-end {
                        border-right: solid 2px #8C8F94;
                    }
                }
            }

            .wtai-edit-pipelines-wrapper {
                padding-top: 30px;
            }

            .wtai-pipelines.wtai-custom-pipeline {
                gap: 5px;

                &.wtai-custom-block {
                    padding: 10px;
                    background-color: #F6F6F6;
                    border-radius: 10px;
                    width: 220px;
                    margin-right: 0;

                    &.wtai-edit-pipeline-container {
                        border: solid 1px #eb5202;
                        background-color: #fffbf8;
                        margin-top: 0;
                        margin-right: 0;

                        .wtai-pipeline.wtai-custom-pipeline-sortable-container {
                            background-color: #fffbf8;
                            width: 100%;
                        }
                    }
                }
                &.wtai-clustered {
                    .wtai-custom-pipeline-sortable-title {
                        margin-bottom: 44px;
                        margin-top: 3px;
                    }
                }
                &:not(.wtai-clustered) {
                    .wtai-custom-pipeline-sortable-title {
                        margin-bottom: 0;
                        min-height: unset;
                        margin-top: 0;
                    }
                }
                .wtai-custom-pipeline-sortable-title {
                    text-align: center;
                    font-size: 13px;
                    font-weight: 600;
                    line-height: 17px;
                    max-width: 200px;
                    height: unset;
                    -webkit-box-orient: vertical;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    padding: unset;
                    margin: 20px 0 48px 0;
                    min-height: 33px;
                }

                .wtai-custom-pipeline-empty-text {
                    font-size: 13px;
                    font-weight: 400;
                    line-height: 17px;
                    width: 80%;
                    text-align: center;
                    color: #303030;
                    opacity: 0.6;
                    margin-top: 10px;
                    margin-bottom: 10px;
                }

                .wtai-pipeline.wtai-custom-pipeline-sortable-container {
                    background-color: #F6F6F6;
                    border-radius: 10px;
                    height: 100%;

                    .wtai-topic {
                        padding-bottom: 0;
                        margin-bottom: 0;
                        min-height: unset;
                    }

                    .wtai-custom-pipeline-sortable {
                        height: 100%;
                    }

                    .wtai-custom-pipeline-text {
                        line-height: 17px;
                        text-align: center;
                        color: #303030;
                        opacity: 0.6;
                        width: auto;
                        font-size: 11px;
                        display: block;
                        font-weight: 600;
                        padding: 0 20px 33px;
                        width: 200px;
                    }

                    .wtai-custom-pipeline-sortable-actions {
                        display: flex;
                        margin-bottom: 17px;
                        gap: 25px;
                        justify-content: space-between;

                        &.wtai-sortable-actions-bottom {
                            margin-bottom: 0;
                            margin-top: 23px;
                        }

                        .wtai-action {
                            background-color: unset;
                            padding: 0;
                            margin: 0;
                            border: 0;
                            height: 30px;
                            width: 30px;
                            display: block;
                        }

                        .wtai-close::before {
                            content: url('../WriteTextAI_WriteTextAI/images/close_custom.svg');
                            display: inline-block;
                            filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.25));
                        }
                        .wtai-dropdown-arrange-container {
                            &.wtai-disabled {
                                cursor: not-allowed;
                            }
                            /*
                            .lib-tooltip(
                                @_tooltip-border-color: transparent,
                                @_tooltip-color: #303030,
                                @_tooltip-position: bottom
                            );

                            .tooltip-content {
                                box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                font-size: 13px;
                                font-weight: 400;
                                left: 50%;
                                transform: translateX(-50%);
                                &::before {
                                    left: 50%;
                                }
                                &::after {
                                    left: 50%;
                                }
                            }
                            */
                        }

                        .wtai-auto-arrange {
                            &.wtai-disabled {
                                cursor: not-allowed;
                                pointer-events: auto;
                            }

                            &::before {
                                content: url('../WriteTextAI_WriteTextAI/images/auto_arrange.svg');
                                display: inline-block;
                                filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.25));
                            }
                            
                        }
                        .wtai-save-wrapper {
                            &.wtai-disabled {
                                cursor: not-allowed;
                            }
                            
                            .wtai-save {
                                &::before {
                                    content: url('../WriteTextAI_WriteTextAI/images/save_custom.svg');
                                    display: inline-block;
                                    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.25));
                                }

                                &.wtai-disabled {
                                    cursor: not-allowed;
                                    pointer-events: none;

                                    .tooltip-content {
                                        display: none;
                                    }
                                }
                            }
                            /*
                            .lib-tooltip(
                                @_tooltip-border-color: transparent,
                                @_tooltip-color: #303030,
                                @_tooltip-position: bottom
                            );

                            .tooltip-content {
                                box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                font-size: 13px;
                                font-weight: 400;
                                transform: translateX(35%);
                                right: 100%;
                                left: unset;
                                &::before {
                                    left: unset;
                                    top: -5px;
                                    right: 25%;
                                }
                                &::after {
                                    left: unset;
                                    top: -10px;
                                    right: 25%;
                                    transform: rotate(0deg);
                                }
                            }
                            */
                        }

                        .wtai-dropdown-arrange-container {
                            position: relative;

                            &.active {
                                .wtai-dropdown-arrange-dialog,
                                .wtai-dropdown-arrange-dialog-bottom {
                                    display: block;
                                }
                            }

                            .wtai-dropdown-arrange-dialog,
                            .wtai-dropdown-arrange-dialog-bottom {
                                display: none;
                                opacity: 1;
                                visibility: unset;
                                transform: unset;
                                position: absolute;
                                width: 220px;
                                z-index: 2;
                                left: 50%;
                                transform: translate(-50%);
                                box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
                                border-radius: 0 0 5px 5px;
                                padding: 0;
                                font-size: 13px;
                                font-weight: 400;
                                line-height: 17px;
                                text-align: left;
                                background-color: #fff;

                                ul {
                                    margin: 0;

                                    li {
                                        padding: 5px;
                                        cursor: pointer;
                                        color: #303030;

                                        &:hover {
                                            background-color: #ffd5bf;
                                        }
                                    }
                                }
                            }
                            
                            .wtai-dropdown-arrange-dialog-bottom {
                                border-radius: 5px 5px 0 0;
                                bottom: 104%;
                            }
                        }
                    }

                    .wtai-keyword-edit-pipeline {
                        &.ui-sortable {
                            margin-bottom: -59px;
                            margin-bottom: -79px;
                            min-height: 646px;
                        }

                        .wtai-previous {
                            cursor: not-allowed;

                            .wtai-keyword-title,
                            .wtai-keyword-data.wta-summary-data {
                                opacity: .5;
                            }

                            .lib-tooltip(
                                @_tooltip-border-color: transparent,
                                @_tooltip-color: #303030,
                                @_tooltip-position: top
                            );
        
                            .tooltip-content {
                                box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                font-size: 13px;
                                font-weight: 400;
                                left: 50%;
                                transform: translateX(-50%);
                                &::before {
                                    left: 50%;
                                }
                                &::after {
                                    left: 50%;
                                }
                            }
                            
                            &:nth-last-child(1 of .wtai-previous) {
                                margin-bottom: 84px;
                            }
                        }

                        .wtai-keyword {
                            margin-bottom: 80px;
                        }

                        .replacement-div {
                            width: 200px;
                            height: 45px;
                            border-radius: 4px;
                            padding: 5px;
                            text-align: left;
                            margin-bottom: 80px;
                            -webkit-animation: unset;
                            -webkit-transform: unset;
                            border: 1px dotted;
                            border: 1px dotted #8C8F94;
                            border-style: dashed;
                            background: unset;
        
                            &:hover {
                                .wtai-keyword-input-btn {
                                    display: none;
                                }

                                .wtai-close {
                                    display: none;
                                }
                            }

                            &.active {
                                border: 1px dotted #eb5202;
                                background: #ffd5bf;
                            }
                        }

                        .wtai-current {
                            opacity: 0.5;
                            cursor: not-allowed;
                        }
                    }

                    .wtai-pipeline-edit.mage-sortable-disabled {
                        .wtai-edit-keyword-item {
                            animation: unset;
                            -webkit-animation: unset;
                            -moz-animation-duration: unset;
                            -moz-animation-name: unset;
                            -moz-animation-iteration-count: unset;
                            -webkit-transform: unset;
                            -moz-transform: unset;
                        }
                    }

                    .wtai-edit-keyword-item {
                        width: 200px;
                        height: 45px;
                        border-radius: 4px;
                        background: #DDDDDD;
                        padding: 5px;
                        text-align: left;
                        position: relative;
                        margin-bottom: 84px;
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;

                        &:not(.wtai-disabled) {
                            -webkit-transform: rotate(-1deg);
                            -moz-transform: rotate(-1deg);
                            animation: jiggle 0.2s infinite;
                            -webkit-animation: jiggle 0.2s infinite;
                            -moz-animation-duration: 0.2s;
                            -moz-animation-name: jiggle;
                            -moz-animation-iteration-count: infinite;
                            cursor: move;
                            cursor: grab;
                            cursor: -moz-grab;
                            cursor: -webkit-grab;
                        }

                        &:has(+  .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed)) {
                            margin-bottom: 0;
                        }

                        &.wtai-visible + .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed) {
                            margin-top: -45px;
                            margin-bottom: 129px;
                        }

                        &:nth-child(1 of .wtai-edit-keyword-item) {
                            &:not(.wtai-visible) + .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed) {
                                margin-top: 0;
                                margin-bottom: 0;
                            }
                        }
        
                        &:active {
                            cursor: grabbing;
                            cursor: -moz-grabbing;
                            cursor: -webkit-grabbing;

                            &.wtai-not-allowed {
                                cursor: not-allowed;
                                cursor: -moz-not-allowed;
                                cursor: -webkit-not-allowed;
                            }
                        }
                    
                        &:nth-last-child(1 of .wtai-edit-keyword-item) {
                            margin-bottom: 84px;

                            &:has(+  .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed)) {
                                margin-bottom: 0;
                            }

                            &.wtai-visible + .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed) {
                                margin-bottom: 84px;

                                &:has(+ .wtai-placeholder.ui-sortable-handle) {
                                    margin-top: -45px;
                                    margin-bottom: 84px;
                                }
                            }
                        }

                        &:hover {
                            animation: unset;
                            -moz-animation-duration: unset;
                            -moz-animation-name: unset;
                            -moz-animation-iteration-count: unset;
                            -webkit-transform: unset;
                            -moz-transform: unset;

                            .wtai-keyword-input-btn {
                                display: block;
                            }

                            .wtai-close {
                                display: inline-block;
                            }
                        }

                        &.ui-sortable-helper {
                            .wtai-dragging {
                                display: block;
                            }
                            .wtai-not-dragging {
                                display: none;
                            }
                        }

                        &.wtai-input-active {
                            -webkit-animation: unset;
                            -webkit-transform: unset;
                            padding: 0;

                            &:hover {
                                .wtai-keyword-input-btn,
                                .wtai-close {
                                    display: none;
                                }
                            }

                            .wtai-keyword-input-btn,
                            .wtai-close,
                            .wtai-keyword-text,
                            .wtai-keyword-data.wta-summary-data {
                                display: none;
                            }
                            
                            .wtai-input-fieldset {
                                display: block;
                            }

                            .wtai-keyword-input {
                                height: 45px;
                                background-color: #fff;
                                border: 1px solid rgba(140, 143, 148, 1);
                                border-radius: 4px;
                                width: 100%;
                                display: flex;
                                align-items: center;
                                position: relative;

                                input {
                                    border-radius: 5px;
                                    background: none;
                                    height: 100%;
                                    border: 0;
                                    font-size: 14px;
                                    padding-left: 4px;
                                    padding-right: 4px;
                                    flex-grow: 1;
                                }

                                .wtai-close-input {
                                    padding: 5px;
                                    cursor: pointer;

                                    &::before {
                                        content: '\e62f';
                                        font-family: 'Admin Icons';
                                        font-style: normal;
                                        font-weight: normal;
                                        font-size: 10px;
                                        line-height: 1;
                                        speak: none;
                                    }
                                }
                            }

                        }

                        .wtai-dragging {
                            display: none;
                        }

                        .wtai-not-dragging {
                            display: contents;

                            .wtai-primary-badge,
                            .wtai-star-badge {
                                margin-right: 5px;
                            }
                        }

                        .wtai-input-keywords-error {
                            position: absolute;
                            top: ~"calc(100% - 3px)";
                            border-radius: 4px;
                            background-color: #e24556;
                            color: #fff;
                            font-size: 12px;
                            padding: 0 6px;
                            display: none;

                            &.wtai-active {
                                display: block;
                            }
                        }
                        
                        .wtai-input-fieldset {
                            width: 100%;
                            position: relative;
                            display: none;

                            .wtai-char-count {
                                width: 100%;
                                display: block;
                                text-align: right;
                                font-size: 11px;
                                line-height: 15px;
                            }
                        }

                        .wtai-keyword-text {
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            max-width: 80%;

                            /*&.wtai-edit-pipeline-keyword-text-primary {
                                max-width: 60%;
                            }*/
                        }
                        
                        .wtai-keyword-input-btn {
                            background: unset;
                            border: 0;
                            padding: 0;
                            width: auto;
                            position: relative;
                            top: 2px;
                            margin-right: 5px;

                            &::after {
                                content: url('../WriteTextAI_WriteTextAI/images/edit_keyword_item_keyword.svg');
                                display: inline-block;
                            }
                        }

                        .wtai-close {
                            background: unset;
                            border: 0;
                            padding: 0;
                            width: auto;
                            position: absolute;
                            top: -10px;
                            right: 3px;
                            height: 26px;

                            &::after {
                                content: url('../WriteTextAI_WriteTextAI/images/remove_keyword.svg');
                                display: inline-block;
                                width: 26px;
                                height: 26px;
                                position: relative;
                                top: -5px;
                                left: -7px;
                            }
                        }

                        .wtai-keyword-data.wta-summary-data {
                            width: 100%;
                            font-size: 11px;
                            font-weight: 600;
                            line-height: 14px;
                            color: #30303099;
                            display: flex;
                            align-items: center;
                            grid-gap: 5px;
    
                            .wtai-volume {
                                border-left: 1px solid #a9a9a9;
                                padding-left: 5px;
                            }
    
                            .wtai-see-more {
                                margin-left: auto;
                                border: 0;
                                background-color: unset;
                                padding: 0;
                                padding-right: 5px;

                                &::after {
                                    content: '\e628';
                                    font-family: 'Admin Icons';
                                    font-size: 10px;
                                    position: relative;
                                    margin-left: 4px;
                                    top: 1px;
                                }
                            }
                        }
                    
                    }
                    
                    /**
                    * Fix for the last keyword items margin
                    * disable for now issues appear on other keywords
                    li:nth-last-child(1 of .wtai-edit-keyword-item.ui-sortable-handle) {
                        + .wtai-on-drag-placeholder {
                            margin-top: 86px;
                            margin-bottom: 0;
                        }
                        margin-top: 86px;
                        margin-bottom: 0;
                    }
                    li:nth-last-child(2 of .wtai-edit-keyword-item.ui-sortable-handle) {
                        + .wtai-on-drag-placeholder {
                            margin-top: 86px;
                        }
                        margin-bottom: 0;
                    }

                    li:nth-last-child(1 of .wtai-placeholder.ui-sortable-handle) {
                        margin-top: 86px;
                    }
                    **/

                    li:nth-last-child(1 of .wtai-placeholder.ui-sortable-handle) {
                        margin-bottom: 84px;
                        &:has(+  .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed)) {
                            margin-bottom: 0;
                        }
                    }

                    li.wtai-placeholder.ui-sortable-handle:not(.wtai-previous-placeholder) + .wtai-keyword-pool-placeholder {
                        margin-top: -45px;
                        margin-bottom: 129px;
                        &:last-child {
                            margin-bottom: 84px;
                        }
                    }

                    .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed) + .wtai-placeholder,
                    .wtai-placeholder:has(+  .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed)) {
                        background-color: #FFD5BF;
                        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23EB5202FF' stroke-width='1' stroke-dasharray='6%2c6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
                        margin-bottom: 0;
                    }

                    .ui-sortable-placeholder:not(.wtai-on-drag-placeholder, .wtai-not-allowed) + .wtai-placeholder:not(:last-child) {
                        margin-bottom: 84px;
                    }

                    .wtai-placeholder {
                        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%238C8F94FF' stroke-width='1' stroke-dasharray='6%2c6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
                        font-size: 13px;
                        font-weight: 400;
                        line-height: 18px;
                        color: #30303099;
                        border-radius: 4px;
                        height: 45px;
                        display: flex;
                        align-items: center;
                        justify-content: flex-start;
                        padding-left: 10px;
                        cursor: pointer;

                        &::before {
                            content: url('../WriteTextAI_WriteTextAI/images/ic_add_keyword.svg');
                            display: inline-block;
                            margin-right: 4px;
                            width: 18px;
                            height: 18px;
                            position: relative;
                        }

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

                        &.wtai-previous-placeholder {
                            display: none;
                        }

                        &.wtai-visibility-hidden {
                            visibility: hidden;
                        }

                        &.wtai-on-drag-placeholder {
                            background-color: #FFD5BF;
                            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23EB5202FF' stroke-width='1' stroke-dasharray='6%2c6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
                        }

                        .wtai-input-fieldset {
                            display: none;
                        }

                        &.wtai-input-active {
                            .wtai-input-fieldset {
                                display: block;
                            }

                            .wtai-keyword-input {
                                height: 45px;
                                background-color: #fff;
                                border: 1px solid rgba(140, 143, 148, 1);
                                border-radius: 4px;
                                width: 100%;
                                display: flex;
                                align-items: center;
                                position: relative;

                                input {
                                    border-radius: 5px;
                                    background: none;
                                    height: 100%;
                                    border: 0;
                                    font-size: 14px;
                                    padding-left: 4px;
                                    padding-right: 4px;
                                    flex-grow: 1;
                                }

                                .wtai-close-input {
                                    padding: 5px;
                                    cursor: pointer;

                                    &::before {
                                        content: '\e62f';
                                        font-family: 'Admin Icons';
                                        font-style: normal;
                                        font-weight: normal;
                                        font-size: 10px;
                                        line-height: 1;
                                        speak: none;
                                    }
                                }
                            }

                        }
                    }
                }

                .wtai-custom-pipeline-empty {
                    display: flex;
                    max-width: 200px;
                    flex-direction: column;
                    height: 100%;
                    justify-content: center;
                    width: 200px;
                    
                    li {
                        display: none;
                    }

                    .wtai-custom-pipeline-empty-initial,
                    .wtai-custom-pipeline-empty-history {
                        display: flex;
                        flex-direction: column;
                        align-items: center;

                        .wtai-custom-pipeline-add-keyword-btn {
                            border: 0;
                            background-color: #ffd5bf;
                            color: rgba(48, 48, 48, 0.6);
                            border-radius: 100px;
                            font-size: 13px;
                            line-height: 17px;
                            padding: 5px 10px;
                            display: flex;
                            align-items: center;

                            &::before {
                                content: url('../WriteTextAI_WriteTextAI/images/ic_add_keyword.svg');
                                display: inline-block;
                                margin-right: 4px;
                                width: 18px;
                                height: 18px;
                                position: relative;
                            }
                        }

                        .wtai-custom-pipeline-empty-btn {
                            border: 0;
                            background-color: #ffd5bf;
                            color: #eb5202;
                            border-radius: 100px;
                            font-size: 13px;
                            line-height: 17px;
                            padding: 5px 10px;

                            &::before {
                                content: url('../WriteTextAI_WriteTextAI/images/restore_pipeline.svg');
                                display: inline-block;
                                margin-right: 5px;
                                width: 15px;
                                height: 15px;
                                position: relative;
                                top: 2px;
                            }
                        }
                    }
                }
            }

            .wtai-pipelines {
                display: flex;
                flex-wrap: nowrap;
                margin-top: 30px;
                margin-right: 5px;
                position: relative;
    
                .wtai-pipeline {
                    padding: 10px;
                    text-align: center;
                    border-radius: 10px;
                    position: relative;
                    height: 100%;
    
                    &.wtai-pipeline-edit {
                        padding: 0;
                        position: relative;
                    }
    
                    &:hover {
                        background: #F6F6F6;
    
                        .wtai-actions {
                            visibility: visible;

                            &.wtai-hidden-actions {
                                visibility: hidden;
                            }
                        }
                    }
    
                    &.wtai-pipeline-locked {
                        &:hover {
                            .wtai-actions.wtai-pipeline-header-actions {
                                .wtai-action.wtai-delete,
                                .wtai-action.wtai-edit {
                                    visibility: hidden;
                                }

                            }

                            .wtai-actions {
                                .wtai-action.wtai-delete,
                                .wtai-action.wtai-edit {
                                    visibility: hidden;
                                }
                            }
                        }
                    }

                    &:not(.wtai-no-actions) {
                        display: flex;
                        flex-direction: column;
                    }
    
                    .wtai-actions {
                        visibility: hidden;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        grid-gap: 10px;

                        &.wtai-actions-bottom {
                            margin-top: auto;
                        }
    
                        .wtai-action {
                            width: 26px;
                            height: 26px;
                            background-repeat: no-repeat;
                            border: none;
                            cursor: pointer;
                            background-position: center;
                            border-radius: 50%;
                            background-size: 10px;
                            padding: 0;
    
                            &.wtai-delete {
                                background-color: #e22626;
                                background-image: url('../WriteTextAI_WriteTextAI/images/white_delete.svg');
                                box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.25);
                            }
    
                            &.wtai-edit {
                                background-color: #eb5202;
                                background-image: url('../WriteTextAI_WriteTextAI/images/edit_keyword_item.svg');
                                box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.25);

                                .lib-tooltip(
                                    @_tooltip-border-color: transparent,
                                    @_tooltip-color: #303030,
                                    @_tooltip-position: bottom
                                );

                                &.wtai-edit-bottom {
                                    .lib-tooltip(
                                        @_tooltip-border-color: transparent,
                                        @_tooltip-color: #303030,
                                        @_tooltip-position: top
                                    );

                                    .tooltip-content {
                                        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                        font-size: 13px;
                                        font-weight: 400;
                                        transform: translateX(35%);
                                        right: 109%;
                                        left: unset;
                                        top: unset;
                                        bottom: 100%;
                                        &::before {
                                            left: unset;
                                            bottom: -5px;
                                            right: 25%;
                                        }
                                        &::after {
                                            left: unset;
                                            bottom: -10px;
                                            right: 25%;
                                        }
                                    }
                                }
            
                                .tooltip-content {
                                    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                    font-size: 13px;
                                    font-weight: 400;
                                    transform: translateX(35%);
                                    right: 109%;
                                    left: unset;
                                    top: 106%;

                                    &::before {
                                        left: unset;
                                        top: -5px;
                                        right: 25%;
                                    }

                                    &::after {
                                        left: unset;
                                        top: -10px;
                                        right: 25%;
                                        transform: rotate(0deg);
                                    }
                                }
                            }
    
                            &.wtai-lock {
                                background-image: url('../WriteTextAI_WriteTextAI/images/lock.png');
                            }
    
                            &.wtai-locked {
                                background-image: url('../WriteTextAI_WriteTextAI/images/locked.svg');
                                background-size: auto;
                            }
                        }

                        .wtai-lock-actions {
                            .wtai-lock {
                                box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.25);
                                
                                &.wtai-disabled {
                                    cursor: not-allowed;
                                }

                                &.wtai-upper-lock {
                                    .lib-tooltip(
                                        @_tooltip-border-color: transparent,
                                        @_tooltip-color: #303030,
                                        @_tooltip-position: bottom
                                    );

                                    .tooltip-content {
                                        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                        font-size: 13px;
                                        font-weight: 400;
                                        left: 50%;
                                        transform: translateX(-50%);
                                        top: 106%;
                                        bottom: unset;
                                        
                                        &::before {
                                            left: 50%;
                                            top: -5px;
                                        }

                                        &::after {
                                            left: 50%;
                                            top: -10px;
                                            transform: rotate(0deg);
                                        }
                                    }
                                }
    
                                .lib-tooltip(
                                    @_tooltip-border-color: #afadac,
                                    @_tooltip-color: #303030,
                                    @_tooltip-position: top
                                );
            
                                .tooltip-content {
                                    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                    font-size: 13px;
                                    font-weight: 400;
                                    left: 50%;
                                    transform: translateX(-50%);

                                    &::before {
                                        left: 50%;
                                        display: none;
                                    }

                                    &::after {
                                        left: 50%;
                                        display: none;
                                    }
                                }
                            }
                        }
                    }

                    .wtai-arrow-tail.wtai-previous-none {
                        display: none;
                    }

                    .wtai-arrow-tail,
                    .wtai-arrow-head {
                        border-right: 2px dotted #D9D9D9;
                        height: 25px;
                        width: 1px;
                        margin: 0 auto;
                        position: relative;
                        flex-grow: 1;
    
                        &.wtai-active {
                            border-color: #eb5202;
    
                            &::after {
                                border-color: #eb5202;
                            }
                        }
    
                        &.wtai-full {
                            border-right: 2px solid #eb5202;
                            height: 82px;
                        }
                    }
    
                    .wtai-arrow-head {
                        &::after {
                            content: '';
                            position: absolute;
                            border: 1px solid #D9D9D9;
                            border-width: 0 0 2px 2px;
                            width: 10px;
                            height: 10px;
                            line-height: 0;
                            font-size: 0;
                            left: -4px;
                            top: 2px;
                            margin-bottom: 25px;
                            -webkit-transform: rotate(135deg);
                            -ms-transform: rotate(135deg);
                            -o-transform: rotate(135deg);
                            transform: rotate(135deg);
                        }
                    }
        
                    .wtai-topic {
                        /*padding: 20px 0 64px 0; */
                        font-size: 13px;
                        font-weight: 600;
                        line-height: 17px;
                        color: #303030;
                        max-width: 200px;
                        height: unset;
                        -webkit-box-orient: vertical;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        padding: unset;
                        margin: 20px 0 48px 0;
                        min-height: 33px;
                    }
        
                    ul {
                        li.wtai-keyword {
                            width: 200px;
                            border-radius: 4px;
                            background: #DDDDDD;
                            padding: 5px;
                            text-align: left;
                            position: relative;
                            height: 47px;
                            cursor: pointer;
    
                            &.wtai-previous {
                                background: #ffd5bf;
    
                                .wtai-keyword-title::before {
                                    background-image: url("../WriteTextAI_WriteTextAI/images/completed.png");
                                    background-position: center;
                                    background-repeat: no-repeat;
                                    background-size: 100%;
                                    content: '';
                                    height: 14px;
                                    min-width: 14px;
                                    display: inline-block;
                                }
    
                                .wtai-see-more::after,
                                .wtai-data-trigger-serp,
                                .wtai-keyword-data,
                                .wtai-data-value,
                                .wtai-data-label,
                                .wtai-keyword-title,
                                .wtai-keyword-more-data .wtai-keyword-title-text {
                                    color: #eb5202;
                                }
        
                                .wtai-keyword-data .wtai-volume {
                                    border-color: #eb5202;
                                }
                            }
    
                            &.wtai-current {
                                background: #eb5202;
    
                                .wtai-see-more::after,
                                .wtai-data-trigger-serp,
                                .wtai-keyword-data,
                                .wtai-data-value,
                                .wtai-data-label,
                                .wtai-keyword-title,
                                .wtai-keyword-more-data .wtai-keyword-title-text {
                                    color: #FFFFFF;
                                }
        
                                .wtai-keyword-data .wtai-volume {
                                    border-color: #FFFFFF;
                                }

                                .wtai-keyword-title {
                                    .wtai-star-badge {
                                        background-image: url('../WriteTextAI_WriteTextAI/images/star_badge_white.svg');
                                    }

                                    .wtai-primary-badge {
                                        background-color: #FFFFFF;
                                        color: #eb5202;
                                    }
                                }
                            }
    
                            &.active-details {
                                .wtai-keyword-more-data {
                                    display: block;
                                    top: 0;
                                    top: 106%;
                                }
                            }
                            
                            &.active-details:last-child {
                                .wtai-keyword-more-data {
                                    display: block;
                                    top: unset;
                                    bottom: 0;
                                    bottom: 106%;
                                }
                            }

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

                            &.active-details {
                                height: auto;

                                .wtai-keyword-title {
                                    overflow: hidden;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                }
                            }
                            
                            .wtai-data-trigger-serp {
                                color: #30303099;
                            }
        
                            .wtai-keyword-title {
                                display: flex;
                                align-items: center;
                                grid-gap: 5px;
                                color: #303030;

                                .wtai-keyword-title-text {
                                    font-size: 14px;
                                    font-weight: 600;
                                    line-height: 18px;
                                    overflow: hidden;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                }
                            }
        
                            .wtai-keyword-data {
                                font-size: 11px;
                                font-weight: 600;
                                line-height: 14px;
                                color: #30303099;
                                display: flex;
                                align-items: center;
                                grid-gap: 5px;
        
                                .wtai-volume {
                                    border-left: 1px solid #a9a9a9;
                                    padding-left: 5px;
                                }
        
                                .wtai-see-more {
                                    margin-left: auto;
                                    border: 0;
                                    background-color: unset;
                                    padding: 0;
                                    padding-right: 5px;

                                    &::after {
                                        content: '\e628';
                                        font-family: 'Admin Icons';
                                        font-size: 10px;
                                        position: relative;
                                        margin-left: 4px;
                                        top: 1px;
                                    }
                                }
                            }
    
                            .wtai-keyword-more-data {
                                display: none;
                                position: absolute;
                                z-index: 1;
                                background: inherit;
                                width: 100%;
                                left: 0;
                                padding: 5px;
                                border-radius: 4px;
                                box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.2);
                                
                                .wtai-keyword-title-text {
                                    font-size: 14px;
                                    font-weight: 600;
                                    line-height: 18px;
                                    overflow: hidden;
                                    word-wrap: break-word;
                                }

                                .wtai-keyword-data {
                                    font-size: 12px;
                                    font-weight: 400;
                                    line-height: 15px;
                                    padding: 4px 0;
    
                                    a {
                                        text-decoration: underline;
                                    }
    
                                    .wtai-data-label {
                                        font-weight: 600;
                                        min-width: 50%;
                                    }
                                }
    
                                .wtai-serp-popup {
                                    display: none;
                                    position: absolute;
                                    background: #FFFFFF;
                                    top: 100%;
                                    border-radius: 10px;
                                    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
                                    z-index: 3;
                                    cursor: default;
                                    max-height: 300px;
                                    overflow: auto;
                                    top: 0;
                                    width: 400px;
                                    border-radius: 5px;
                                    right: unset;
                                    left: 104%;

                                    &.wtai-right-higher {
                                        top: unset;
                                        bottom: 0;
                                    }

                                    &.wtai-left-higher {
                                        left: unset;
                                        right: 104%;
                                        top: unset;
                                        bottom: 0;
                                    }

                                    &.wtai-left-lower {
                                        left: unset;
                                        right: 104%;
                                    }
    
                                    &.active {
                                        display: block;
                                    }
    
                                    thead {
                                        position: sticky;
                                        top: 0;
                                        z-index: 1;
                                        
                                        tr {
                                            background: #E0E0E0;
                                            padding: 8px;
    
                                            p {
                                                font-size: 12px;
                                                font-weight: 600;
                                                line-height: 18px;
                                                color: #1D2327;
                                                display: inline-table;
                                                margin: 0;
                                            }
    
                                            span {
                                                font-size: 11px;
                                                font-weight: 400;
                                                line-height: 15px;
                                                color: #888888;
                                                float: left;
                                            }
    
                                            th {
                                                padding: 8px;
    
                                                .wtai-close-serp {
                                                    position: absolute;
                                                    right: 10px;
                                                    cursor: pointer;
    
                                                    &::before {
                                                        content: '\e62f';
                                                        font-family: 'Admin Icons';
                                                        display: block;
                                                    }
                                                }
                                            }
                                        }
                                    }
    
                                    tbody {
                                        tr {
                                            &.wtai-featured-snippet {
                                                .wtai-featured-snippet-title {
                                                    text-transform: uppercase;
                                                }
    
                                                td.wtai-site {
                                                    a {
                                                        text-decoration: none;
                                                    }
            
                                                    span::after {
                                                        display: none;
                                                    }
                                                }
                                            }

                                            &.wtai-my-site {
                                                background: #FFE8DC;
        
                                                td {
                                                    &.wtai-rank {
                                                        font-size: 16px;
                                                        font-weight: 700;
                                                        line-height: 21px;
                                                    }
        
                                                    &.wtai-site {
                                                        a,
                                                        span {
                                                            font-weight: 700;
                                                        }
                                                    }
                                                }
                                            }
    
                                            td {
                                                &.wtai-rank {
                                                    font-size: 13px;
                                                    font-weight: 400;
                                                    line-height: 17px;
                                                    color: #1D2327;
                                                    padding: 10px;
                                                    text-align: center;
                                                    width: 38px;
                                                }
    
                                                &.wtai-site {
                                                    padding: 10px 0;

                                                    div {
                                                        font-size: 10px;
                                                        font-weight: 600;
                                                        line-height: 13px;
                                                        color: #888888;
                                                    }
    
                                                    p {
                                                        font-size: 12px;
                                                        font-weight: 400;
                                                        line-height: 15px;
                                                        color: #1D2327;
                                                        margin: 10px 0;
                                                    }
    
                                                    .wtai-name {
                                                        font-size: 12px;
                                                        font-weight: 600;
                                                        line-height: 17px;
                                                        color: #eb5202;
                                                        text-decoration: underline;
                                                    }
            
                                                    .wtai-domain {
                                                        font-size: 12px;
                                                        font-weight: 400;
                                                        line-height: 15px;
                                                        color: #eb5202;
                                                        display: flex;
                                                        align-items: center;
                                                        opacity: 0.7;
                                                        text-decoration: none;
            
                                                        &::after {
                                                            content: url('../WriteTextAI_WriteTextAI/images/serp_link.png');
                                                            display: inline-block;
                                                            margin-left: 5px;
                                                            width: 10px;
                                                            height: 10px;
                                                        }
                                                    }
    
                                                    .wtai-derived {
                                                        font-size: 9px;
                                                        line-height: 11px;
                                                        font-weight: 400;
                                                        color: #1D2327;
    
                                                        span {
                                                            display: inline-block;
                                                            font-size: 9px;
                                                            line-height: 11px;
                                                            font-weight: 400;
                                                            color: #1D2327;
                                                            font-weight: 600;
    
                                                            &::after {
                                                                display: none;
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
    
                    .wtai-keyword-pipeline {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        margin-bottom: 24px;
    
                        .wtai-pipeline-between-keywords {
                            display: flex;
                            flex-direction: column;
                            height: 82px;

                            &.wtai-previous-was-skipped {
                                height: 213px;
    
                                &[wtai-data-skipped-count="2"] {
                                    height: 343px;
                                }
    
                                &[wtai-data-skipped-count="3"] {
                                    height: 471px;;
                                }
                                
                                .wtai-arrow-head,
                                .wtai-arrow-tail {
                                    height: auto;
                                    flex-grow: 1;
                                }
    
                                &.wtai-all-above-skipped {
                                    height: 130px;
                                    visibility: hidden;
    
                                    &[wtai-data-skipped-count="2"] {
                                        height: 259px;
                                    }
    
                                    &[wtai-data-skipped-count="3"] {
                                        height: 390px;
                                    }
    
                                    &[wtai-data-skipped-count="4"] {
                                        height: 518px;
                                    }
                                }
                            }
                        }
                    }
                }

                .wtai-pipeline-edit-active-mask {
                    background-position: center;
                    margin: 0;
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    background-color: rgba(255, 255, 255, 0.4);
                }
            }
        }
    }
    
    .wtai-data-value {
        display: flex;
        color: #757575;
        
        .wtai-data-movement.wtai-down {
            &::before {
                margin-right: unset;
                margin-left: 4px;
                top: 0;
            }
        }
    }
    
    .wtai-data-movement {
        display: flex;
        gap: 2px;
        font-weight: 700;
        font-size: 12px;
        margin-left: auto;

        &::before {
            content: '\e626';
            font-family: 'Admin Icons';
            font-size: 10px;
            position: relative;
            display: inline-block;
            top: -1px;
            margin-left: 5px;
            transform: rotate(90deg);
            margin-left: 2px;
        }

        &.wtai-inner-movement {
            margin-left: 6px;
        }

        &.wtai-up {
            color: #5FAE5F;
        }

        &.wtai-down {
            &::before {
                transform: rotate(270deg);
                margin-right: -3px;
            }
        }
    }
    
    .wtai-edit-pipeline-loading-mask,
    .wtai-edit-keyword-loading-mask,
    .wtai-pipeline-loading-mask,
    .wtai-empty-pipeline-loading-mask,
    .wtai-edit-trigger-loading-mask {
        background-color: rgba(255, 255, 255, 0.4);
        background-image: url("../WriteTextAI_WriteTextAI/images/mage-loader.gif");
        background-position: center;
        margin: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-repeat: no-repeat;
        z-index: 5;
        background-size: 30px 30px;
        display: none;

        &.wtai-show {
            display: block;
        }
    }
}

.modal-popup.wtai-modal.wtai-confirm-modal {
    &.wtai-delete-pipeline-modal {
        .modal-inner-wrap {
            max-width: 574px;
            width: calc(100% - 60px);
        }
    }
}

.wtai-star-badge {
    background-image: url('../WriteTextAI_WriteTextAI/images/star_badge.svg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wtai-primary-badge {
    background-color: #eb5202;
    color: #fff;
    padding: 2px 5px;
    border-radius: 20px;
    font-size: 9px;
    line-height: 12px;
    font-weight: 700;
    text-transform: uppercase;
}