.custom_metabox {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom_metabox_field {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.custom_metabox_title {
  font-size: 14px;
  margin: 5px 0px 5px 0px;
}

.custom_metabox_input input[type="text"],
.custom_metabox_input input[type="number"],
.custom_metabox_input input[type="email"],
.custom_metabox_input input[type="url"],
.custom_metabox_input input[type="date"],
.custom_metabox_input textarea,
.custom_metabox_input select {
  width: 50%;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.custom_metabox_input input[type="checkbox"],
.custom_metabox_input input[type="radio"] {
  margin-right: 5px;
}

input[required]:focus,
textarea[required]:focus,
select[required]:focus {
  border-color: red;
}

.required {
  color: red;
}

.divider {
  border-top: 1px solid #ccc;
  margin-top: 20px;
}

.divider p {
  font-weight: bold;
  margin: 10px 0;
  font-size: 15px;
}

.media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.media-thumbnail {
  max-width: 100px;
  margin: 5px;
  display: block;
  border-radius: 5px;
}

.media-name {
  font-size: 12px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 99px;
  display: inline-block;
}
