.main-result-wrapper.backlinks-overview-result-wrapper .heading-total-count-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--Spacing-s1, 0.5rem);
}
.dialog-content-body {
    background-color: white!important;
}
.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-found-limit-total-count-wrapper {
    display: none;
    margin: 0px;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper {
    gap: var(--Spacing-s3, 1.5rem);
    display: flex;
    flex-direction: column;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-heading td {
    font-weight: 600;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item:nth-child(even) td {
    background: rgba(249, 245, 255, 0.30)!important;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap {
    display: block;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap .item-wrap-attributes {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap .item-wrap-page-title {
    max-width: 350px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap p {
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin: 5px 0;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap a {
    max-width: 300px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: block;
    text-align: left;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap .square-pill {
    font-size: 14.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 151.724% */
    letter-spacing: 0.073px;
    
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--Color-Palette-Tertiary-Light-Purple, #E7D6FF);
    
    width: fit-content;
    -webkit-font-smoothing: antialiased;
    text-transform: uppercase;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item td .item-wrap .target-anchor-text {
    color: #7F1BFF;
}

.main-result-wrapper.backlinks-overview-result-wrapper .backlinks-overview-table-wrapper .tr-item .item-wrap-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.backlinks-overview-result-wrapper .result-cta-wrapper .container {
    max-width: 100% !important;
}

/** Mobile (< 768px) — fully stacked, full width */
@media screen and (max-width: 767px) {
    .cta-backlinks-overview-wrapper .serp-block-wrapper .container {
        padding: 24px;
        padding-bottom: 32px;
        border-radius: var(--corner-radius-m, 16px);
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .side-bg-overlay-wrapper {
        display: none !important;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
        flex-direction: column !important;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .input-wrapper-group {
        width: 100%;
    }

    .cta-backlinks-overview-wrapper .api-form input {
        height: auto !important;
        font-size: 18px !important;
        line-height: 27px !important;
        padding: 16px 20px;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper {
        width: 100%;
        flex-direction: column !important;
    }

    .cta-backlinks-overview-wrapper .select2-container--default .select2-selection--single {
        padding: 16px;
    }

    .serp-api-main-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button {
        width: 100% !important;

    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper p {
        font-size: 18px;
        line-height: 27px;
    }
}

/** Tablet + mid-size (768px-1439px) — stacked: input full row, dropdowns side-by-side, button own row */
@media screen and (min-width: 768px) and (max-width: 1439px) {
    .cta-backlinks-overview-wrapper .serp-block-wrapper .side-bg-overlay-wrapper {
        display: none !important;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
        flex-direction: column !important;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .input-wrapper-group {
        flex: 0 0 100%;
        width: 100%;
    }

    .cta-backlinks-overview-wrapper .api-form input {
        height: auto !important;
        font-size: 22px !important;
        line-height: 31px !important;
        padding: 16px 20px;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper {
        width: 100%;
        flex-direction: row !important;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper .select2-main {
        flex: 1 1 0%;
        width: auto;
        max-width: none;
        padding: 0;
    }

    .cta-backlinks-overview-wrapper .select2-container .selection {
        font-size: 22px;
        line-height: 31px;
    }

    .cta-backlinks-overview-wrapper .select2-container--default .select2-selection--single {
        padding: 16px;
    }

    .serp-api-main-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button {
        flex: 0 0 auto;
        width: auto !important;
     
    }
}

/** Desktop (1440px+) — input + dropdowns in one row, button on next row */
@media screen and (min-width: 1440px) {
    .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .cta-backlinks-overview-wrapper .api-form input {
        height: auto !important;
        font-size: 18px !important;
        line-height: 27px !important;
        padding: 16px 20px;
    }

    .cta-backlinks-overview-wrapper .select2-container .selection {
        font-size: 22px;
        line-height: 31px;
    }

    .cta-backlinks-overview-wrapper .select2-container--default .select2-selection--single {
        padding: 16px;
    }

    .serp-api-main-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button {
        flex: 0 0 auto;
        width: auto !important;

        white-space: nowrap;
        order: 99;
    }

    .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group::before {
        content: '';
        flex: 0 0 100%;
        height: 0;
        order: 98;
        display: none;
    }

}

/** In-content (wysiwyg) — stacked layout, dropdowns side-by-side */
@media screen and (min-width: 768px) {
    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .container {
        padding: 40px;
        border-radius: var(--corner-radius-m, 16px);
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .side-bg-overlay-wrapper {
        display: none !important;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
        flex-direction: column !important;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .input-wrapper-group {
        flex: 0 0 auto !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        max-width: 100%!important;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
        align-items: flex-start!important;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .input-wrapper {
        width: 100% !important;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .api-form input {
        height: auto !important;
        font-size: 22px !important;
        line-height: 31px !important;
        padding: 16px 20px;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper {
        width: 100% !important;
        flex-direction: row !important;
        /* gap: 16px; */
        flex: 0 0 auto;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper .select2-main {
        flex: 1 1 0%;
        width: auto;
        max-width: none;
        padding: 0;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .select2-container .selection {
        font-size: 22px;
        line-height: 31px;
        height: auto;
        max-height: fit-content;
    }

    .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .select2-container--default .select2-selection--single {
        padding: 16px;
    }

    .wysiwyg__content-wrapper .serp-api-main-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button,
    .serp-api-main-wrapper .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button,
    .page-template-page-article .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button,
    .page-parent .wysiwyg__content-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button {
        flex: 0 0 auto;
        width: auto !important;
    }
}

/** Sidebar — always fully stacked, all full width */
.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper .container {
    padding: 24px;
    padding-bottom: 32px;
}

.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper .side-bg-overlay-wrapper {
    display: none !important;
}

.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper .form-group {
    flex-direction: column !important;
    gap: 16px;
}

.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper .input-wrapper-group {
    flex: unset;
    width: 100%;
}

.sidebar-container .cta-backlinks-overview-wrapper .api-form input {
    height: auto !important;
    font-size: 18px !important;
    line-height: 27px !important;
    padding: 16px 20px;
}

.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper .location-language-select-wrapper {
    flex: unset;
    width: 100%;
    flex-direction: column !important;
    gap: 16px;
}

.sidebar-container .cta-backlinks-overview-wrapper .select2-container .selection {
    font-size: 18px;
    line-height: 27px;
}

.sidebar-container .cta-backlinks-overview-wrapper .select2-container--default .select2-selection--single {
    padding: 16px;
}

.sidebar-container .serp-api-main-wrapper .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button,
.serp-api-main-wrapper .sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper form button.button {
    width: 100% !important;
}

.sidebar-container .cta-backlinks-overview-wrapper .serp-block-wrapper p {
    font-size: 18px;
    line-height: 27px;
}
