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

.wtai-keyword-ranking-history {
    .wtai-control {
        position: relative;

        .wtai-label {
            font-size: 14px;
            font-weight: 600;
            line-height: 18px;
            margin-right: 10px;
        }

        .wtai-calendar {
            width: 258px;
        }
    }
}

.ui-datepicker table.ui-datepicker-calendar tr td {
    &.wtai-has-ranking-history {
        a,
        a.ui-state-active {
            background-color: #eb5202;
            color: #ffffff;
        }
    }
}

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

    .tooltip-content {
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
        right: 0;
        left: auto;
        padding: 0;
        width: 150px;
        min-width: 150px;
        border-radius: 4px;
        margin-top: 1px;

        &::before,
        &::after {
            left: auto;
            right: 15px;
        }

        .wtai-date {
            padding: 5px;
            font-weight: 600;
        }

        ul {
            list-style-type: none;
            margin-bottom: 0;

            li {
                cursor: pointer;
                font-weight: normal;
                padding: 5px;

                &:hover {
                    background-color: #ffd5bf;
                }
            }
        }
    }
}