.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 input[type="datetime-local"],
.custom_metabox_input input[type="tel"],
.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: 20px 0;
}

.divider-texto {
  font-weight: bold;
  margin: 20px 0;
  font-size: 15px;
}

.media-preview {
  display: flex;
}

.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.media-thumbnail {
  max-width: 150px;
  max-height: 150px;
  border: 1px solid #ddd;
  padding: 3px;
  background: #fff;
}

.media-name {
  font-size: 12px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  display: inline-block;
}

.custom_table {
  width: 70%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom_table th,
.custom_table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.custom_table th {
  background-color: #f5f5f5;
  font-weight: 600 !important;
  color: #333;
  text-align: center;
}

.custom_table tr:nth-child(even) {
  background-color: #fafafa;
}

.custom_table tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.2s ease;
}

.custom_table input {
  width: 100%;
  border: none;
  background-color: transparent;
  text-align: center;
  color: #333;
  font-size: 14px;
  font-family: inherit;
  pointer-events: none; /* Evita el foco */
}

.custom_table input:focus {
  outline: none;
}

/************ Sección de preguntas ************/

.preguntas-titulo {
  font-size: 16px;
  font-weight: 700;
  padding: 0px 0px 20px 0px;
}

.custom_metabox_field_opciones {
  margin-bottom: 15px;
}

.custom_desc {
  margin-bottom: 8px;
}

.title-meta {
  font-size: 14px;
  margin: 5px 0px 5px 0px;
  font-weight: 600;
  display: block;
}

.custom_field_opciones {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.custom_field_opciones label {
  margin-right: 10px;
}

.custom_field_opciones textarea,
.custom_field_opciones input[type="text"] {
  flex: 1;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.remove-pregunta {
  margin-top: 10px;
  background: #dc3232;
  color: white;
  border-color: #dc3232;
}

.remove-pregunta:hover {
  background: #a00;
  border-color: #a00;
}
