.vimeify-metabox {
  display: flex;
  flex-direction: row;
  margin: -6px -12px -12px;
}

.vimeify-metabox-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: #f6f7f7;
  border-right: 1px solid #c3c4c7;
}

.vimeify-metabox-main {
  flex: 1;
  min-width: 0;
}

.vimeify-metabox-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.vimeify-metabox-tab {
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #50575e;
  text-align: left;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.vimeify-metabox-tab:last-child {
  border-bottom: none;
}
.vimeify-metabox-tab:hover {
  color: #2271b1;
  background: rgba(0, 0, 0, 0.02);
}
.vimeify-metabox-tab--active {
  color: #2271b1;
  background: #fff;
}
.vimeify-metabox-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2271b1;
}

.vimeify-metabox-content {
  padding: 0;
}

.vimeify-metabox-section {
  display: none;
  padding: 15px;
}
.vimeify-metabox-section--active {
  display: block;
}

.vimeify-metabox-field {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.vimeify-metabox-field:first-child {
  padding-top: 0;
}
.vimeify-metabox-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.vimeify-metabox-field__label {
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
  margin-bottom: 6px;
}
.vimeify-metabox-field__desc {
  color: #50575e;
  font-size: 12px;
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.vimeify-metabox-field__choices {
  margin-top: 6px;
}
.vimeify-metabox-field__markup {
  margin-top: 6px;
}
.vimeify-metabox-field__markup p {
  margin: 0;
}
.vimeify-metabox-field__markup p strong {
  color: #1d2327;
}

.vimeify-metabox-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}
.vimeify-metabox-checkbox input[type=checkbox] {
  margin: 2px 0 0 0;
  flex-shrink: 0;
}
.vimeify-metabox-checkbox__label {
  font-size: 13px;
  color: #1d2327;
  line-height: 1.4;
}
.vimeify-metabox-checkbox__desc {
  display: block;
  font-size: 11px;
  color: #50575e;
  margin-top: 3px;
  line-height: 1.4;
}

.vimeify-metabox-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}
.vimeify-metabox-radio input[type=radio] {
  margin: 0;
  flex-shrink: 0;
}
.vimeify-metabox-radio__label {
  font-size: 13px;
  color: #1d2327;
}

.vimeify-metabox-select {
  min-width: 250px;
  max-width: 100%;
}

.vimeify-metabox-field--select .select2-container {
  min-width: 250px;
  max-width: 100%;
}
.vimeify-metabox-field--select .select2-container--default .select2-selection--single {
  height: 30px;
  border-color: #c3c4c7;
}
.vimeify-metabox-field--select .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  padding-left: 8px;
  font-size: 13px;
}
.vimeify-metabox-field--select .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 28px;
}
.vimeify-metabox-field--select .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.vimeify-metabox-input {
  min-width: 250px;
  max-width: 100%;
}
.vimeify-metabox-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.vimeify-metabox-field--html .vimeify-metabox-field__markup {
  background: #f6f7f7;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
}

@media screen and (max-width: 782px) {
  .vimeify-metabox {
    flex-direction: column;
  }
  .vimeify-metabox-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #c3c4c7;
  }
  .vimeify-metabox-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .vimeify-metabox-tab {
    padding: 10px 12px;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
  }
  .vimeify-metabox-tab:last-child {
    border-right: none;
  }
  .vimeify-metabox-tab--active {
    background: #fff;
  }
  .vimeify-metabox-tab--active::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }
  .vimeify-metabox-select,
  .vimeify-metabox-input {
    min-width: 100%;
    width: 100%;
  }
  .vimeify-metabox-field--select .select2-container {
    min-width: 100%;
    max-width: 100%;
  }
}
