.d4plib-metabox-wrapper,
.d4plib-metabox-wrapper *,
.edit-post-meta-boxes-area .d4plib-metabox-wrapper,
.edit-post-meta-boxes-area .d4plib-metabox-wrapper * {
    box-sizing: border-box;
}

.d4plib-metabox-wrapper .wp-tab-bar {
    margin: 12px 0 -1px;
}

.d4plib-metabox-wrapper .wp-tab-bar a {
    box-shadow: none;
    outline: none;
}

.d4plib-metabox-wrapper p {
    margin: .9em 0;
}

.d4plib-metabox-wrapper h4 {
    font-size: 1.1em;
    padding: 0;
    margin: 0.5em 0;
}

.d4plib-metabox-wrapper div.wp-tab-panel {
    max-height: 360px;
}

.d4plib-metabox-wrapper ul.wp-tab-bar li {
    display: inline-block;
    padding: 3px 5px 4px;
    margin: 0;
    position: relative;
}

.d4plib-metabox-wrapper ul.wp-tab-bar li span.dashicons {
    font-size: 16px;
    height: 16px;
    margin: 2px 3px 0 0;
    vertical-align: top;
}

#side-sortables ul.wp-tab-bar li span.d4plib-metatab-label {
    display: none;
}

#side-sortables ul.wp-tab-bar li span.dashicons {
    font-size: 20px;
    height: 20px;
    margin: 3px 5px;
}

.d4plib-metabox-wrapper p label {
    display: inline-block;
    margin-bottom: 2px;
}

.d4plib-metabox-wrapper input[type="number"].widefat,
.d4plib-metabox-wrapper input[type="text"].widefat,
.d4plib-metabox-wrapper textarea.widefat {
    min-width: 200px;
    max-width: 100%;
    display: block;
    padding: 4px;
    line-height: 28px;
    vertical-align: middle;
}

.d4plib-metabox-wrapper input[type="number"].widefat,
.d4plib-metabox-wrapper input[type="text"].widefat {
    height: 32px;
}

.d4plib-metabox-wrapper input[type="text"].widefat {
    width: 100%;
}

.d4plib-metabox-wrapper select.widefat {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    display: block;
    padding: 4px;
    line-height: 28px;
    vertical-align: middle;
    height: 32px;
}

#side-sortables .d4plib-metabox-wrapper select.widefat {
    width: 100%;
}

.d4plib-metabox-checkboxes label,
.d4p-setting-checkboxes label {
    display: block;
    margin: 0 0 4px;
}

.d4p-setting-checkboxes .d4p-check-uncheck,
.d4plib-metabox-check-uncheck {
    border-bottom: 1px dotted #cccccc;
    font-size: 0.9em;
    margin: 0 0 5px;
    padding: 0 0 5px;
}

.d4plib-metabox-wrapper-left {
    width: 250px;
    float: left;
}

.d4plib-metabox-wrapper-left select {
    width: 100% !important;
}

.d4plib-metabox-wrapper-right {
    width: calc(100% - 266px);
    display: inline-block;
    padding-left: 15px;
    margin-left: 15px;
    border-left: 1px solid #ddd;
    box-sizing: border-box;
}

#side-sortables .d4plib-metabox-wrapper-left {
    float: none;
    width: 100%;
}

#side-sortables .d4plib-metabox-wrapper-right {
    display: block;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #ddd;
}

.d4plib-metabox-row {
    width: 100%;
    overflow: auto;
    border-left: 5px solid #888;
    padding-left: 5px;
}

.d4plib-metabox-row > div {
    float: left;
}

.d4plib-metabox-row.__p-zero-margin > div p {
    margin: 0;
}

.d4plib-metabox-row > div input.widefat,
.d4plib-metabox-row > div select.widefat {
    min-width: 0 !important;
    width: 100%;
}

.d4plib-metabox-row .__column-third {
    width: 33.33%;
}

.d4plib-metabox-row .__column-fourth {
    width: 25%;
}

.d4plib-metabox-row .__column-three-fourths {
    width: 75%;
}

.d4plib-metabox-row .__column-fifth {
    width: 20%;
}

.d4plib-metabox-row .__column-sixth {
    width: 16.66%;
}

.d4plib-metabox-row .__column-two-ninths {
    width: 22.22%;
}

.d4plib-metabox-row .__column-two-thirds {
    width: 66.66%;
}

.d4plib-metabox-row .__column-full {
    width: 100%;
    float: none;
}

.d4plib-metabox-row .__column-half {
    width: 50%;
}

.d4plib-metabox-row .__on-middle {
    padding-left: 10px;
    padding-right: 10px;
}

.d4plib-metabox-row .__on-left {
    padding-right: 10px;
}

.d4plib-metabox-row .__on-right {
    padding-left: 10px;
}

.d4plib-metabox-row.__with-margin {
    margin: .9em 0;
}

.d4plib-metabox-row.__with-margin-bottom {
    margin: 0 0 .9em;
}

@media screen and (max-width: 1024px) {
    .d4plib-metabox-wrapper ul.wp-tab-bar li span.d4plib-metatab-label {
        display: none;
    }

    .d4plib-metabox-wrapper ul.wp-tab-bar li span.dashicons {
        font-size: 20px;
        height: 20px;
        margin: 3px 5px;
    }
}

@media screen and (max-width: 640px) {
    .d4plib-metabox-wrapper-left {
        float: none;
        width: 100%;
    }

    .d4plib-metabox-wrapper-right {
        display: block;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #ddd;
    }
}

@media screen and (max-width: 480px) {
    .d4plib-metabox-row > div {
        float: none;
    }

    .d4plib-metabox-row .__column-third,
    .d4plib-metabox-row .__column-half,
    .d4plib-metabox-row .__column-sixth,
    .d4plib-metabox-row .__column-two-ninths,
    .d4plib-metabox-row .__column-fourth,
    .d4plib-metabox-row .__column-three-fourths,
    .d4plib-metabox-row .__column-fifth,
    .d4plib-metabox-row .__column-two-thirds {
        width: 100%;
    }

    .d4plib-metabox-row .__on-middle,
    .d4plib-metabox-row .__on-left,
    .d4plib-metabox-row .__on-right {
        padding-left: 0px;
        padding-right: 0px;
    }
}
