body.taxopress-block-editor .taxopress-post-suggestterm {
    border: #7e8993 solid 1px;
}

.taxopress-post-suggestterm ul.taxopress-tab.ai-integration-tab li a::before {
    width: 20px;
    height: 16px;
    font-family: Dashicons;
    font-weight: 400;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: "\f323" !important;
    font-variant: normal;
    text-decoration: none;
    color: grey;
}

.taxopress-post-suggestterm .taxopress-ai-fetch-wrap {
    display: flex;
    justify-content: normal;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 5px;
}

.taxopress-post-suggestterm .taxopress-ai-tab-content.existing_terms .taxopress-ai-fetch-wrap input,
.taxopress-post-suggestterm .taxopress-ai-tab-content.existing_terms .taxopress-ai-fetch-wrap select {
    min-width: 120px;
}

.taxopress-post-suggestterm .taxopress-ai-fetch-wrap select {
    max-width: 200px;
}

.taxopress-post-suggestterm .taxopress-ai-fetch-wrap .spinner:not(.is-active) {
    display: none;
}

.taxopress-post-suggestterm .ai-select-all {
    cursor: pointer;
}

.taxopress-post-suggestterm .previewed-tag-fieldset {
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 3px dashed #D1E6EF;
    overflow: auto;
    margin: 3px 0 0;
}

.taxopress-autoterms-options.single-option {
    display: none !important;
}

.taxopress-post-suggestterm .previewed-tag-fieldset legend {
    padding: 0 10px;
    padding-bottom: 5px;
    color: #2271b1;
}

.taxopress-post-suggestterm .previewed-tag-fieldset legend a {
    text-decoration: none;
}

.taxopress-ai-fetch-result.suggest_local_terms .previewed-tag-fieldset {
    margin-bottom: 30px;
}

.taxopress-post-suggestterm .preview-action-btn-wrap {
   display: flex;
    margin-top: 10px;
    justify-content: right;
}

.taxopress-post-suggestterm:not(.fast_update_screen) .preview-action-btn-wrap {
    display: none;
}

.taxopress-post-suggestterm .preview-action-btn-wrap .spinner:not(.is-active) {
    display: none;
}

.preview-action-title .description {
    margin: 3px 1px 3px 10px;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms {
    margin: 3px 1px 3px 10px;
    padding: 0;
    display: inline-block;
    white-space: normal !important;
    background: #ddd;
    border: 1px dotted transparent;
    color: #1e1e1e;
    cursor: pointer;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.taxopress-post-suggestterm .previewed-tag-content {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms:not(.countable) {
    padding: 2px 0;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms.used_term {
    background: #5ecd8a;
    color: #333333;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms .term-name {
    margin: 0 0.3em;
    padding: 8px 4px;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms .term-counts {
    background-color: #357AB5;
    color: #fff;
    margin-left: 0.2em;
    padding: 3px 8px;
    display: inline-block;
}

.taxopress-post-suggestterm .previewed-tag-content .result-terms.disabled {
    color: #a7aaad !important;
    border-color: #dcdcde !important;
    background: #f6f7f7 !important;
    box-shadow: none !important;
    cursor: default;
    transform: none !important;
}

.edit-suggest-term-metabox a  {
    text-decoration: none;
}

.taxopress-post-suggestterm ul.taxopress-tab {
    width: 25%;
}

.st_taxopress_ai-wrap .taxopress-tab-content {
    min-height: 615px;
    width: 70%;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.taxopress-post-suggestterm .taxopress-tab-content {
    width: 70%;
    min-width: 0;
}

.st_taxopress_ai-wrap .description {
    color: #3c434a;
    font-size: 13px;
    line-height: 1.5;
}

.st_taxopress_ai-wrap .description.tab-table-content {
    margin-top: 10px;
}

.st_taxopress_ai-wrap .form-table th {
    min-width: 350px;
}

.st_taxopress_ai-wrap #poststuff{
    padding-top: 0 !important;
}

.st_taxopress_ai-wrap #poststuff #post-body.columns-2 #side-sortables {
    width: unset;
}

.st_taxopress_ai-wrap #poststuff #post-body.columns-2 {
    margin-right: unset;
}

.st_taxopress_ai-wrap #post-body-content,
.st_taxopress_ai-wrap #post-body.columns-2 #postbox-container-1 {
    width: unset;
    min-width: unset;
    float: none;
    margin-right: unset;
    margin-bottom: 10px;
}

.st_taxopress_ai-wrap .tp-ai-flex-item {
    flex: 1 1 0px;
    margin-right: 15px;
    max-width: 50%
}

.st_taxopress_ai-wrap ul.taxopress-tab {
    width: 25%;
}

.st_taxopress_ai-wrap .api-desc-th {
    font-weight: normal;
    padding-top: 0;
    padding-bottom: 0;
    width: 100% !important;
}

.tp-ai-submit-div {
    display: flex;
}

.st_taxopress_ai-wrap .right-body-content {
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    background: #fff;
}

.st_taxopress_ai-wrap select {
    width: 300px;
}

.taxopress-tab.ai-integration-tab li > a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tp-rename-tab { 
    cursor: pointer; 
}

.tp-rename-inline-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-rename-tab-input { 
    display: inline-block; 
    vertical-align: middle; 
    max-width: 150px; 
}

.tp-rename-tab-save { 
    display: inline-block; 
    vertical-align: middle; 
    cursor: pointer; 
}

.tp-rename-tab-error {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: #d63638;
    font-size: 12px;
    line-height: 1.2;
}

.taxopress.tooltip-text.taxopress-ai{
    text-align: center !important;
    min-width: 50px !important;
}

.post-type-content:not(.active),
.role-content:not(.active) {
    display: none !important;
}

.post-type-content.active,
.role-content.active {
    display: block !important;
}

.st-subhide-content {
    display: none !important;
}

.taxopress-ai-tab-content-sub {
    margin-top: 10px;
}

.taxopress-settings-section-header {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.st-hide-content{
    display: block !important;
}

.taxopress-ai-post-type-tab-nav a,
.metabox-role-tab-nav a {
    cursor: pointer;
    text-decoration: none;
    color: #0073aa;
}

.taxopress-ai-post-type-tab-nav a:hover,
.metabox-role-tab-nav a:hover {
    color: #005177;
    text-decoration: underline;
}

.taxopress-ai-post-type-tab-nav a.active,
.metabox-role-tab-nav a.active {
    color: #000;
    font-weight: 600;
}
 
.taxopress-preview-filters {
    margin: 20px 0px !important;
}

.taxopress-post-suggestterm.fast_update_screen .taxopress-suggest-terms-content {
    min-width: 900px !important;
}

.taxopress-post-suggestterm.editor-screen .taxopress-suggest-terms-content {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.taxopress-post-suggestterm .taxopress-suggest-terms-content .taxopress-tab-content-item,
.taxopress-post-suggestterm .taxopress-tab-content-item {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    display: table;
    box-sizing: border-box;
}
