/* NDX Configurator - front */
.ndxcfg { --ndx-accent: #5bb5dc; --ndx-ok: #2e9e4f; --ndx-dark: #222; --ndx-line: #d9d9d9;
  margin: 15px 0 25px; position: relative; }
.ndxcfg-hidden-native, body.ndxcfg-active .ndxcfg-hidden-native { display: none !important; }
.ndxcfg .ndxcfg-off { display: none !important; }

/* Pasos */
.ndxcfg-stepper { display: flex; list-style: none; margin: 0 0 20px; padding: 0; position: relative; justify-content: space-between; }
.ndxcfg-stepper:before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--ndx-line); z-index: 0; }
.ndxcfg-dot { position: relative; z-index: 1; flex: 0 0 auto; cursor: default; }
.ndxcfg-dot-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ndx-line); color: #bbb; font-weight: 700; transition: all .2s; }
.ndxcfg-dot.is-current .ndxcfg-dot-num { border-color: var(--ndx-accent); color: var(--ndx-accent); }
.ndxcfg-dot.is-done { cursor: pointer; }
.ndxcfg-dot.is-done .ndxcfg-dot-num { border-color: var(--ndx-accent); color: transparent; position: relative; }
.ndxcfg-dot.is-done .ndxcfg-dot-num:after { content: ''; position: absolute; width: 10px; height: 17px; border: solid var(--ndx-accent);
  border-width: 0 3px 3px 0; transform: rotate(45deg); top: 6px; left: 12px; }

.ndxcfg-step { display: none; }
.ndxcfg-step.is-current { display: block; animation: ndxcfgIn .2s ease; }
@keyframes ndxcfgIn { from { opacity: 0; } to { opacity: 1; } }

/* Elementos */
.ndxcfg-item { margin: 0 0 14px; }
.ndxcfg-title { font-weight: 700; margin: 0 0 6px; }
.ndxcfg-item.titulos-caja-presu .ndxcfg-title { color: var(--ndx-accent); text-transform: uppercase; font-size: 1.15em; margin-top: 10px; }
.ndxcfg-content p:last-child { margin-bottom: 0; }
.ndxcfg-content img { max-width: 100%; height: auto; }
.ndxcfg-item.noMargenAbajo { margin-bottom: 4px; }
.ndxcfg-item.noMargenArriba { margin-top: 0; }

/* Fichas de valores */
.ndxcfg-values { display: flex; flex-wrap: wrap; gap: 8px; }
.ndxcfg-item.atributosCentrados .ndxcfg-values { justify-content: center; }
.ndxcfg-tile { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; min-height: 44px; padding: 4px; background: #fff; border: 1px solid #333; border-radius: 2px; cursor: pointer;
  font: inherit; line-height: 1.2; text-align: center; transition: border-color .15s, box-shadow .15s; }
.ndxcfg-tile:hover { border-color: var(--ndx-accent); }
.ndxcfg-tile.is-selected { border: 2px solid var(--ndx-sel); padding: 3px; }
.ndxcfg-tile-img { display: block; width: 60px; height: 60px; object-fit: contain; }
.ndxcfg-swatch { display: block; width: 50px; height: 50px; border-radius: 2px; }
.ndxcfg-tile-label { font-size: 12px; margin-top: 3px; max-width: 120px; }
.ndxcfg-tile.has-visual .ndxcfg-tile-label { font-size: 11px; color: #555; }
.ndxcfg-tile:not(.has-visual) { padding: 8px 14px; }
.ndxcfg-tile:not(.has-visual) .ndxcfg-tile-label { font-size: 14px; margin: 0; }
.ndxcfg-tile-price { font-size: 12px; font-weight: 700; color: var(--ndx-dark); margin-top: 2px; }
.ndxcfg-tick { display: none; position: absolute; left: -7px; bottom: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ndx-ok); box-shadow: 0 0 0 2px #fff; }
.ndxcfg-tick:after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ndxcfg-tile.is-selected .ndxcfg-tick { display: block; }
.ndxcfg-valdesc { margin-top: 8px; }
.ndxcfg-valdesc-item { padding: 8px 10px; background: #f6f9fb; border-left: 3px solid var(--ndx-accent); margin-bottom: 4px; }

/* Medidas y campos */
.ndxcfg-measures { display: flex; flex-wrap: wrap; gap: 14px; }
.ndxcfg-measure { display: flex; flex-direction: column; min-width: 150px; flex: 1 1 150px; margin: 0; }
.ndxcfg-measure-label { font-weight: 700; margin-bottom: 4px; }
.ndxcfg-input-wrap { display: flex; align-items: center; gap: 6px; }
.ndxcfg-input-wrap .ndxcfg-m { max-width: 140px; }
.ndxcfg-unit { font-style: normal; color: #666; }
.ndxcfg-hint { color: #888; font-size: 12px; }
.ndxcfg-file input[type=file] { display: none; }
.ndxcfg-file-info { margin-top: 6px; font-size: 13px; }

/* Errores y mensajes */
.ndxcfg-error { display: none; color: var(--ndx-sel); font-size: 13px; margin-top: 6px; }
.ndxcfg-item.has-error .ndxcfg-error { display: block; }
.ndxcfg-item.has-error .ndxcfg-values, .ndxcfg-item.has-error .ndxcfg-m { outline: 1px dashed var(--ndx-sel); outline-offset: 3px; }
.ndxcfg-msg { margin-top: 10px; }
.ndxcfg-msg.is-ok { color: var(--ndx-ok); font-weight: 700; }
.ndxcfg-msg.is-error { color: var(--ndx-sel); }

/* Barra inferior fija */
.ndxcfg-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 8px; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.12); border-radius: 2px; }
.ndxcfg-price { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.ndxcfg-price-final { color: var(--ndx-sel); font-size: 1.35em; font-weight: 700; }
.ndxcfg-price-regular { color: #333; margin-left: 8px; font-size: 1.1em; }
.ndxcfg.is-loading .ndxcfg-price { opacity: .5; }
.ndxcfg-btn { display: inline-block; border: 0; border-radius: 4px; padding: 10px 18px; background: var(--ndx-dark); color: #fff;
  font-weight: 700; cursor: pointer; white-space: nowrap; }
.ndxcfg-btn:hover { opacity: .9; color: #fff; }
.ndxcfg-btn[disabled] { opacity: .6; cursor: wait; }
.ndxcfg-btn-light { background: #eee; color: var(--ndx-dark); }
.ndxcfg-btn-light:hover { color: var(--ndx-dark); }
.ndxcfg-add { background: var(--ndx-sel); }
.ndxcfg-qty { display: flex; align-items: center; }
.ndxcfg-qty-btn { width: 30px; height: 36px; border: 1px solid #ccc; background: #f7f7f7; cursor: pointer; }
.ndxcfg-qty-input { width: 44px; height: 36px; text-align: center; border: 1px solid #ccc; border-left: 0; border-right: 0; }

@media (max-width: 575px) {
  .ndxcfg-bar { flex-wrap: wrap; }
  .ndxcfg-price { flex-basis: 100%; order: -1; }
  .ndxcfg-next, .ndxcfg-add { flex: 1 1 auto; }
  .ndxcfg-dot-num { width: 30px; height: 30px; }
  .ndxcfg-stepper:before { top: 14px; }
  .ndxcfg-dot.is-done .ndxcfg-dot-num:after { top: 4px; left: 10px; }
}

/* v0.2: lista con casillas y botones de texto */
.ndxcfg .ndxcfg-sel-fallback { --ndx-sel: #c9181d; }
.ndxcfg-values.is-buttons .ndxcfg-tile { padding: 9px 16px; min-height: 44px; }
.ndxcfg-list { display: flex; flex-direction: column; gap: 6px; }
.ndxcfg-row { flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left; border-color: #cfd6dd; }
.ndxcfg-row.is-selected { padding: 7px 11px; }
.ndxcfg-row .ndxcfg-tile-label { font-size: 14px; margin: 0; flex: 1 1 auto; max-width: none; color: #1f2a33; }
.ndxcfg-row .ndxcfg-tile-price { margin: 0; }
.ndxcfg-check { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #9aa5af; border-radius: 50%; position: relative; }
.ndxcfg-list.is-multiple .ndxcfg-check { border-radius: 4px; }
.ndxcfg-row.is-selected .ndxcfg-check { border-color: var(--ndx-sel); background: var(--ndx-sel); }
.ndxcfg-row.is-selected .ndxcfg-check:after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ndxcfg-row-img, .ndxcfg-row-swatch { width: 36px; height: 36px; object-fit: contain; border-radius: 3px; flex: 0 0 auto; }

/* v0.3 */
.ndxcfg .ndxcfg-values { flex-wrap: wrap !important; max-width: 100%; }
.ndxcfg .ndxcfg-tile { max-width: 100%; min-width: 0; }
.ndxcfg .ndxcfg-tile-img { max-width: 100%; height: auto; aspect-ratio: 1 / 1; }
.ndxcfg .ndxcfg-tile-label { overflow-wrap: anywhere; }
.ndxcfg-tile-price del { font-weight: 400; color: #888; margin-right: 2px; }
.ndxcfg .ndxcfg-m-like { max-width: 140px; }
.ndxcfg-delivery { margin-top: 10px; font-size: 14px; }
.ndxcfg-inline { margin: 4px 0 6px; font-size: 13px; line-height: 1.5; color: #444; }
.ndxcfg-inline strong { font-weight: 600; color: #222; }

/* v0.4 · diseño configurable y responsive */
.ndxcfg { font-size: var(--ndx-font, 14px); max-width: 100%; }
.ndxcfg .ndxcfg-item { display: block; float: none !important; width: auto !important; clear: both; max-width: 100%; box-sizing: border-box; }
.ndxcfg .ndxcfg-values { display: flex; flex-wrap: wrap; gap: var(--ndx-gap, 8px); }
.ndxcfg.ndx-cols-d .ndxcfg-values { display: grid; grid-template-columns: repeat(var(--ndx-cols-d), minmax(0, 1fr)); }
.ndxcfg .ndxcfg-tile { border-radius: var(--ndx-radius, 2px); }
.ndxcfg .ndxcfg-tile-img, .ndxcfg .ndxcfg-swatch { width: var(--ndx-tile, 60px); height: var(--ndx-tile, 60px); }
.ndxcfg.ndx-cols-d .ndxcfg-tile-img, .ndxcfg.ndx-cols-d .ndxcfg-swatch { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 140px; }
.ndxcfg.ndx-title-upper .ndxcfg-item.titulos-caja-presu .ndxcfg-title { text-transform: uppercase; }
.ndxcfg:not(.ndx-title-upper) .ndxcfg-item.titulos-caja-presu .ndxcfg-title { text-transform: none; }
.ndxcfg.ndx-no-prices .ndxcfg-tile-price { display: none; }
.ndxcfg.ndx-no-old .ndxcfg-tile-price del { display: none; }
.ndxcfg-steptext { display: none; font-weight: 700; margin: 0 0 10px; color: var(--ndx-accent); }
.ndxcfg.ndx-steps-text .ndxcfg-steptext { display: block; }
.ndxcfg.ndx-steps-text .ndxcfg-stepper { display: none; }
.ndxcfg:not(.ndx-bar-sticky) .ndxcfg-bar { position: static; }
/* Medidas: en línea (A, B, C, D… en la misma fila) o apiladas */
.ndxcfg .ndxcfg-item.is-measure-like { display: inline-block; vertical-align: top; width: auto !important; min-width: 150px; margin-right: 14px; clear: none; }
.ndxcfg.ndx-measures-stacked .ndxcfg-item.is-measure-like { display: block; }
.ndxcfg.ndx-measures-stacked .ndxcfg-measures { flex-direction: column; }
.ndxcfg .ndxcfg-item.is-measure-like .ndxcfg-measure { min-width: 0; flex: 0 0 auto; }
.ndxcfg .ndxcfg-m.is-invalid, .ndxcfg .ndxcfg-m-like.is-invalid { border-color: var(--ndx-sel); box-shadow: 0 0 0 2px rgba(201,24,29,.15); }
.ndxcfg-item.has-error .ndxcfg-values, .ndxcfg-item.has-error .ndxcfg-m { outline: none; }
.ndxcfg-item.has-error .ndxcfg-values { box-shadow: 0 0 0 1px var(--ndx-sel); border-radius: 4px; }
@media (max-width: 767px) {
  .ndxcfg .ndxcfg-values { display: grid; grid-template-columns: repeat(var(--ndx-cols-m, 3), minmax(0, 1fr)); }
  .ndxcfg .ndxcfg-values.is-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndxcfg .ndxcfg-tile { min-width: 0; width: 100%; }
  .ndxcfg .ndxcfg-tile-img, .ndxcfg .ndxcfg-swatch { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; max-width: none; }
  .ndxcfg .ndxcfg-tile-label { font-size: 12px; }
  .ndxcfg .ndxcfg-item.is-measure-like { min-width: 0; width: calc(50% - 10px) !important; margin-right: 6px; }
  .ndxcfg .ndxcfg-measure { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .ndxcfg .ndxcfg-input-wrap .ndxcfg-m, .ndxcfg .ndxcfg-m-like { max-width: none; width: 100%; }
  /* Muchos pasos: "Paso X de N" en lugar de los círculos */
  .ndxcfg.ndx-steps-circles .ndxcfg-stepper { display: none; }
  .ndxcfg.ndx-steps-circles .ndxcfg-steptext { display: block; }
  /* Barra de precio fija abajo del todo, a lo ancho de la pantalla */
  .ndxcfg.ndx-bar-mfixed .ndxcfg-bar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; z-index: 1040; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-price { order: 0; flex: 1 1 auto; text-align: left; white-space: normal; font-size: 13px; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-price-final { font-size: 1.15em; display: block; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-price-regular { margin: 0; font-size: .9em; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-qty-btn { width: 26px; height: 34px; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-qty-input { width: 34px; height: 34px; }
  .ndxcfg.ndx-bar-mfixed .ndxcfg-btn { padding: 10px 12px; }
  body.ndxcfg-active { padding-bottom: 76px; }
}
@media (max-width: 380px) {
  .ndxcfg .ndxcfg-values { grid-template-columns: repeat(min(var(--ndx-cols-m, 3), 3), minmax(0, 1fr)); }
  .ndxcfg .ndxcfg-tile { padding: 2px; }
}
/* Los campos de texto tienen un ancho mínimo propio: que nunca empujen fuera de la columna */
.ndxcfg .ndxcfg-input-wrap { min-width: 0; max-width: 100%; }
.ndxcfg .ndxcfg-input-wrap input { min-width: 0; width: 100%; }
.ndxcfg .ndxcfg-item.is-measure-like .ndxcfg-measure { flex: 1 1 100%; width: 100%; }
@media (min-width: 768px) { .ndxcfg .ndxcfg-input-wrap input { max-width: 140px; } }

/* v0.5 · cada paso es una rejilla de 12 columnas; cada grupo elige su ancho y su alineación */
.ndxcfg .ndxcfg-step.is-current { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 14px; background: var(--ndx-step-bg, transparent); border: 1px solid var(--ndx-step-border, transparent); padding: var(--ndx-step-pad, 0); border-radius: var(--ndx-radius, 2px); }
.ndxcfg .ndxcfg-step .ndxcfg-item { grid-column: span 12; display: flow-root; min-width: 0; }
.ndxcfg .ndxcfg-step .ndxcfg-item.ndxcfg-off { display: none !important; }
.ndxcfg .ndxcfg-item.ndx-w-9 { grid-column: span 9; } .ndxcfg .ndxcfg-item.ndx-w-8 { grid-column: span 8; }
.ndxcfg .ndxcfg-item.ndx-w-6 { grid-column: span 6; } .ndxcfg .ndxcfg-item.ndx-w-4 { grid-column: span 4; } .ndxcfg .ndxcfg-item.ndx-w-3 { grid-column: span 3; }
.ndxcfg .ndxcfg-item.is-measure-like { display: flow-root; width: auto !important; min-width: 0; margin-right: 0; }
.ndxcfg .ndxcfg-item.ndx-al-center { text-align: center; } .ndxcfg .ndxcfg-item.ndx-al-right { text-align: right; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-values, .ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-measures { justify-content: center; }
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-values, .ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-measures { justify-content: flex-end; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-input-wrap { justify-content: center; }
.ndxcfg .ndxcfg-item.ndx-gcols .ndxcfg-values { display: grid; grid-template-columns: repeat(var(--ndx-gcols), minmax(0, 1fr)); }
.ndxcfg .ndxcfg-item.ndx-gcols .ndxcfg-tile-img, .ndxcfg .ndxcfg-item.ndx-gcols .ndxcfg-swatch { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.ndxcfg .ndxcfg-item.ndx-fit-cover .ndxcfg-tile-img { object-fit: cover; }
.ndxcfg .ndxcfg-item.ndx-nolabels .ndxcfg-tile.has-visual .ndxcfg-tile-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ndxcfg .ndxcfg-item.ndx-noprices .ndxcfg-tile-price { display: none; }
.ndxcfg .ndxcfg-item.ndx-st-plain .ndxcfg-tile { border-color: transparent; background: transparent; }
.ndxcfg .ndxcfg-item.ndx-st-card .ndxcfg-tile { border-color: #e3e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 8px; }
/* Imágenes del editor: alinear/centrar como en el editor y que nunca "floten" fuera del bloque */
.ndxcfg .ndxcfg-content::after, .ndxcfg .ndxcfg-valdesc::after { content: ''; display: table; clear: both; }
.ndxcfg .ndxcfg-content [style*="text-align: center"] img, .ndxcfg .ndxcfg-content [style*="text-align:center"] img { display: inline-block; }
.ndxcfg .ndxcfg-content img[style*="margin-left: auto"], .ndxcfg .ndxcfg-content img.mce-center { display: block; margin-left: auto; margin-right: auto; }
/* Botones y precio con los colores de Ajustes > Diseño */
.ndxcfg .ndxcfg-btn { background: var(--ndx-btn, #222); color: var(--ndx-btn-text, #fff); }
.ndxcfg .ndxcfg-btn.ndxcfg-btn-light { background: var(--ndx-btn2, #eee); color: #222; }
.ndxcfg .ndxcfg-btn.ndxcfg-add { background: var(--ndx-add, var(--ndx-sel)); color: var(--ndx-btn-text, #fff); }
.ndxcfg .ndxcfg-price-final { color: var(--ndx-price, var(--ndx-sel)); }
.ndxcfg:not(.ndx-show-days) .ndxcfg-delivery { }
@media (max-width: 767px) {
  .ndxcfg .ndxcfg-step.is-current { column-gap: 8px; }
  .ndxcfg .ndxcfg-item.ndx-w-9, .ndxcfg .ndxcfg-item.ndx-w-8 { grid-column: span 12; }
  .ndxcfg .ndxcfg-item.ndx-w-4, .ndxcfg .ndxcfg-item.ndx-w-3 { grid-column: span 6; }
  .ndxcfg .ndxcfg-item.ndx-w-6:not(.is-measure-like):not(.ndxcfg-type-measures) { grid-column: span 12; }
  .ndxcfg .ndxcfg-item.ndx-gcols .ndxcfg-values { grid-template-columns: repeat(min(var(--ndx-gcols), var(--ndx-cols-m, 3)), minmax(0, 1fr)); }
}

/* v0.5.1 · alineación real de CONTENIDO, imágenes e inputs. No solo del título. */
.ndxcfg .ndxcfg-step.is-current { row-gap: 12px; }
.ndxcfg .ndxcfg-step .ndxcfg-item { min-width: 0; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-measures,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-measures { display: flex; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-measure,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-measure {
  flex: 0 1 var(--ndx-measure-width, 210px);
  width: var(--ndx-measure-width, 210px);
  max-width: 100%; min-width: 0;
}
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-input-wrap,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-input-wrap { width: 100%; max-width: 100%; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-input-wrap { justify-content: center; }
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-input-wrap { justify-content: flex-end; }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-input-wrap input,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-input-wrap input {
  flex: 0 1 var(--ndx-input-width, 140px);
  width: var(--ndx-input-width, 140px);
  max-width: 100%; min-width: 0;
}
.ndxcfg .ndxcfg-item.ndx-al-center.ndxcfg-type-text:not(.is-measure-like) > .ndxcfg-f,
.ndxcfg .ndxcfg-item.ndx-al-center.ndxcfg-type-textarea > .ndxcfg-f,
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-select { display: block; margin-left: auto; margin-right: auto; width: min(100%, var(--ndx-field-width, 100%)); }
.ndxcfg .ndxcfg-item.ndx-al-right.ndxcfg-type-text:not(.is-measure-like) > .ndxcfg-f,
.ndxcfg .ndxcfg-item.ndx-al-right.ndxcfg-type-textarea > .ndxcfg-f,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-select { display: block; margin-left: auto; margin-right: 0; width: min(100%, var(--ndx-field-width, 100%)); }
/* Las imágenes de TinyMCE pueden conservar float:left aunque el párrafo esté centrado. */
.ndxcfg .ndxcfg-content [style*="text-align: center"] img,
.ndxcfg .ndxcfg-content [style*="text-align:center"] img,
.ndxcfg .ndxcfg-content [align="center"] img,
.ndxcfg .ndxcfg-valdesc [style*="text-align: center"] img,
.ndxcfg .ndxcfg-valdesc [style*="text-align:center"] img {
  float: none !important;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-content img,
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-valdesc img {
  float: none !important;
  display: block;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-content img,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-valdesc img {
  float: none !important;
  display: block;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: 0 !important;
}
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-file { text-align: center; }
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-file { text-align: right; }
@media (max-width: 767px) {
  .ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-measure,
  .ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-measure { flex-basis: min(100%, var(--ndx-measure-width, 210px)); }
}
/* Variables de tamaño disponibles también con alineación Izquierda. */
.ndxcfg .ndxcfg-item .ndxcfg-input-wrap input { max-width: min(100%, var(--ndx-input-width, 140px)); }
.ndxcfg .ndxcfg-item.ndxcfg-type-measures .ndxcfg-measure { flex-basis: var(--ndx-measure-width, 150px); }
.ndxcfg .ndxcfg-item.is-measure-like .ndxcfg-measure { flex-basis: var(--ndx-measure-width, 100%); }
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-measure,
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-measure { flex-basis: var(--ndx-measure-width, 210px); }


/* v0.5.2 · contenido importado de MegaProduct: centrado de imágenes en columnas Bootstrap.
   Un .row > .col-7 con float:left no debe anular la alineación del grupo. */
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-content .row > [class*="col-"],
.ndxcfg .ndxcfg-item.ndx-al-center .ndxcfg-valdesc .row > [class*="col-"] {
  float:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-content .row > [class*="col-"],
.ndxcfg .ndxcfg-item.ndx-al-right .ndxcfg-valdesc .row > [class*="col-"] {
  float:none !important;
  margin-left:auto !important;
  margin-right:0 !important;
}
/* Si TinyMCE fijó explícitamente el margen auto, respetarlo aunque el grupo
   no esté centrado. Esto no modifica el contenido HTML almacenado. */
.ndxcfg .ndxcfg-content img[style*="margin-left: auto"],
.ndxcfg .ndxcfg-valdesc img[style*="margin-left: auto"] {
  float:none !important;
  display:block;
  margin-left:auto !important;
}
/* Las filas Bootstrap incrustadas en texto enriquecido pueden traer márgenes
   negativos que desbordan la ficha. Se limitan SOLO dentro del contenido. */
.ndxcfg .ndxcfg-content .row,
.ndxcfg .ndxcfg-valdesc .row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}


/* Out of stock (0.12.9): add button blocked */
.ndxcfg .ndxcfg-btn.ndxcfg-add:disabled, .ndxcfg .ndxcfg-btn.ndxcfg-add.is-out-of-stock { opacity: .55; cursor: not-allowed; }
