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

.wtai-bulk-full-automation-popup,
.wtai-bulk-keyword-analysis-popup {
    .wtai-educational-tooltip {
        bottom: unset;
        top: 130%;
        width: 350px;
        left: -134px;
        &.wtai-offset-right {
            left: -184px;
            .wtai-educational-tooltip-arrow-top {
                left: 64%;
            }
        }

        &-arrow {
            bottom: unset;
            top: -8px;
            transform: rotate(180deg);
        }
    }
}

.wtai-educational-tooltip {
    position: absolute;
    background: #fffbbb;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    width: 400px;
    max-width: 350px;
    left: -110px;
    bottom: 133%;
    z-index: 3;

    &-content {
        padding: 16px;
        position: relative;
    }

    &-message {
        margin-bottom: 12px;
        color: #333;
        
        p {
            margin: 0 0 8px 0;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    &-actions {
        text-align: right;
    }

    &-button {
        min-width: 80px;
        height: 32px;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    &-arrow {
        position: absolute;
        width: 0;
        height: 0;
        border: 8px solid transparent;

        &-top {
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-top-color: #c2c2c2;
            border-bottom: none;

            &:after {
                content: '';
                position: absolute;
                top: -9px;
                left: -8px;
                border: 8px solid transparent;
                border-top-color: #fffbbb;
                border-bottom: none;
            }
        }

        &-bottom {
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-bottom-color: #c2c2c2;
            border-top: none;

            &:after {
                content: '';
                position: absolute;
                bottom: -9px;
                left: -8px;
                border: 8px solid transparent;
                border-bottom-color: #fff;
                border-top: none;
            }
        }

        &-left {
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            border-left-color: #c2c2c2;
            border-right: none;

            &:after {
                content: '';
                position: absolute;
                left: -9px;
                top: -8px;
                border: 8px solid transparent;
                border-left-color: #fff;
                border-right: none;
            }
        }

        &-right {
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            border-right-color: #c2c2c2;
            border-left: none;

            &:after {
                content: '';
                position: absolute;
                right: -9px;
                top: -8px;
                border: 8px solid transparent;
                border-right-color: #fff;
                border-left: none;
            }
        }
    }
}

@media (max-width: 768px) {
    .wtai-educational-tooltip {
        max-width: 300px;
        font-size: 12px;

        &-content {
            padding: 12px;
        }

        &-button {
            min-width: 70px;
            height: 28px;
            padding: 4px 8px;
            font-size: 11px;
        }
    }
} 