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

.wtai-review_status-tooltip {
    .lib-tooltip();
    z-index: 2;
    position: absolute;
    right: 60px;

    &:hover {
        .tooltip-toggle + .tooltip-content {
            display: none;
        }
    }

    .tooltip-toggle {
        cursor: pointer;
        font-size: 11px;
        font-weight: 600;
        color: #CC9400;
        border: 1px solid #CC9400;
        background: #FFF1CE;
        padding: 4px;
        display: flex;
        align-items: center;
        border-radius: 3px;

        &.wtai-fact-checking {
            color: #CC6E00;
            border-color: #CC6E00;
            background: #FFDDCE;

            .wtai-rewrite-icon {
                background-image: url('../WriteTextAI_WriteTextAI/images/fact_check_icon.png');
            }
        }

        &:hover {
            + .tooltip-content {
                display: none;
            }
        }

        &.active {
            + .tooltip-content {
                display: block;
            }
        }

        .wtai-rewrite-icon {
            width: 15px;
            height: 15px;
            margin-right: 5px;
            background-image: url('../WriteTextAI_WriteTextAI/images/rewrite_icon.png');
        }
    }

    .tooltip-content {
        right: 0;
        left: auto;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
        border: none;
        padding: 20px;
        width: 350px;
        margin-bottom: 10px;

        &:before {
            border-top: none;
            right: 15px;
            left: auto;
        }

        &:after {
            border-width: 10px;
            right: 15px;
            left: auto;
        }

        .wtai-content-wrapper {
            font-size: 12px;
            font-weight: 400;
            line-height: 18px;
            color: #2C3338;

            &.wtai-no-nav {
                .owl-nav {
                    display: none;
                }
            }
            
            .wtai-title {
                font-family: Open Sans;
                font-size: 12px;
                font-weight: 700;
                line-height: 18px;
            }

            .wtai-subtitle {
                font-family: Open Sans;
                font-size: 12px;
                font-style: italic;
                font-weight: 400;
                line-height: 16.34px;
                margin-bottom: 20px;
            }

            .row {
                display: flex;
            }
            
            hr {
                border-top: 1px solid #E0E0E0;
                margin: 10px 0;
            }

            .wtai-field-title {
                font-weight: 600;
                margin-right: 10px;
                margin-bottom: 10px;
                min-width: 30%;
            }

            .action-primary {
                height: 32px;
                padding: 0 12px;
                border-radius: 3px;
                margin-bottom: 10px;
                color: #FFFFFF;
                font-size: 13px;
                font-weight: 400;
                line-height: 17px;
                margin-left: auto;
            }

            .wtai-store {
                max-height: 450px;
                overflow-y: auto;
                cursor: default;
                min-width: 310px;
            }

            .owl-nav {
                justify-content: space-between;
                display: flex;
                min-height: 32px;

                &.disabled {
                    button {
                        display: none;
                    }
                }

                .owl-prev,
                .owl-next {
                    width: 43px;
                    height: 32px;
                    border: 1px solid #adadad;
                    background: #e3e3e3;

                    &::before {
                        font-family: 'Admin Icons';
                        font-weight: 700;
                        display: inline-block;
                    }

                    span {
                        display: none;
                    }
                }

                .owl-prev::before {
                    content: '\e629';
                }

                .owl-next::before {
                    content: '\e62a';
                }
            }
        }

        .owl-carousel-counter {
            font-family: Open Sans;
            font-size: 12px;
            font-weight: 400;
            line-height: 18px;
            text-align: left;
            color: #2C3338;
            position: absolute;
            bottom: 25px;
            left: 50%;
            transform: translate(-50%);
        }
    }
}