.bbe-meta-field {
    margin-bottom: 20px;
}

#poststuff .bbe-meta-field .heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d2327;
    margin: 0 0 10px;
    padding: initial;
    line-height: initial;
    border-left: 3px solid #2271b1;
    padding-left: 8px;
}

body .bbe-meta-field .layouts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .bbe-meta-field .layout {
    position: relative;
}

body .bbe-meta-field .layout input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

body .bbe-meta-field .layout label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #fff;
    border: 1.5px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s;
    width: 110px;
}

body .bbe-meta-field .layout label:hover {
    border-color: #8c8f94;
}

body .bbe-meta-field .layout:has(:checked) label {
    border-color: #2271b1;
    background: #f0f6fc;
}

body .bbe-meta-field .layout label img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

body .bbe-meta-field .layout label .label {
    font-size: 11px;
    color: #50575e;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

body .bbe-meta-field .layout:has(:checked) label .label {
    color: #2271b1;
    font-weight: 600;
}

.taxonomy-category .bbe-meta-field .form-field,
.taxonomy-post_tag .bbe-meta-field .form-field {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.taxonomy-category .bbe-meta-field .form-field .description,
.taxonomy-post_tag .bbe-meta-field .form-field .description {
    grid-column: 1 / -1;
    margin-top: 10px;
}