/**
 * The following styles get applied inside the editor only.
 *
 * Replace them with your own styles or remove the file completely.
 */

.seoaic-in-progress-placeholder {
    background-color: #eaeef9;
    height: 180px;
    position: relative;
    overflow: hidden;

    &::before {
        animation: shimmer 2s infinite;
        background: linear-gradient(120deg,hsla(0,0%,100%,0) 30%,hsla(0,0%,100%,.5) 50%,hsla(0,0%,100%,0) 70%);
        content: "";
        height: 100%;
        left: -100%;
        position: absolute;
        top: 0;
        width: 200%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-40%);
    }
    100% {
        transform: translateX(80%);
    }
}

.improve-content-prompt-field {
    textarea {
        width: 400px;
        height: 70px;
    }
}

.seoaic-improve-content-modal {
    max-height: 90%;

    .seoaic-prompts-title {
        font-weight: bold;
    }

    .seoaic-prompt-item {
        cursor: pointer;
        background-color: #eaeef9;
        color: #100717;
        border-radius: 5px;
        padding: 6px 15px;
        border: 1px solid #eaeef9;
        margin-top: 3px;
        margin-bottom: 7px;
        transition: all 0.15s linear;
        max-width: 400px;

        &:hover {
            border-color: #949494;
        }
    }
}

.seoaic-sidebar {
    .d-grid {
        display: grid;
    }
    .text-center {
        text-align: center;
    }

    .seoaic-sidebar-section {
        margin-bottom: 26px;
        width: 100%;

        &:last-child {
            margin-bottom: 0;
        }

        .notice {
            margin-left: 0;
            margin-right: 0;
        }
    }

    .components-panel__body-title {
        .components-panel__body-toggle.components-button {
            font-size: 16px;
        }
    }

    .seoaic-sidebar-table {
        .seoaic-sidebar-table-row {
            grid-template-columns: 2fr 1fr 1fr;
            border-top: 1px solid #ddd;

            &.seoaic-sidebar-table-header {
                > div {
                    font-size: 16px;
                    background-color: #eceffc;
                }
            }

            > div {
                display: flex;
                align-items: left;
                padding: 5px;
                border-right: 1px solid #ddd;
                // overflow-x: scroll;

                &:first-child {
                    border-left: 1px solid #ddd;
                }

                &:not(:first-child) {
                    justify-content: center;
                    align-items: center;
                }
            }

            &:last-child {
                border-bottom: 1px solid #ddd;
            }

            .seoaic-sidebar-competitor-title.clickable {
                cursor: pointer;
                text-decoration: underline;
            }
        }
    }

    .seoaic-compare-tip {
        color: #1e1e1e;
        margin-bottom: 10px;
    }

    .seoaic-competitors-table {
        .seoaic-sidebar-table-row {
            > div {
                overflow-wrap: anywhere;
            }
        }
    }
}

.seoaic-change-tone-modal {
    .seoaic-change-tone-buttons-row {
        margin-bottom: 10px;
    }
}

#seoaic_editor_analyze_table {
    h2 {
        color: #000;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        margin: 0;
    }

    p {
        color: #000;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        margin: 0 0 8px;
    }

    b {
        color: #000;
        display: block;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 120%;

        & + b {
            margin-top: 8px;
        }
    }

    .page-urls {
        align-items: normal;
        display: flex;
        margin-bottom: 10px;
        margin-top: 20px;
        gap: 20px;

        .url {
            flex: 1;
            width: 50%;

            a {
                color: #000;
                font-size: 14px;
                font-weight: 500;
                background-repeat: no-repeat;
                padding-left: 25px;
                background-position: left center;
                background-size: 20px;
                text-decoration: none;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-link-45deg' viewBox='0 0 16 16'%3E%3Cpath d='M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1 1 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4 4 0 0 1-.128-1.287z'/%3E%3Cpath d='M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243z'/%3E%3C/svg%3E");
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                line-clamp: 1;
                -webkit-box-orient: vertical;
            }
        }
    }

    .columns {
        display: flex;
        min-height: 300px;
        gap: 20px;

        & > * {
            background: #eaeef9;
            border-radius: 5px;
            flex: 1;
            width: 50%;

            .top-numbers {
                display: flex;
                padding: 35px;
                position: relative;

                &::after {
                    background-color: rgba(16,7,23,.1);
                    bottom: 0;
                    content: "";
                    height: 1px;
                    left: 35px;
                    position: absolute;
                    right: 35px;
                }

                > * {
                    flex: 1;
                    text-align: center;
                    width: 25%;
                }

                > * .num {
                    color: #000;
                    font-size: 40px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: normal;
                    margin-bottom: 5px;
                }

                > * .text {
                    color: #000;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: normal;
                }
            }

            .bottom-seo-params {
                padding: 35px;

                > * + * {
                    margin-top: 30px;
                }

                .page-info {
                    display: flex;

                    > * {
                        flex: 1;
                        width: 50%;
                    }
                }

                .left,
                .right {
                    > * + * {
                        margin-top: 30px;
                    }
                }
            }
        }

        .post-data {
            border: 2px solid var(--Gradient,#5d78f7);
        }
    }

    .ai-suggestion {
        margin-top: 20px;

        .inner {
            border-radius: 5px;
            border: 2px solid var(--Gradient, #5D78F7);
            background: #FFF;
            padding: 35px;

            .title {
                background: var(--Gradient, linear-gradient(271deg, #5D78F7 0.62%, #A551F6 93.05%));
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-size: 14px;
                font-style: normal;
                font-weight: 600;
                line-height: normal;
                margin-bottom: 10px;
            }

            .description {
                color: #000;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 120%; /* 19.2px */
            }
        }
    }
}

.seoaic-target-audience-wrapper {
    max-height: 300px;
    overflow-y: scroll;
    white-space: pre-wrap;
}

.seoaic-sidebar-suggestions {
    display: grid;
    gap: 10px;
}

.seoaic-sidebar-suggestion {
    .seoaic-sidebar-suggestion-card {
        background-color: hsla(0, 0%, 100%, .4);
        padding: 17px 15px;
        position: relative;
        overflow: hidden;

        &::before {
            background: linear-gradient(90deg, #5d78f7, #a551f6) border-box;
            border: 1px dashed #fff;
            bottom: 0;
            content: "";
            left: 0;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            position: absolute;
            right: 0;
            top: 0;
        }
    }

    .seoaic-suggestion-title {
        text-transform: unset;
        margin-bottom: 10px;
    }

    .seoaic-suggestion-body {
        margin-bottom: 10px;
    }

    .seoaic-suggestion-link {
        font-size: 14px;
        font-weight: 600;
    }
}

.seoaic-accent {
    background: #5d78f7;
    background: linear-gradient(90deg,#5d78f7 -30%,#a551f6 80%);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    position: relative;

    &.loading {
        pointer-events: none;

        @keyframes shine {
            0% {
                left: -150%;
            }
            50% {
                left: 100%;
            }
            100% {
                left: 150%;
            }
        }

        &::before {
            animation: shine 2s infinite;
            background: linear-gradient(120deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6) 50%,hsla(0,0%,100%,0));
            content: "";
            height: 100%;
            left: -150%;
            position: absolute;
            top: 0;
            transform: skewX(-30deg);
            width: 200%;
        }
    }
}

.seoaic-thumbnail-default-prompt-wrapper {
    a {
        color: #6079ea;
    }
}


.seoaic-black-link {
    color: #100717;

    &:hover {
        color: #100717;
    }

    &.w-triangle {
        &::after {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27none%27 viewBox=%270 0 15 9%27%3E%3Cpath stroke=%27%23100717%27 d=%27m1 1 3.5 3L8 1%27/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            content: "";
            cursor: pointer;
            height: 10px;
            margin: 0 5px;
            position: relative;
            width: 10px;
            display: inline-block;
        }

        &.state-open {
            &::after {
                transform: rotate(180deg);
            }
        }
    }
}

.seoaic-verification-modal.components-modal__frame {
    max-width: 80%;
    max-height: 90%;
}

h2.seoaic-verification-subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

div.seoaic-verification-texts-flex {
    align-items: stretch;
    margin-bottom: 20px;
    min-height: 180px;
}

.seoaic-verification-text,
.seoaic-verification-textarea textarea {
    font-size: 1rem;
    line-height: 1.5;
}

.seoaic-verification-textarea textarea {
    border-radius: 5px;
}

.seoaic-verification-textarea,
.seoaic-verification-textarea > div,
.seoaic-verification-textarea textarea {
    height: 100%;
}

.seoaic-text-center {
    text-align: center;
}

.seoaic-text-right {
    text-align: end;
}

.seoaic-mb-10 {
    margin-bottom: 10px;
}

.seoaic-p-5 {
    padding: 5px;
}

.seoaic-p-10 {
    padding: 10px;
}

.seoaic-mr-20 {
    margin-right: 20px;
}

.seoaic-warning-note {
    color: red;
    border-left: 5px solid red;
    padding: 3px 5px;
    background-color: #fdd5d5;
}

.seoaic-sidebar-ia-stats {
    .seoaic-ia-stats-subtitle {
        font-size: 18px;
    }

    .seoaic-ia-stats-row {
        font-size: 14px;
    }

    .seoaic-ia-stats-progress-bar-wrapper {
        position: relative;
    }

    .seoaic-ia-question-progress-value {
        position: absolute;
        left: var(--left);
        transform: translateX(-50%);
        cursor: help;
        padding: 5px;
        background: #000;
        color: #fff;
        border-radius: 10px;
        text-align: center;
        line-height: 14px;
    }

    .seoaic-ia-question-progress-bar {
        width: 100%;
        padding: 0 0 10px 0;
    }
}

.seoaic-border-dashed-gradient {
    position: relative;

    &::before {
        background: linear-gradient(90deg, #5d78f7, #a551f6) border-box;
        border: 1px dashed #fff;
        bottom: 0;
        content: "";
        left: 0;
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
    }
}