.result-container:has(.loader-span) .export-btn {
    pointer-events: none;
}

.result-container:not(:has(.filter-btn.active)) .reset-btn.mobile {
    display: none;
}

.loader-span {
    display: block;
    border: 2px solid #D4403A40;
    border-top: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 2s ease-in-out reverse infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.remove-data-text {
    padding: 6px;
}

.result-container {
    max-width: 1136px;
    margin: 0 auto 54px;
    counter-reset: section;
    margin-top: 48px !important;
    padding: 0 16px;

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
    }

    .title {
        font-weight: 700 !important;
        font-size: 24px;
        line-height: 32px;
        color: #1E2938;
    }

    .actions {
        display: flex;
        gap: 16px;
    }

    .filter-btn,
    .export-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 16px;
        gap: 10px;
        background: #FFFFFF;
        border: 1px solid #E5E7EB;
        box-shadow: 0px 1px 2px rgba(10, 0, 31, 0.05);
        border-radius: 8px;
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: #364153;
        min-width: 100px;

        &:hover,
        &.active {
            color: #1E2938;
            border-color: #98A1AE;
        }

        &:not(:hover, .active)>img {
            filter: invert(0.5);
        }
    }

    .metrics {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
        margin-right: 8px;
    }

    .metric {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: white;
        font-weight: 500;
        position: relative;

        &>span {
            font-size: 14px;
            line-height: 20px;
            color: #000;
            font-weight: 500;
        }

        .metric-range {
            border-radius: 8px;
            border: 1px solid #DADADA;
            padding: 6px 12px;
            display: inline-flex;
            gap: 4px;
            align-items: center;
            min-width: 118px;
        }

        &:hover .metric-range {
            cursor: pointer;
            border-color: var(--border-primary);
        }
    }

    .metric-min,
    .metric-max {
        font-weight: bold;
        color: #0A0909;
        display: inline-flex;
        align-items: center;
        gap: 4px
    }

    .metric-min::after {
        content: url("/web_assets/frontend/images/icons/arrow-right-icon.svg");
        width: 16px;
        height: 16px;
    }

    .metric-range {
        position: relative;
    }

    .metric-range::after {
        display: inline-block;
        content: url("/web_assets/frontend/images/icons/chevron-down.svg");
        width: 12px;
        margin-left: 4px;
        margin-right: -4px;
    }

    .metric-dropdown {
        position: absolute;
        z-index: 99;
        background-color: #fff;
        top: calc(100% + 4px);
        padding: 12px;
        border: 1px solid #DADADA;
        box-shadow: 0px 2px 2px 0px #00000014;
        border-radius: 8px;
        right: 0;

        .dropdown-label {
            font-size: 12px;
            line-height: 16px;
            display: inline-block;
            margin-bottom: 12px;
        }

        .dropdown-range {
            display: flex;
            flex-direction: column;
            gap: 8px;

            label {
                font-weight: 500;
                font-size: 12px;
                line-height: 24px;
                text-align: right;
                min-height: 24px;
                color: #ACACAC;
                display: inline-block;
                padding-left: 8px;
            }

            input {
                border: 0.5px solid #DADADA;
                font-size: 12px;
                line-height: 14px;
                padding: 5px 2px;
                border-radius: 4px;
                text-align: center;
                max-width: 44px;
            }
        }
    }

    .reset-btn {
        font-size: 14px;
        line-height: 20px;
        background-color: white;
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 6px 8px;
        cursor: pointer;
        font-weight: 500;

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

    .table {
        width: 100%;
        border-collapse: collapse;
        background-color: white;
    }

    .table-container {
        border: 1px solid #E5E7EB;
        border-radius: 16px;
        overflow-x: unset;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .table thead {
        border-radius: 12px;
        padding: 0px;
        border-bottom: 1px solid #E5E7EB;
        background-color: #FFFFFF;
    }

    .table th,
    .table td {
        padding: 15px;
        text-align: left;
        padding: 16px;
        text-align: left;
        font-size: 16px;
        line-height: 24px;
    }

    .table th {
        font-weight: 500;
        color: #697282;
    }

    .table tr {
        border-bottom: none !important;

        &:hover {
            background-color: #F2F4FF !important;
            color: #323DD6 !important;

            * {
                color: #323DD6 !important;
            }

        }

    }

    [data-tooltip] {
        z-index: 1;
    }

    [data-tooltop]:hover {
        position: relative;
        cursor: pointer;


        &::after {
            content: attr(data-tooltop);
            position: absolute;
            font-size: 12px;
            line-height: 16px;
            font-weight: 400;
            color: #fff;
            background: #0A0909;
            width: max-content;
            bottom: calc(100% + 6px);
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0px 4px 8px 0px #00000014;
            border-radius: 8px;
            display: inline-block;
            padding: 8px;
            z-index: 9999;
        }

        &::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid #0A0909;
            bottom: calc(100%);
            left: 50%;
            transform: translateX(-50%);
        }
    }

    th[data-tooltop]:hover {
        &::after {
            bottom: 50%;
            left: 58px;
            transform: translate(0, 50%);
        }

        &::before {
            bottom: calc(50% - 6px);
            left: 52px;
            transform: translate(-50%, 0);
            border-right-color: #0A0909;
            border-top-color: transparent;
            border-left-color: transparent;
            border-bottom: 6px solid transparent;
        }
    }

    .table .result-table-counter::after {
        counter-increment: section;
        content: counter(section);
    }

    .view-btn {
        color: var(--border-primary);
        ;
        text-decoration: none;
        font-weight: 500;
    }

}

.reset-btn.mobile {
    display: none;
}

@media screen and (max-width:912px) {
    .reset-btn {
        display: none;
    }

    .reset-btn.mobile {
        display: inline-block;
    }

    #js-header-result {
        flex-wrap: wrap;
        gap: 16px;

        .title {
            order: 1;
        }

        .actions {
            order: 2;
            gap: 8px;
        }

        .metrics {
            order: 3;
            width: 100%;
            margin-right: 0;
        }
    }
}

@media screen and (max-width:768px) {
    .actions {
        gap: 8px;
    }

    .result-container {

        .filter-btn,
        .export-btn {
            padding: 6px 12px;
            min-width: 80px;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
        }
    }

    .feedback-center-mobile {
        justify-content: center;
    }

}

.historic-modal {
    position: fixed;
    z-index: 9999999;
    background-color: #00000040;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;

    .modal-body {
        position: absolute;
        background: #fff;
        min-height: 310px;
        max-width: 546px;
        width: calc(100% - 16px);
        z-index: 1;
        margin: 0 auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 16px;
        box-shadow: 0px 4px 8px 0px #00000014;
        padding: 12px 16px;
    }

    .modalHeader {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
    }

    .site-info {
        color: #7F7F7F;
    }

    .close-button {
        display: inline-flex;
        cursor: pointer;

        &:hover {
            filter: brightness(0.5);
        }
    }
}


/* =======================
historic data popup start
========================= */

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.gap-\[2\.5\] {
    gap: 10px;
}

.cursor-pointer {
    cursor: pointer;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.leading-0 {
    line-height: 0;
}

.js-popup-overlay {
    position: fixed;
    z-index: 9999;
    background-color: #25253380;
    min-height: 100vh;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 6px;
    flex-direction: column;

    button {
        border: 0px;
        background-color: unset;
    }

    .js-popup-body {
        width: 100%;
        max-width: 408px;
        min-height: 566px;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: 0px 4px 20px 6px #25253329;
        background-color: white;
        overflow: hidden;
        position: relative;

        &::after {
            position: absolute;
            content: "";
            background: radial-gradient(50% 100% at 50% 0%, rgba(247, 201, 199, 0.16) 0%, #F9FAFB 100%);
            backdrop-filter: blur(100px);
            min-height: 296px;
            width: 100%;
            inset-inline: 0;
            top: 0;
        }

        .js-close-popup {
            margin: 0 0 0 auto;
            transition: all ease-in 200ms;
            position: absolute;
            top: 0;
            right: 4px;
            z-index: 30;

            &:hover {
                filter: brightness(0);
            }
        }

        .js-popup-header {
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 20;
            padding: 24px;

            p {
                color: #222222;
                font-weight: 600;
                font-size: 24px !important;
                line-height: 48px;
                text-align: center;
            }

            span {
                color: #222222;
                font-size: 16px;
                line-height: 24px;
                font-weight: 400;
                text-align: center;
            }
        }

        .js-popup-table {
            padding: 0px 24px 24px 24px;
            position: relative;
            z-index: 20;

            ul {
                border: 1px solid #DADADA;
                padding: 6px 0px;
                min-height: 280px;
                width: 100%;
                border-radius: 20px;
                background: #ffffff;
                display: flex;
                flex-direction: column;
                list-style: none;

                li {
                    padding: 10px 24px;

                    p {
                        color: #0A0909;
                        font-size: 16px !important;
                        line-height: 24px;
                        font-weight: 400;
                    }

                    [data-tooltip] {
                        z-index: 1;
                    }

                    [data-tooltip]:hover {
                        position: relative;
                        cursor: pointer;

                        &::after {
                            content: attr(data-tooltip);
                            position: absolute;
                            font-size: 12px;
                            line-height: 16px;
                            font-weight: 400;
                            color: #fff;
                            background: #0A0909;
                            width: max-content;
                            bottom: calc(100% + 6px);
                            left: 50%;
                            transform: translateX(-50%);
                            box-shadow: 0px 4px 8px 0px #00000014;
                            border-radius: 8px;
                            display: inline-block;
                            padding: 8px;
                            z-index: 9999;
                        }

                        &::before {
                            content: '';
                            position: absolute;
                            width: 0;
                            height: 0;
                            border-left: 6px solid transparent;
                            border-right: 6px solid transparent;
                            border-top: 6px solid #0A0909;
                            bottom: calc(100%);
                            left: 50%;
                            transform: translateX(-50%);
                        }
                    }

                    .data-info-icon[data-tooltip]:hover {
                        &::after {
                            bottom: 50%;
                            left: 25px;
                            transform: translate(0, 50%);
                        }

                        &::before {
                            bottom: calc(50% - 6px);
                            left: 21px;
                            transform: translate(-50%, 0);
                            border-right-color: #0A0909;
                            border-top-color: transparent;
                            border-left-color: transparent;
                            border-bottom: 6px solid transparent;
                        }
                    }
                }


            }
        }

        .js-popup-footer {
            padding: 0px 24px 24px 24px;

            a.emd-pricing-plans {
                background: linear-gradient(269.27deg, #323DD6 0.63%, #CE177B 99.37%);
                padding: 10px 16px;
                border-radius: 999px;
                width: 100%;
                text-align: center;
                justify-content: center;
                transition: all ease-in 200ms;

                span {
                    font-size: 16px !important;
                    line-height: 22px;
                    font-weight: 400;
                    color: #ffffff;
                }

                &:hover {
                    background: linear-gradient(89.27deg, #323DD6 0.63%, #CE177B 99.37%);
                }
            }

            a.continue_as_free {
                padding: 10px 0px;
                text-align: center;
                color: #757575;
                font-size: 16px !important;
                line-height: 22px;
                font-weight: 400;
                transition: all ease-in 200ms;

                &:hover {
                    color: #0A0909;
                }
            }
        }
    }
}

/* =======================
historic data popup end
========================= */

.tool_container.dr-checker {
    .tool_bottom_btns {
        padding-right: 0 !important;
    }
}

.da-pa-bottom-bar {
    left: unset;
    right: unset;
    transform: translate(0);
    position: static;
}

.tool-button-container {
    .tool-button {
        padding: 14px 20px !important;
    }
}

.tool_container {
    max-height: fit-content !important;
}

.tool_container .textarea_box {
    margin-bottom: 0 !important;
    position: relative;
}

.other-tools-sponser-container {
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
    background: #F3F4F6;
    border-radius: 8px;
    max-height: 32px;
}

.tool.other-tool-container {
    justify-content: center;
    align-items: center;
    padding: 4px 8px !important;
    gap: 8px !important;
    border-radius: 6px !important;
    background-color: transparent !important;
}

.tool.other-tool-container span {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #98A1AE;
}

.tool.other-tool-container.active {
    background: #FFFFFF !important;
    box-shadow: 0px 1px 3px rgba(10, 0, 31, 0.1), 0px 1px 2px rgba(10, 0, 31, 0.06);
    border: none !important;
}

.tool.other-tool-container.active span {
    color: #323DD6;
}

.tool {
    border-radius: 999px !important;
    line-height: 22px;
}

.tool_container .tools {
    width: 100%;
    justify-content: space-between;
}

.tool_container .tools {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid #E5E7EB !important;
}

.tool_container .tools {
    flex-wrap: wrap;
}

.tool_container .tools * {
    text-wrap: nowrap;
}

.tool-button-container {
    .btn-primary {
        min-width: fit-content !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 16px !important;
        gap: 10px !important;
        background: #323DD6 !important;
        box-shadow: 0px 1px 3px rgba(10, 0, 31, 0.1), 0px 1px 2px rgba(10, 0, 31, 0.06) !important;
        border-radius: 8px !important;
        border: none !important;

        .tool-button-text {
            font-weight: 400 !important;
            font-size: 16px !important;
            line-height: 24px !important;
            color: #FFFFFF !important;
        }
    }

    .btn-primary:focus {
        background: #323DD6 !important;
    }

    .btn-primary:hover {
        background-color: #1D218A !important;
        color: #FFFFFF !important;
    }

}

#urls,
.form-control {
    background-color: none !important;
}

.tool_container {
    #urls {
        padding: 16px !important;
        padding-right: 46px !important;
        padding-bottom: 36px !important;
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: #364153;
    }

    .textarea_box {
        padding: 0 !important;
        width: 100%;
    }

    .textarea_box>.relative {
        border-bottom: 1px solid #E5E7EB;
    }

    .tool_bottom_btns {
        padding: 16px !important;
    }
}

.tool_container .tool_bottom_btns {
    min-height: 56px;
}

.get-api-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 99px;
    padding: 6px 12px;
    background: white;
    box-shadow: 0px 4px 8px 0px #00000014;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: black !important;
    border: 1px solid #00000014;
}

.get-api-link svg path {
    stroke: black !important;
}

#urls {
    padding-right: 20px;
}

.btn span {
    padding: 8px 16px;
    line-height: 20px;
    border-radius: 25px;
}

.btn span img {
    width: 20px;
    height: 20px;
}

.excludeChecks_heading {
    display: none;
}

.excludeChecks label span.mobile {
    display: none;
}

@media only screen and (min-width: 800px) and (max-width: 825px) {
    .form_align_just {
        width: 100% !important;
    }
}

@media only screen and (max-width: 800px) {
    .form_align_just {
        width: 100% !important;
    }
}


@media screen and (max-width: 768px) {
    .form_align_just>.excludeChecks {
        gap: 8px;
    }

    .excludeChecks label span.desktop {
        display: none;
    }

    .excludeChecks label span.mobile {
        display: inline;
    }

    .excludeChecks_heading {
        display: flex;
        align-items: center;
        font-weight: 700;
        font-size: 14px;
        line-height: 20px;
        color: #1E2938;
    }

    .tool_container:has(#remove_data[style*="visibility:hidden"]) .tool_bottom_btns {
        height: fit-content !important;
    }

    .da-pa-bottom-bar .excludeChecks {
        align-items: end !important;
    }

    .tool_container .tool_bottom_btns {
        height: fit-content !important;
    }

    .form_align_just {
        min-width: fit-content !important;
    }
}

@media screen and (max-width: 510px) {
    #js-header-result {
        .metrics {
            justify-content: center;
            margin-right: 0;
        }
    }

    .result-container {
        .metric {
            flex: 1;

            .metric-range {
                flex:1;
            }
            .metric-max {
                width: 100%;
            }
            .metric-dropdown {
                width: 100%;
            }
        }
    }
}

@media screen and (max-width: 380px) {
    .tool_container .tools {
        gap: 5px;
    }

    #js-header-result {
        .metrics {
            justify-content: center;
            margin-right: 0;
        }
    }

    /* .tool_container .tools .tool {
        padding: 6px 12px !important;
    } */
}

@media screen and (max-width: 370px) {
    .form_align_just {
        align-items: end !important;
    }

    .tool_container .tool_bottom_btns {
        padding: 10px !important;
    }

    .result-container {

        .filter-btn,
        .export-btn {
            min-width: 60px;
        }
    }
}