/* ========================================================================
 * FILE: hm-wizard.css
 * REEMPLAZAR COMPLETO (LIMPIO)
 * Objetivo:
 *  - Control +/- sin input visible (span)
 *  - Número SIEMPRE visible, base 0
 *  - Overrides ultra específicos para evitar estilos agresivos del theme
 *
 * Limpieza aplicada:
 *  - Eliminé duplicados de .hm-btn (estaba definido 3 veces).
 *  - Eliminé duplicados de .hm-mode-landing__actions (estaba 2 veces).
 *  - Eliminé bloques repetidos/contradictorios de Layout 0 (varios sets de presets y overrides).
 *  - Dejé UN SOLO mecanismo para Layout 0:
 *      - JS setea vars inline: --hm-l0-card-w, --hm-l0-card-h, --hm-l0-img-h, --hm-l0-img-fit
 *      - CSS SOLO consume esas vars en .hm-layout0 .hm-opt y .hm-layout0 .hm-opt__img
 * ====================================================================== */

/* Variables de marca (no tocar el bordó: es el MISMO de siempre) */
.hm-wizard {
  width: 100%;
  --hm-bordo: #6d0e17;
  --hm-negro: #000000;
  --hm-blanco: #ffffff;
  --hm-amarillo: #fdd100;
}

.hm-wizard__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .hm-wizard__grid { grid-template-columns: 1fr; }
}

.hm-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 14px;
}

.hm-card--flat { padding: 12px; }

.hm-card__title { font-weight: 900; font-size: 16px; margin-bottom: 10px; }
.hm-muted { color: #666; white-space: pre-line; }

.hm-step__title { font-weight: 900; font-size: 20px; }
.hm-step__sub { color: #666; margin-top: 6px; font-weight: 700; font-size: 14px; }
.hm-step__body { margin-top: 12px; }
.hm-step__nav { margin-top: 14px; display: flex; gap: 10px; justify-content: space-between; }

/* Botones (UN SOLO bloque) */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #111;
}

.hm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.hm-btn--primary {
  border-color: #6d0e17;
  background: #6d0e17;
  color: #fff;
}

.hm-btn--ghost { background: #fafafa; }

.hm-btn--underline-red {
  background: transparent;
  border: none;
  padding: 0;
  color: #b40000;
  text-decoration: underline;
  font-weight: 800;
}

.hm-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Steps: botón Siguiente acompaña el filete (color + texto legible). */
.hm-step__nav [data-nav="next"]{
  border-color: var(--hm-next-accent, var(--hm-select-accent, var(--hm-accent, #6d0e17)));
  background: var(--hm-next-accent, var(--hm-select-accent, var(--hm-accent, #6d0e17)));
  color: var(--hm-next-text, #ffffff);
  opacity: 1;
  text-shadow:
    0  1px 0 var(--hm-next-text-stroke, #000),
    0 -1px 0 var(--hm-next-text-stroke, #000),
    1px 0  0 var(--hm-next-text-stroke, #000),
   -1px 0  0 var(--hm-next-text-stroke, #000);
}

.hm-step__nav [data-nav="next"][disabled]{
  border-color: var(--hm-next-accent, var(--hm-select-accent, var(--hm-accent, #6d0e17)));
  background: var(--hm-next-accent, var(--hm-select-accent, var(--hm-accent, #6d0e17)));
  color: var(--hm-next-text, #ffffff);
  opacity: 0.35;
  text-shadow:
    0  1px 0 var(--hm-next-text-stroke, #000),
    0 -1px 0 var(--hm-next-text-stroke, #000),
    1px 0  0 var(--hm-next-text-stroke, #000),
   -1px 0  0 var(--hm-next-text-stroke, #000);
}

/* Grid opciones */
.hm-grid-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .hm-grid-opts { grid-template-columns: 1fr; }
}

/* Card opción base (Steps + Layout 0) */
.hm-opt {
  display: flex;
  gap: var(--hm-card-gap, 12px);
  width: 100%;
  text-align: left;
  border: 2px solid #eaeaea;
  border-radius: var(--hm-card-radius, 12px);
  padding: var(--hm-card-pad, 12px);
  background: #fff;
  cursor: pointer;
}

.hm-opt.is-selected{
  border-style: solid;
  border-width: 2px;
  border-color: var(--hm-select-accent, var(--hm-accent, #6d0e17)) !important;
  box-shadow: 0 0 0 2px var(--hm-select-accent, var(--hm-accent, #6d0e17));
}

/* Steps: si el filete global está OFF, no resaltamos la selección */
.hm-steps-select-border-off .hm-opt.is-selected{
  border-width: 1px !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: none;
}

.hm-opt__img { 
  width: var(--hm-img-size, 72px); 
  height: var(--hm-img-size, 72px); 
  border-radius: 10px; 
  object-fit: cover; 
  border: 1px solid #eee; 
}
.hm-opt__title { font-weight: 900; }
.hm-opt__sub { margin-top: 4px; color: #666; white-space: pre-line; }

/* Quote panel */
.hm-quote__panel { font-size: 14px; }

.hm-quote__row {
  display: grid;
  grid-template-columns: 34px 46px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.hm-quote__qty {
  font-weight: 900;
  font-size: 14px;
  color: #444;
  text-align: right;
}

.hm-quote__thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid #eee; }
.hm-quote__name { font-weight: 900; }
.hm-quote__sub { color: #666; font-size: 12px; margin-top: 4px; line-height: 1.3; display: grid; gap: 2px; }
.hm-quote__mini { color: #777; font-size: 11px; line-height: 1.25; }

.hm-quote__price { text-align: right; font-weight: 900; display: grid; gap: 2px; }
.hm-link { background: transparent; border: none; color: #b40000; cursor: pointer; text-decoration: underline; font-weight: 800; }

.hm-quote__totals { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; display: grid; gap: 8px; }
.hm-quote__tot { display: flex; justify-content: space-between; gap: 10px; }
.hm-quote__actions { margin-top: 12px; display: grid; gap: 8px; }

.hm-pill {
  display: inline-block;
  font-weight: 900;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2b9bd;
  color: #6d0e17;
  background: rgba(109,14,23,0.06);
}

/* Modal */
.hm-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.hm-modal.is-open { display: block; }
.hm-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hm-modal__dialog {
  position: relative;
  max-width: 860px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
}
.hm-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #eee; }
.hm-modal__title { font-weight: 900; font-size: 16px; }
.hm-modal__close { border: none; background: transparent; font-size: 20px; cursor: pointer; padding: 4px 10px; }
.hm-modal__body { padding: 14px; max-height: 75vh; overflow: auto; }

.hm-fin__block { border: 1px solid #eee; border-radius: 12px; padding: 12px; }
.hm-fin__title { font-weight: 900; margin-bottom: 10px; }
.hm-fin__list { display: grid; gap: 10px; }
.hm-fin__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid #eee; border-radius: 12px; }
.hm-fin__name { font-weight: 900; }
.hm-fin__desc { color: #666; font-size: 12px; margin-top: 4px; }
.hm-fin__right { text-align: right; display: grid; gap: 4px; justify-items: end; }

.hm-share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 540px) { .hm-share-grid { grid-template-columns: 1fr; } }

.hm-check { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 10px 0; }
.hm-check input[type="checkbox"] { margin-top: 2px; }
.hm-check span { display: block; width: 100%; }
.hm-check__sub { display: block; font-size: 12px; color: #666; margin-top: 4px; }

/* Extras layout */
.hm-extras { display: grid; gap: 12px; }

/* Sprint 2: Extras en pantalla final (UI) */
.hm-extras__top { margin-bottom: 6px; }
.hm-extras__topTitle { font-weight: 900; font-size: 16px; }
.hm-extras__topSub { color: #666; font-size: 12px; margin-top: 4px; }

.hm-extras__section { border: 1px solid #eee; border-radius: 12px; padding: 12px; }
.hm-extras__head { margin-bottom: 10px; }
.hm-extras__h { font-weight: 900; }
.hm-extras__s { color: #666; font-size: 12px; margin-top: 4px; }
.hm-extras__list { display: grid; gap: 10px; }

.hm-extras__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
}

.hm-extras__row--qty { grid-template-columns: 1fr auto; }

.hm-extras__chk { width: 16px; height: 16px; margin: 0; }
.hm-extras__txt { display: grid; gap: 4px; }
.hm-extras__title { font-weight: 900; }
.hm-extras__sub { color: #666; font-size: 12px; }

/* ===== CONTROL +/- (SPAN) ===== */
.hm-qty {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  max-width: 92px;
}

.hm-qty__btn {
  width: 22px;
  height: 24px;
  border: none;
  background: #fafafa;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  color: #111;
  line-height: 1;
}

.hm-qty__btn:active { transform: scale(0.98); }

.hm-qty__val {
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  line-height: 24px;
  background: #fff !important;
  user-select: none;
}

/* ===== Overrides ultra específicos (theme proof) ===== */
#hm-wizard-root .hm-qty .hm-qty__val,
#hm-wizard-root .hm-qty .hm-qty__val:focus,
#hm-wizard-root .hm-qty .hm-qty__val:active,
#hm-wizard-wrap #hm-wizard-root .hm-qty__val {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
  background-color: #fff !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Email apps grid */
.hm-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 540px) { .hm-app-grid { grid-template-columns: 1fr; } }

.hm-app-btn {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  font-weight: 800;
}

.hm-app-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #eee;
}

.hm-app-ico svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.9; }
.hm-app-name { font-size: 14px; }
.hm-modal-actions { margin-top: 12px; display: flex; justify-content: flex-end; }

/* Landing modo (UN SOLO bloque) */
.hm-mode-landing__actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 12px;
}

.hm-btn--new{ color: #b00020; text-decoration: underline; }
.hm-btn--choose{ color: #111; text-decoration: none; }

/* Entrega (monto) en presupuesto */
.hm-quote__deposit input{
  width:140px;
  max-width:100%;
  padding:6px 8px;
  border:1px solid #d0d0d0;
  border-radius:8px;
}

/* =========================
   Botones finales (presupuesto) - estilos data-driven
   ========================= */
.hm-btn[data-hm-text="bordo"] { color: var(--hm-bordo) !important; }
.hm-btn[data-hm-text="negro"] { color: var(--hm-negro) !important; }
.hm-btn[data-hm-text="blanco"] { color: var(--hm-blanco) !important; }
.hm-btn[data-hm-text="amarillo"] { color: var(--hm-amarillo) !important; }

.hm-btn[data-hm-text="blanco"]{
  text-shadow: 0 1px 0 var(--hm-negro), 0 -1px 0 var(--hm-negro), 1px 0 0 var(--hm-negro), -1px 0 0 var(--hm-negro);
}
.hm-btn[data-hm-text="negro"]{
  text-shadow: 0 1px 0 var(--hm-blanco), 0 -1px 0 var(--hm-blanco), 1px 0 0 var(--hm-blanco), -1px 0 0 var(--hm-blanco);
}

.hm-btn[data-hm-bg="bordo"] { background: var(--hm-bordo) !important; }
.hm-btn[data-hm-bg="negro"] { background: var(--hm-negro) !important; }
.hm-btn[data-hm-bg="blanco"] { background: var(--hm-blanco) !important; }
.hm-btn[data-hm-bg="transparent"] { background: transparent !important; }
.hm-btn[data-hm-bg="amarillo"] { background: var(--hm-amarillo) !important; }

.hm-btn[data-hm-border="bordo"] { border-color: var(--hm-bordo) !important; border-style: solid !important; border-width: 1px !important; }
.hm-btn[data-hm-border="negro"] { border-color: var(--hm-negro) !important; border-style: solid !important; border-width: 1px !important; }
.hm-btn[data-hm-border="blanco"] { border-color: var(--hm-blanco) !important; border-style: solid !important; border-width: 1px !important; }
.hm-btn[data-hm-border="none"] { border-color: transparent !important; border-style: solid !important; border-width: 0px !important; }

.hm-btn[data-hm-underline="1"] { text-decoration: underline !important; }

/* ------------------- Apariencia (Steps) ------------------- */
#hm-wizard-root .hm-opt{ --hm-accent: #6b0f1a; } /* bordo default */
#hm-wizard-root .hm-color-bordo{ --hm-accent: #6b0f1a; }
#hm-wizard-root .hm-color-negro{ --hm-accent: #111; }
#hm-wizard-root .hm-color-rojo{ --hm-accent: #c30000; }
#hm-wizard-root .hm-color-amarillo{ --hm-accent: #fdd100; }

#hm-wizard-root .hm-opt.hm-has-shadow{ box-shadow: 0 10px 22px rgba(0,0,0,.10) !important; }
#hm-wizard-root .hm-opt.hm-has-border{ border: 1px solid rgba(0,0,0,.12) !important; }
#hm-wizard-root .hm-opt.is-selected.hm-has-border{
  border: 2px solid var(--hm-select-accent, var(--hm-accent, #6d0e17)) !important;
}

@media (prefers-reduced-motion: no-preference){
  #hm-wizard-root .hm-opt{ transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  #hm-wizard-root .hm-opt.hm-hover-lift:hover{ transform: translateY(-3px); }
  #hm-wizard-root .hm-opt.hm-hover-zoom:hover{ transform: scale(1.02); }
  #hm-wizard-root .hm-opt.hm-hover-zoom_lift:hover{ transform: translateY(-3px) scale(1.02); }

  #hm-wizard-root .hm-opt.hm-tap-lift:active{ transform: translateY(-2px); }
  #hm-wizard-root .hm-opt.hm-tap-zoom:active{ transform: scale(1.01); }
  #hm-wizard-root .hm-opt.hm-tap-zoom_lift:active{ transform: translateY(-2px) scale(1.01); }
}

/* Checkmark base (si se usa en Steps) */
#hm-wizard-root .hm-opt{ position: relative; }
#hm-wizard-root .hm-opt__check{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--hm-accent);
  color: #fff;
}
#hm-wizard-root .hm-opt.hm-has-checkmark.is-selected .hm-opt__check{ display: inline-flex; }

/* =============================================================================
   STEPS - TAMAÑOS CONFIGURABLES (AGREGADO)
   Sistema de 2 controles independientes: card + imagen
   ============================================================================= */

/* Steps: tamaño global de card completa (imagen acompaña) */
#hm-wizard-root.hm-steps-card-sm .hm-opt{ --hm-card-pad: 12px; --hm-img-size: 64px; }
#hm-wizard-root.hm-steps-card-md .hm-opt{ --hm-card-pad: 14px; --hm-img-size: 90px; }
#hm-wizard-root.hm-steps-card-lg .hm-opt{ --hm-card-pad: 18px; --hm-img-size: 120px; }

/* Imagen interna si existe */
#hm-wizard-root .hm-opt .hm-opt__img,
#hm-wizard-root .hm-opt img{
  max-width: 100%;
}
#hm-wizard-root .hm-opt .hm-opt__img{
  width: var(--hm-img-size);
  height: var(--hm-img-size);
  object-fit: contain;
}

/* Sizes presets (Steps) - controles adicionales para card y imagen */
#hm-wizard-root.hm-steps-card-sm{ --hm-card-pad: 10px; --hm-card-gap: 10px; --hm-card-radius: 12px; }
#hm-wizard-root.hm-steps-card-md{ --hm-card-pad: 14px; --hm-card-gap: 12px; --hm-card-radius: 14px; }
#hm-wizard-root.hm-steps-card-lg{ --hm-card-pad: 18px; --hm-card-gap: 14px; --hm-card-radius: 16px; }

#hm-wizard-root.hm-steps-img-sm{ --hm-opt-img: 56px; --hm-opt-img-fit: cover; }
#hm-wizard-root.hm-steps-img-md{ --hm-opt-img: 72px; --hm-opt-img-fit: contain; }
#hm-wizard-root.hm-steps-img-lg{ --hm-opt-img: 96px; --hm-opt-img-fit: cover; }

/* =========================
   LAYOUT 0 (ÚNICO BLOQUE)
   - Imagen sin filetes
   - Tamaños consumen SOLO vars seteadas por JS
   ========================= */
.hm-layout0 .hm-grid-opts{
  gap: 16px;
  justify-items: center;
}

.hm-layout0 .hm-opt{
  width: 100%;
  max-width: var(--hm-l0-card-w, 9999px);
  min-height: var(--hm-l0-card-h, 230px);
  border-radius: 14px;
  overflow: hidden;
  display: block;        /* Layout 0: imagen arriba + meta abajo */
  padding: 0 !important; /* quita filetes por padding */
}

.hm-layout0 .hm-opt__img{
  width: 100% !important;
  max-width: none !important;
  height: var(--hm-l0-img-h, 125px) !important;
  display: block;
  margin: 0 !important;
  object-fit: var(--hm-l0-img-fit, contain) !important;
  object-position: center;
  background: transparent !important;
  border: 0 !important;        /* quita filete */
  border-radius: 0 !important; /* al ras; redondeo por overflow hidden */
  box-shadow: none !important;
}

.hm-layout0 .hm-opt__meta{
  padding: 12px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 56px;
}

.hm-layout0 .hm-opt__title{
  font-size: 22px;
  letter-spacing: .08em;
  font-weight: 800;
}

/* Layout 0: no mostrar checkmark */
.hm-layout0 .hm-opt__check{ display: none !important; }


/* Presupuesto final: alineación de botones */
.hm-quote__actions.hm-actions--left{justify-content:flex-start;}
.hm-quote__actions.hm-actions--center{justify-content:center;}
.hm-quote__actions.hm-actions--right{justify-content:flex-end;}


/* =========================
 * INFO MODAL (overlight)
 * ========================= */
.hm-info-modal-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.55);
  z-index:999999;
}
.hm-info-modal{
  position:relative;
  width:min(720px, 92vw);
  max-height:80vh;
  overflow:auto;
  background:#fff;
  border-radius:16px;
  padding:18px 18px 16px;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.hm-info-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.hm-info-modal__title{
  font-weight:700;
  font-size:20px;
  margin:0 44px 6px 0;
}
.hm-info-modal__subtitle{
  font-weight:700;
  margin-bottom:12px;
}
.hm-info-modal__body{
  line-height:1.45;
}
.hm-info-modal__title[data-hm-color="bordo"]{ color:#7b0f1b; }
.hm-info-modal__title[data-hm-color="negro"]{ color:#111; }
.hm-info-modal__title[data-hm-color="blanco"]{ color:#fff; background:#111; padding:2px 6px; border-radius:6px; display:inline-block; }
.hm-info-modal__title[data-hm-color="amarillo"]{ color:#111; background:#f6c343; padding:2px 6px; border-radius:6px; display:inline-block; }

.hm-info-text{ white-space:normal; }

.hm-info-modal-btnwrap{
  margin-top:10px;
  display:flex;
}
.hm-info-modal-btnwrap--left{ justify-content:flex-start; }
.hm-info-modal-btnwrap--center{ justify-content:center; }
.hm-info-modal-btnwrap--right{ justify-content:flex-end; }

.hm-info-modal-btnwrap--full .hm-btn{ width:100%; }
.hm-info-modal-btnwrap--md .hm-btn{ min-width:220px; }
.hm-info-modal-btnwrap--sm .hm-btn{ min-width:160px; }

html.hm-modal-open, body.hm-modal-open{
  overflow:hidden !important;
}

/* =====================================================
   multi_toggle: checkbox badge en card
   ===================================================== */
.hm-opt--multi_toggle {
  position: relative;
}
.hm-opt__chk-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  transition: background 0.15s, color 0.15s;
  pointer-events: none;
  flex-shrink: 0;
}
.hm-opt__chk-badge svg { display: none; }
.hm-opt__chk-badge.is-checked {
  background: var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  color: #fff;
}
.hm-opt__chk-badge.is-checked svg { display: block; }

/* Steps con filete OFF: el badge usa color neutro */
.hm-steps-select-border-off .hm-opt__chk-badge {
  border-color: rgba(0,0,0,.25);
  color: rgba(0,0,0,.25);
}
.hm-steps-select-border-off .hm-opt__chk-badge.is-checked {
  background: #555;
  border-color: #555;
  color: #fff;
}

/* =====================================================
   qty_items: control +/- dentro de la card (siempre visible)
   ===================================================== */
.hm-qty--card {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
  pointer-events: all;
}
.hm-qty--card .hm-qty__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  background: #fff;
  color: var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.hm-qty--card .hm-qty__btn:hover {
  background: var(--hm-select-accent, var(--hm-accent, #6b0f1a));
  color: #fff;
}
.hm-qty--card .hm-qty__val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* =====================================================
   Fix #5: filete de selección — máxima especificidad
   para sobrevivir cualquier override del tema WP
   ===================================================== */
#hm-wizard-root .hm-opt.is-selected,
#hm-wizard-root .hm-opt.is-selected.hm-has-border,
#hm-wizard-root .hm-opt.is-selected.hm-has-shadow {
  border-style: solid !important;
  border-width: 2px !important;
  border-color: var(--hm-select-accent, var(--hm-accent, #6b0f1a)) !important;
  box-shadow: 0 0 0 3px var(--hm-select-accent, var(--hm-accent, #6b0f1a)) !important;
  outline: none !important;
}
/* Cuando filete global está OFF: revertir a neutro */
#hm-wizard-root.hm-steps-select-border-off .hm-opt.is-selected,
#hm-wizard-root.hm-steps-select-border-off .hm-opt.is-selected.hm-has-border {
  border-width: 1px !important;
  border-color: rgba(0,0,0,.12) !important;
  box-shadow: none !important;
}


/* Final renderer v2 */
.hm-final__grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:18px;
  align-items:start;
}
@media (max-width:980px){
  .hm-final__grid{grid-template-columns:1fr;}
}
.hm-final-lines{display:grid;gap:10px;margin-top:14px;}
.hm-final-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid #eee;
}
.hm-final-line__name{font-weight:900;}
.hm-final-line__meta{color:#666;font-size:12px;margin-top:2px;}
.hm-final-line__price{font-weight:900;white-space:nowrap;}
.hm-final-totals{display:grid;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #eee;}
.hm-final-total{display:flex;justify-content:space-between;gap:10px;}
.hm-final-total--main strong{font-size:20px;color:var(--hm-bordo);}
.hm-final__actions{display:grid;gap:14px;}
.hm-final-buttons{display:flex;flex-wrap:wrap;gap:10px;}
.hm-final-block{display:grid;gap:8px;}
.hm-final-block__label{font-weight:900;}
.hm-final-coupon{display:flex;gap:8px;flex-wrap:wrap;}
.hm-final-coupon input,.hm-final-deposit,.hm-baseqty input{
  width:100%;
  border:1px solid #ddd;
  border-radius:999px;
  min-height:40px;
  padding:0 14px;
}
.hm-baseqty{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.hm-final-info-btnwrap{display:flex;}
.hm-final-info-btn{background:var(--hm-bordo);color:#fff;border:1px solid var(--hm-bordo);}
.hm-opt__chk-badge{width:24px;height:24px;border-radius:50%;top:10px;right:10px;}
.hm-opt__chk-badge svg{display:block;opacity:0;}
.hm-opt__chk-badge.is-checked svg{opacity:1;}
.hm-opt--qty_items{align-items:flex-start;}
.hm-opt--qty_items .hm-opt__meta{width:100%;}
.hm-qty--card{justify-content:flex-start;margin-top:12px;}

.hm-card__sub, .hm-stepcard__sub{opacity:.78;}
