.taxonomies-template-post-types {
    margin: 24px 0;
}

.taxonomies-template-post-types label {
    display: inline-block;
    margin: 12px 20px 0 0;
}

.taxonomies-template-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.taxonomies-template-grid .card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
}

.taxonomies-template-description,
.taxonomies-template-visibility {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.taxonomies-template-description {
    flex-grow: 1;
}

.taxonomies-template-visibility select,
.taxonomies-template-description textarea {
    width: 100%;
}

.taxonomies-template-description textarea {
    resize: vertical;
}

.taxonomies-template-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.taxonomies-template-grid .card.is-added {
    border-color: #008a20;
    box-shadow: 0 0 0 1px #008a20;
}

.taxonomies-template-added-status {
    color: #006b1b;
    font-weight: 600;
}

.taxonomies-template-term-count {
    font-weight: 600;
}

.taxonomies-template-source {
    margin: 0 0 12px;
}

.st-taxonomy-templates-page [hidden] {
    display: none !important;
}

.taxonomies-template-panel {
    box-sizing: border-box;
    max-width: 800px;
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #c3c4c7;
}

.taxonomies-template-panel > h2 {
    margin-top: 0;
}

.taxonomies-template-panel .taxonomies-template-post-types {
    margin: 20px 0;
}

.taxonomies-template-panel .taxonomies-template-description {
    flex-grow: 0;
}

.taxonomies-template-panel .taxonomies-template-include-terms {
    display: block;
}

.taxonomies-template-term-options > label {
    display: block;
    margin-bottom: 8px;
}

.taxonomies-template-panel input.taxonomies-template-term-limit {
    width: 110px;
}

.taxonomies-template-term-options .description {
    margin-top: 8px;
}

.taxonomies-template-sample {
    margin-top: 16px;
    padding: 12px;
    background: #f6f7f7;
    overflow-wrap: anywhere;
}

.taxonomies-template-sample ol {
    margin: 12px 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 0 8px 0 0;
    list-style-position: inside;
}

.taxonomies-template-setup-actions,
.taxonomies-template-progress-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.taxonomies-template-setup-actions .button {
    white-space: normal;
}

.taxonomies-template-sample,
.taxonomies-template-include-terms {
    margin: 0 0 16px;
}

.taxonomies-template-sample summary {
    cursor: pointer;
}

.taxonomies-template-import {
    margin-top: 20px;
}

.taxonomies-template-import progress {
    width: 100%;
}

.taxonomies-template-import.has-import-error .taxonomies-template-import-message {
    color: #b32d2e;
}
