/* Style the page */

#col-left .col-wrap,
#col-right .col-wrap {
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, .1);
}

#col-left .col-wrap h2 {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #1d2939;
    border-bottom: 1px solid #eaecf0;
}

#col-left .col-wrap form {
    padding: 10px 20px 5px;
}

#col-right .col-wrap form {
    padding: 10px 20px 20px;
}

#col-left .col-wrap form .submit {
    margin-top: 20px;
}

#col-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#col-left,
#col-right {
    float: none;
}

#col-left {
    flex: 0 0 400px;
}

#col-right {
    margin-left: 30px;
    flex: 1;
}

/* Hide the slug and description on the add new page */

.edit-tags-php #addtag .form-field.term-slug-wrap,
.form-field.term-description-wrap {
    display: none !important;
}

/* Hide the default search box */

#wpbody-content .wrap .search-form {
    display: none;
}

/* Edit Term Page */

.term-php #wpbody-content .wrap {
    padding: 0 !important;
    margin: 40px 10px 0 30px !important;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, .1);
}

.term-php #wpbody-content .wrap h1 {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #1d2939;
    border-bottom: 1px solid #eaecf0;
}

.term-php #wpbody-content .wrap #edittag {
    padding: 20px;
}

/* Fields (Add and Edit) */

#col-left .col-wrap input[type="text"],
#col-left .col-wrap input[type="number"],
#col-left .col-wrap textarea,
.term-php .form-field input[type="text"],
.term-php .form-field input[type="number"],
.term-php .form-field textarea {
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

#col-left .col-wrap input[type="text"],
#col-left .col-wrap input[type="number"],
#col-left .col-wrap textarea {
    width: 100%;
}

.term-php .form-field input[type="text"],
.term-php .form-field input[type="number"],
.term-php .form-field textarea {
    width: 500px;
    max-width: 100%;
}

#col-left .col-wrap input[type="text"]:focus,
#col-left .col-wrap input[type="number"]:focus,
#col-left .col-wrap textarea:focus,
.term-php .form-field input[type="text"]:focus,
.term-php .form-field input[type="number"]:focus,
.term-php .form-field textarea:focus {
    border-color: #84caff;
    box-shadow: 0 0 0 3px rgba( 132, 202, 255, 0.25 );
    outline: none;
}

/* Labels and Helper Text */

#addtag .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.edit-tags-php .form-field p.description,
.term-php .form-field p.description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 0;
    font-size: 12px;
    font-style: normal;
    color: #667085;
}

/* Edit Term Layout */

.term-php #edittag .form-table,
.term-php #edittag .form-table tbody {
    display: block;
    width: 100%;
}

.term-php #edittag .form-table tr.form-field {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 24px 0;
}

.term-php #edittag .form-table th {
    flex: 0 0 200px;
    width: 200px;
    padding: 0;
}

.term-php #edittag .form-table th label {
    display: block;
    font-weight: 600;
    padding-top: 8px;
}

.term-php #edittag .form-table td {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

/* Buttons */

#col-left .col-wrap p.submit input[type="submit"],
.term-php .edit-tag-actions input[type="submit"] {
    background: var( --helpdocs-color-button ) !important;
    color: var( --helpdocs-color-button-font ) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.80rem !important;
    font-weight: 500 !important;
    height: 30px !important;
    min-height: 30px !important;
    line-height: 1 !important;
    padding: 0 12px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

#col-left .col-wrap p.submit input[type="submit"]:hover,
#col-left .col-wrap p.submit input[type="submit"]:focus,
.term-php .edit-tag-actions input[type="submit"]:hover,
.term-php .edit-tag-actions input[type="submit"]:focus {
    background: var( --helpdocs-color-button-hover ) !important;
}

.term-php .edit-tag-actions {
    margin: 0;
}