/* ══════════════════════════════════════════════════════════════════════════
 * STK-MOBILE-BETA.CSS v1.8.38 — Editor móvil BETA de troqueladas
 * v1.8.38: FIX pantalla "Sube tu diseno": 48px de aire reales sobre el titulo (el margen del titulo se salia
 *          del bloque y quedaba tapado al abrir la pantalla; ahora es relleno del propio bloque).
 *          Tarjeta de resumen ("Vinilo · 8 × 8 cm · 50 uds") igual que las tarjetas: 50px de alto y texto 13px / 500.
 * v1.8.37: bloque gris de la landing: 75px de aire arriba y abajo (antes 70 y 70).
 * v1.8.36: bloque gris de la landing: 70px de aire sobre "Elige el tamano" y 70px debajo de CONTINUAR (antes 40 y 40).
 * v1.8.35: landing movil (aprobado en vivo), SOLO en /pegatinas-personalizadas/ y /pegatinas/pegatinas-troqueladas/:
 *          fondo gris #eef0f3 de borde a borde desde "Elige el tamano" hasta debajo de CONTINUAR, 40px de aire
 *          sobre el titulo, tarjetas de tamano / cantidad / acabado en blanco y sin franja blanca entre el
 *          configurador y la seccion siguiente. Las demas landings (materiales, tattoo, hojas), el cajon y el
 *          editor no cambian. (La v1.8.34 no llego a publicarse.)
 * v1.8.33: tarjeta unica de cantidad: el precio queda centrado entre la cantidad y el descuento
 *          (aprobado en vivo), con cualquier largo de numeros. El cajon no cambia.
 * v1.8.32: maquetacion de la tarjeta unica de cantidad (aprobada en vivo): precio alineado a la izquierda
 *          a 128px, etiqueta mas a la izquierda y flecha mas separada del borde. El cajon no cambia.
 * v1.8.31: precio por pegatina (junto al importe) con el mismo texto que las tarjetas: 13px / 500 / negro.
 * v1.8.30: FIX fila de tamanos: la primera tarjeta alineada a la izquierda con el titulo y con las
 *          tarjetas de cantidad y acabado (stk-mobile.css anulaba el padding de la fila).
 * v1.8.29: FIX fila de tamanos: el desplazamiento queda dentro de la fila (antes se movia toda la pagina,
 *          porque stk-mobile.css fuerza overflow:visible !important en #stk-mobile .stk-sizes).
 * v1.8.28: bloque final LANDING MOVIL (template beta v1.7.5). El editor no cambia.
 *
 * Solo se encola con ?stkbeta=1 (junto a stk-mobile.css, que sigue
 * vistiendo la VISTA 1 de configuración, los drawers y el overlay).
 * Este archivo viste únicamente el editor beta (.stkmb-editor) y el
 * drawer de Material nuevo. Producción no lo carga nunca.
 *
 * Diseño: preview grande arriba, panel PLANO (sin esquinas, sin asa),
 * formas visibles con check verde, filas Material/Acabado/Tamaño/Cantidad
 * a drawers, barra de compra fija con el precio dentro del botón.
 * ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Utilidades ── */
  .stkmb-editor .stkmb-hidden { display: none !important; }
  .stkmb-editor .stkmb-collapsed {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  /* ── Estructura del editor ── */
  .stkmb-editor .stkm-editor-body {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ── Preview protagonista ── */
  .stkmb-editor .stkmb-stage {
    position: relative;
    width: 100% !important;
    height: calc(100vh - 132px) !important;
    height: calc(100dvh - 132px) !important;
    min-height: 300px;
    margin: 0 !important;
    padding: 24px !important;
    background: #EDEDF2 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .stkmb-editor .stkmb-stage #stkm-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* ── Panel plano ── */
  .stkmb-panel {
    background: #fff;
    padding: 20px 16px 140px; /* hueco para la barra fija */
    border: 0;
    border-radius: 0;
  }

  .stkmb-title {
    font-size: 14px;
    font-weight: 700;
    color: #141416;
    margin: 0 0 10px;
  }

  /* ── Tarjetas de forma ── */
  /* ── v1.8.0 FORMAS: banda gris continua; seleccionada = card oscura
     con icono/texto blancos; cinta amarilla TOP fija en Contorneado.
     Texto: misma familia/tamano/colores que Acabado (12px regular). ── */
  .stkmb-shapes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 0;
    background: #F4F4F6;
    border-radius: 16px;
  }
  .stkmb-shape-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* v1.8.7 */
    padding: 16px 4px 12px;
    background: transparent;
    border: 0;
    border-radius: 16px;
    overflow: hidden; /* recorta la cinta TOP en la esquina */
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .stkmb-shape-card .stkmb-shape-icon { width: 22px; height: 22px; color: #999; }
  /* v1.8.2: el dibujo del contorneado llena mas el lienzo; mas estrecho
     para que visualmente quede igual que circulo/cuadrado/redondeada */
  .stkmb-shape-card[data-shape="contour-cut"] .stkmb-shape-icon { width: 18px; }
  .stkmb-shape-card .stkmb-shape-label { font-size: 12px; font-weight: 500; color: #2A2A2C; } /* v1.8.2: igual que opciones de Acabado */
  /* Sin estado hover/pulsacion: en tactil el :hover se queda pegado tras el toque */
  .stkmb-shape-card:hover,
  .stkmb-shape-card:focus,
  .stkmb-shape-card:focus-visible,
  .stkmb-shape-card:active {
    background: transparent;
    outline: none;
  }
  .stkmb-shape-card.active,
  .stkmb-shape-card.active:hover,
  .stkmb-shape-card.active:focus,
  .stkmb-shape-card.active:focus-visible,
  .stkmb-shape-card.active:active {
    background: #2A2A2C;
  }
  .stkmb-shape-card.active .stkmb-shape-icon,
  .stkmb-shape-card.active .stkmb-shape-label { color: #fff; font-weight: 700; }
  .stkmb-shape-check { display: none !important; }
  /* Cinta TOP: siempre visible en Contorneado */
  .stkmb-shape-card[data-shape="contour-cut"]::before {
    content: 'TOP';
    position: absolute;
    top: 6px;
    left: -20px;
    width: 68px;
    transform: rotate(-45deg);
    background: #F2C200;
    color: #141416;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 2px 0;
    pointer-events: none;
  }

  /* ── Filas de opciones (Material / Acabado / Tamaño / Cantidad) ── */
  .stkmb-rows {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .stkmb-rows .stkmb-row { grid-column: span 3; }
  .stkmb-rows .stkmb-row--third { grid-column: span 2; padding: 12px 10px !important; gap: 6px; }
  .stkmb-row--third .stkm-option-value { font-size: 12px; } /* v1.8.15: minimo 12px */
  /* neutralizar el estilo de .stkm-option-btn de stk-mobile.css */
  .stkmb-rows .stkmb-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #F4F4F6 !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 12px 12px !important;
    margin: 0 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .stkmb-row-txt { flex: 1; min-width: 0; }
  .stkmb-row .stkm-option-label {
    font-size: 13px;
    font-weight: 700;
    color: #141416;
    line-height: 1.2;
  }
  .stkmb-row .stkm-option-value {
    font-size: 12px;
    color: #6b6b70;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stkmb-row-arrow { flex: 0 0 auto; width: 16px; height: 16px; color: #141416; stroke-width: 2; }
  .stkmb-qty-ctrl { flex: 0 0 auto; }
  .stkmb-qty-btn {
    width: 28px; height: 28px;
    border: 0; border-radius: 50%;
    background: #fff;
    font: inherit; font-weight: 800; color: #141416;
    cursor: pointer;
    pointer-events: none; /* la fila entera abre el drawer */
  }

  /* ── Cambiar imagen ── */
  .stkmb-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 13px;
    background: #F4F4F6;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #141416;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .stkmb-change svg { width: 16px; height: 16px; stroke-width: 1.6; }
  .stkmb-change br { display: none; }

  /* ── Barra de compra fija ── */
  body.stkm-editor-open .stkmb-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    gap: 8px; /* v1.8.15: cabe en una linea a 390px */
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .stkmb-note-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* v1.8.18: solo icono */
    width: 56px;
    padding: 0;
    background: #EFEFF1;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 12px; /* v1.8.5 */
    font-weight: 700;
    color: #141416;
    cursor: pointer;
  }
  .stkmb-note-btn svg { width: 18px; height: 18px; stroke-width: 2; } /* v1.8.21: icono de libreta a 18px (eleccion final de Jean) */
  .stkmb-note-btn.has-message { background: #E3F2E9; color: #18A14A; }
  .stkmb-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: #18A14A;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 12px; /* v1.8.5 */
    font-weight: 800;
    color: #fff;
    cursor: pointer;
  }
  .stkmb-cart-btn:disabled { opacity: 0.55; }
  /* v1.8.6: hover/pulsacion del boton de carrito en el amarillo del badge,
     con texto, precio, separador e icono en negro */
  .stkmb-cart-btn:hover,
  .stkmb-cart-btn:active {
    background: #F2C200;
    color: #141416;
  }
  .stkmb-cart-btn:hover .stkmb-cart-price, .stkmb-cart-btn:hover #stkm-total,
  .stkmb-cart-btn:active .stkmb-cart-price, .stkmb-cart-btn:active #stkm-total {
    color: #141416;
  }
  .stkmb-cart-btn:hover .stkmb-cart-sep,
  .stkmb-cart-btn:active .stkmb-cart-sep {
    background: rgba(0,0,0,0.3);
  }
  .stkmb-cart-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.4); }
  /* v1.8.5: precio destacado a 16px e icono del carrito a 16px */
  .stkmb-cart-btn .stkmb-cart-price, .stkmb-cart-btn #stkm-total { font-size: 16px; }
  /* v1.8.15: etiqueta en una linea y boton mas compacto para 390px */
  .stkmb-cart-label { white-space: nowrap; }
  .stkmb-cart-btn { padding-left: 12px; padding-right: 12px; }
  .stkmb-cart-btn svg { width: 16px; height: 16px; }
  .stkmb-cart-price { font-weight: 800; }

  /* ── Drawer de Material (nuevo) ── */
  .stkmb-mats-content .stk-mats,
  .stkmb-mats-content .stkm-materials {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 8px !important;
    justify-items: start !important; /* alineados a la izquierda con el titulo */
    overflow: visible !important;
    /* fuera la "caja" que .stkm-materials trae del CSS compartido:
       su fondo, borde y relleno interno desalineaban el primer circulo */
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 6px 0 2px !important;
  }
  .stkmb-mats-content .stk-mat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }
  .stkmb-mats-content .stkm-mat-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #dcdce0;
    background: #fff;
  }
  .stkmb-mats-content .stkm-mat-circle img { width: 100%; height: 100%; object-fit: cover; }
  .stkmb-mats-content .stkm-mat-name { font-size: 12px; font-weight: 600; color: #2A2A2C; }
  .stkmb-mats-content .stk-mat-card.active .stkm-mat-circle {
    border: 2.5px solid #141416;
  }
  .stkmb-mats-content .stk-mat-card.active .stkm-mat-name { font-weight: 800; }
  .stkmb-mats-content .stkm-mat-bar { display: none; }

  /* ── Titulos de drawer congruentes con los titulos del panel beta ── */
  .stkmb .stkm-drawer-title {
    font-size: 15px; /* v1.8.16: titulo mayor que subtitulo */
    font-weight: 700;
    padding: 16px 20px 10px;
  }

  /* ── Drawer de Back print ── */
  /* v1.7.9/v1.7.10: aire inferior para que el boton negro AGREGAR no quede
     recortado por el borde/safe-area del movil */
  .stkmb #stkm-drawer-backprint .stkm-drawer-content {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  /* v1.7.10: anclar el drawer al borde inferior real de la pantalla
     (gana a cualquier top/transform inline) y permitir scroll interno:
     asi el boton inferior queda siempre completo dentro del viewport */
  .stkmb #stkm-drawer-backprint.open {
    top: auto !important;
    bottom: 0 !important;
    transform: translateY(0) !important;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .stkmb-bp-lead { font-size: 12px; font-weight: 800; color: #141416; margin: 0 0 6px; } /* v1.8.17: subtitulo a 12px (aprobado en vivo) */
  .stkmb-bp-desc { font-size: 13px; color: #6b6b70; line-height: 1.45; margin: 0 0 12px; }
  .stkmb-bp-btns { display: flex; gap: 10px; margin-top: 4px; }
  .stkmb-bp-btns .stkmb-bp-add { flex: 1; margin: 0; }
  .stkmb-bp-btns .stkmb-bp-remove {
    flex: 1; display: block; margin: 0; padding: 14px;
    background: #F4F4F6; border: 0; border-radius: 12px;
    font: inherit; font-size: 13px; font-weight: 700; color: #d32f2f;
    cursor: pointer;
  }
  .stkmb-bp-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0 0 14px;
    background: #F4F4F6;
    border: 1.5px solid #E2E2E5;
    border-radius: 12px;
    font: inherit;
    font-size: 16px; /* evita zoom iOS */
    color: #141416;
  }
  .stkmb-bp-input:focus { outline: none; border-color: #141416; }
  .stkmb-bp-subtitle { font-size: 13px; font-weight: 700; color: #141416; margin: 0 0 6px; }
  /* v1.8.9: frases del drawer de Back print con la misma fuente y tamano
     que el parrafo descriptivo de arriba (13px / 400) */
  #stkm-drawer-backprint .stkm-drawer-item-label {
    font-size: 13px;
    font-weight: 400;
  }
  .stkmb-bp-remove {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
    cursor: pointer;
  }

  /* ── Drawer de Nota: mismo patron que Back print (que funciona bien).
     El reposicionador de teclado de stk-mobile.js escribe top/transform
     inline en cada focus; estas reglas !important ganan a esos estilos
     inline y lo dejan anclado abajo, quieto, como los demas drawers ── */
  .stkmb #stkm-drawer-message.open {
    top: auto !important;
    bottom: 0 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
  }

  /* ══ TABS v1.4.0 ══ */
  .stkmb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stkmb-editor .stkmb-stage img.stkmb-logo {
    position: absolute !important;
    top: 25px !important; left: 16px !important; /* v1.8.8: logo centrado con el chip de la derecha */
    height: 18px !important; width: auto !important; max-width: 45% !important;
    margin: 0 !important; z-index: 26; cursor: pointer;
    object-fit: contain;
  }
  /* v1.8.12: subir foto como card en la barra, junto a Nota (aprobado en vivo) */
  .stkmb-change-chip {
    position: relative;
    flex: 0 0 auto; align-self: stretch;
    display: flex; align-items: center; justify-content: center;
    width: 56px; min-height: 56px; border-radius: 14px;
    background: #EFEFF1; color: #141416;
    cursor: pointer;
  }
  /* v1.8.15: fuente del sistema en la UI del editor movil (SF en iPhone,
     Roboto en Android) para texto pequeno nitido; Inter queda en la marca */
  #stk-mobile, #stk-mobile button, #stk-mobile input, #stk-mobile textarea,
  .stkm-drawer, .stkmb-bar, .stkmb-sheet {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  /* v1.8.14: chip de color de vinilo oculto por ahora (decision de Jean;
     el JS compartido lo crea con estilos inline, este !important lo tapa) */
  #stkm-color-icon { display: none !important; }
  /* v1.8.13: con el editor abierto el fondo no debe poder rodar (el body
     quedaba con overflow-y auto y al arrastrar asomaba lo de detras) */
  body.stkm-editor-open { overflow: hidden !important; }
  /* v1.8.23: HORMIGAS — linea de corte discontinua animada sobre la
     pegatina (tecnica de hojas individuales; el overlay #stk-ants lo
     crea el modulo del JS beta v1.6.13) */
  #stk-ants { position: absolute; pointer-events: none; z-index: 6; will-change: transform; } /* v1.8.26: capa propia, no se repinta con la imagen de debajo */
  #stk-ants path { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
  #stk-ants .a { stroke: #ffffff; }
  #stk-ants .b { stroke: #141416; stroke-dasharray: 4 4; animation: stkb-ants 0.7s linear infinite; }
  /* v1.8.25: capa de gesto (gestos v1.5.0, patron hojas): el diseno se
     mueve con transform CSS recortado a la forma mientras dura el gesto */
  .stkb-gesto-capa { position: absolute; overflow: hidden; pointer-events: none; z-index: 5; }
  .stkb-gesto-capa canvas { position: absolute; will-change: transform; }
  /* v1.8.27: base del gesto como capa encima del preview (el preview no se
     toca durante el gesto: sin destellos y el pellizco sigue vivo) */
  .stkb-gesto-base { position: absolute; pointer-events: none; z-index: 4; }

  /* v1.8.24: animacion pausada mientras el usuario manipula (gestos) */
  #stk-ants.pausado .b { animation-play-state: paused; }

  /* v1.8.12: chip de WhatsApp en la esquina derecha */
  .stkmb-wa-chip {
    position: absolute; top: 14px; right: 14px; z-index: 26; /* v1.8.12: a la esquina */
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #25D366; color: #fff; /* v1.8.11: verde WhatsApp aprobado */
    box-shadow: 0 2px 8px rgba(0,0,0,0.18); cursor: pointer;
  }
  .stkmb-sheet {
    position: fixed; left: 0; right: 0;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 50; display: flex; flex-direction: column;
  }
  .stkmb-sheet .stkmb-tabs {
    position: relative; height: 48px; flex: 0 0 auto;
    display: flex; align-items: stretch; gap: 0;
    background: transparent; padding: 0; box-sizing: border-box;
  }
  /* Banda unica continua donde reposan las pestanas inactivas */
  .stkmb-sheet .stkmb-tabs::before {
    content: ''; position: absolute; left: 0; right: 0;
    top: 10px; bottom: 0;
    background: #E1E1E5; border-radius: 16px 16px 0 0; /* v1.8.1 aprobado */
  }
  .stkmb-tab {
    flex: 1; position: relative; z-index: 1; border: 0;
    background: transparent; font: inherit; font-size: 13px; /* v1.8.3: un pelo mas grande */
    font-weight: 400; color: #141416; cursor: pointer; /* v1.8.1: sin bold, negro */
    margin: 0; padding-top: 21px; /* v1.8.4: titulos centrados en la banda */
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .stkmb-tab:hover, .stkmb-tab:focus, .stkmb-tab:active { background: transparent; outline: none; color: #141416; }
  .stkmb-tab.active {
    background: #fff; color: #141416; font-weight: 700;
    border-radius: 16px 16px 0 0;
    /* mismo padding-top que las inactivas: titulos en la misma linea */
    box-shadow: 0 -6px 14px rgba(0,0,0,0.08);
  }
  .stkmb-tab.active:hover, .stkmb-tab.active:focus, .stkmb-tab.active:active { background: #fff; color: #141416; }
  /* Faldones concavos: la base de la activa se funde con la banda */
  .stkmb-tab.active::before,
  .stkmb-tab.active::after {
    content: ''; position: absolute; bottom: 0; width: 14px; height: 14px;
  }
  .stkmb-tab.active::before {
    left: -14px;
    background: radial-gradient(circle 14px at 0 0, transparent 13.5px, #fff 14px);
  }
  .stkmb-tab.active::after {
    right: -14px;
    background: radial-gradient(circle 14px at 100% 0, transparent 13.5px, #fff 14px);
  }
  /* en los extremos de la tira no hay banda al lado: sin faldon */
  .stkmb-tab.active:first-child::before { display: none; }
  .stkmb-tab.active:last-child::after { display: none; }

  .stkmb-tabpanel {
    max-height: 40vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff;
    padding: 16px 16px 14px; display: none;
  }
  .stkmb-tabpanel.open { display: block; }
  .stkmb-sub { font-size: 13px; font-weight: 700; color: #141416; margin: 0 0 8px; }
  /* estado del carrito sobre la tira de tabs */
  body.stkm-editor-open #stkm-editor-cart-status {
    position: fixed; left: 0; right: 0;
    bottom: calc(130px + env(safe-area-inset-bottom));
    z-index: 54; background: #fff; padding: 6px 12px; margin: 0 !important;
  }
  /* Acabado dentro del panel: lista con sus radios, fondo limpio */
  #stkmb-panel-material #stkm-finish-list { padding: 0; }
  /* Carriles deslizables (tamano y cantidad) */
  .stkmb-rail {
    display: flex !important; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px !important; scrollbar-width: none;
  }
  .stkmb-rail::-webkit-scrollbar { display: none; }
  #stkm-size-list .stkm-drawer-item {
    flex: 0 0 auto; display: inline-flex; align-items: center;
    border: 1.5px solid #E2E2E5; border-radius: 999px;
    padding: 10px 14px !important; margin: 0 !important;
    font-size: 13px; font-weight: 600; background: #fff;
  }
  #stkm-size-list .stkm-drawer-item .stkm-check,
  #stkm-size-list .stkm-drawer-item .stkm-badge,
  #stkm-size-list .stkm-drawer-item::before { display: none !important; }
  #stkm-size-list .stkm-drawer-item.active {
    border-color: #141416; background: #F4F4F6; font-weight: 800;
  }
  #stkm-qty-list .stkm-qty-row {
    flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: center; gap: 2px; min-width: 78px;
    border: 1.5px solid #E2E2E5; border-radius: 12px;
    padding: 10px 12px !important; margin: 0 !important; background: #fff;
  }
  #stkm-qty-list .stkm-qty-row::before { display: none !important; }
  #stkm-qty-list .stkm-qty-pcs { font-size: 13px; font-weight: 800; color: #141416; }
  #stkm-qty-list .stkm-qty-price { font-size: 12px; color: #6b6b70; }
  #stkm-qty-list .stkm-qty-disc { font-size: 11px; font-weight: 800; color: #18A14A; }
  #stkm-qty-list .stkm-qty-row.active { border-color: #141416; background: #F4F4F6; }
  /* Fila Back print dentro del panel: ancho completo */
  .stkmb-row--bp { width: 100%; box-sizing: border-box; }

  /* ── Drawer de Nota: el textarea no tiene estilos base en stk-mobile.css ── */
  #stkm-drawer-message .stkm-comment-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    padding: 12px 14px;
    margin: 10px 0 12px;
    background: #F4F4F6;
    border: 1.5px solid #E2E2E5;
    border-radius: 12px;
    font: inherit;
    font-size: 16px; /* evita zoom iOS */
    color: #141416;
    resize: vertical;
  }
  #stkm-drawer-message .stkm-comment-textarea:focus {
    outline: none;
    border-color: #141416;
  }
  #stkm-drawer-message .stkm-drawer-desc {
    font-size: 13px;
    color: #6b6b70;
    line-height: 1.45;
    margin: 0 0 4px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   DRAWER DE MATERIAL — reglas GLOBALES (fuera del media query):
   el drawer solo existe en el template beta, y debe verse igual de
   alineado a cualquier ancho de pantalla. Los circulos arrancan en el
   mismo borde que el titulo (sin la caja del CSS compartido).
   ══════════════════════════════════════════════════════════════════════════ */
#stkm-drawer-material .stk-mats,
#stkm-drawer-material .stkm-materials {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
  gap: 14px 8px !important;
  justify-items: start !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 6px 0 2px !important;
  overflow: visible !important;
}
#stkm-drawer-material .stk-mat-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}
#stkm-drawer-material .stkm-mat-circle {
  width: 56px !important; height: 56px !important;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid #dcdce0; background: #fff;
}
#stkm-drawer-material .stkm-mat-circle img { width: 100%; height: 100%; object-fit: cover; }
#stkm-drawer-material .stkm-mat-name { font-size: 12px; font-weight: 600; color: #2A2A2C; }
#stkm-drawer-material .stk-mat-card.active .stkm-mat-circle { border: 2.5px solid #141416; }
#stkm-drawer-material .stk-mat-card.active .stkm-mat-name { font-weight: 800; }
#stkm-drawer-material .stkm-mat-bar { display: none !important; }

/* v1.8.23: animacion de las hormigas */
@keyframes stkb-ants { to { stroke-dashoffset: -8; } }
@media (prefers-reduced-motion: reduce) { #stk-ants .b { animation: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   v1.8.28 — LANDING MOVIL (VISTA 1) del template beta v1.7.5
   Todo bajo .stkmb: solo afecta al template beta. No toca el editor.
   Los elementos nuevos (stkml-*) copian estilos que ya existen en la web.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Material: fuera de la landing (se cambia en el editor) */
  .stkmb #stkm-config .stkml-off { display: none !important; }

  /* Tamanos: una fila que se desliza con el dedo */
  #stk-mobile.stkmb #stkm-config-sizes {
    display: flex !important; flex-wrap: nowrap; gap: 8px;
    /* v1.8.29: !important + selector con dos ids para ganar a stk-mobile.css */
    overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch;
    width: auto !important; max-width: 100vw; overscroll-behavior-x: contain;
    /* v1.8.30: la fila llega a los dos bordes de la pantalla y su relleno (20px = el de #stkm-config)
       deja la primera tarjeta en linea con el titulo; !important porque stk-mobile.css lo anulaba */
    margin: -4px -20px -8px !important; padding: 4px 20px 8px !important; /* el margen vertical compensa el relleno (hueco para la sombra) */
    scroll-padding-left: 20px; box-sizing: border-box;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  #stk-mobile.stkmb #stkm-config-sizes::-webkit-scrollbar { display: none; }
  #stk-mobile.stkmb #stkm-config-sizes > .stkm-config-size {
    flex: 0 0 118px !important; width: 118px; min-width: 118px;
    height: 50px; box-sizing: border-box; scroll-snap-align: start;
  }

  /* Cantidad: una sola tarjeta gris (copia de la fila elegida) que abre el cajon */
  .stkmb .stkml-qty-wrap { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .stkmb .stkml-qty-one,
  .stkmb .stkml-qty-one .stkm-config-qty-row {
    height: 50px !important; min-height: 50px !important; box-sizing: border-box;
  }
  /* v1.8.32: #stk-mobile en el selector para ganar a stk-mobile.css (#stk-mobile .stk-qty-price ... !important) */
  /* v1.8.33: fila flexible -> cantidad | precio centrado en el hueco | descuento | (flecha) */
  #stk-mobile .stkml-qty-one .stkm-config-qty-row { display: flex !important; align-items: center; }
  #stk-mobile .stkml-qty-one .stkm-config-qty-pcs { flex: 0 0 auto; white-space: nowrap; }
  #stk-mobile .stkml-qty-one .stkm-config-qty-price { flex: 1 1 auto; min-width: 0; text-align: center !important; padding-left: 0 !important; }
  #stk-mobile .stkml-qty-one .stkm-config-qty-disc { flex: 0 0 auto; margin-right: 50px !important; }
  /* sin descuento: se reserva su hueco para que el precio no cambie de sitio */
  #stk-mobile .stkml-qty-one .stkm-config-qty-disc:empty { display: block !important; visibility: hidden; width: 41px; padding: 0; }
  .stkmb .stkml-chev {
    position: absolute; right: 27px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: #000; opacity: 0.7; pointer-events: none; /* v1.8.32: antes right 14px / 12px */
  }

  /* Importe + precio por unidad + CONTINUAR */
  .stkmb .stkml-cta { margin: 18px 0 8px; }
  .stkmb .stkml-cta-top { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
  .stkmb .stkml-cta #stkm-config-total { font-size: 22px; font-weight: 900; line-height: 1; }
  .stkmb .stkml-unit { font-size: 13px; font-weight: 500; color: #000; } /* v1.8.31: igual que el texto de las tarjetas */
  .stkmb .stkml-continue { display: block; width: 100%; margin: 0 !important; box-sizing: border-box; cursor: pointer; }
  /* Texto de los botones amarillos en Inter (decision de Jean) */
  .stkmb #stkm-config .stkm-upload-main { font-family: Inter, sans-serif !important; }

  /* Pantalla "Sube tu diseno": sustituye a la landing sin recargar */
  .stkmb .stkml-step { display: none; }
  .stkmb #stkm-config.stkml-step-open > * { display: none !important; }
  .stkmb #stkm-config.stkml-step-open > .stkml-step { display: block !important; min-height: calc(100vh - 70px); }
  /* v1.8.38: el aire va como relleno del bloque (el margen del titulo colapsaba fuera y no se veia) */
  .stkmb #stkm-config.stkml-step-open > .stkml-step { padding-top: 48px; }
  .stkmb .stkml-step .stk-label { margin-top: 0 !important; text-align: center; }
  .stkmb .stkml-p { font-size: 15px; color: #555; margin: 0 0 14px; text-align: center; }
  .stkmb .stkml-sum {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(0,0,0,0.06); border-radius: 10px;
    /* v1.8.38: mismas medidas que las tarjetas de cantidad (50px de alto, 20px a la izquierda, 13px / 500) */
    height: 50px; box-sizing: border-box; padding: 0 20px; margin: 6px 0 18px; font-size: 13px; font-weight: 500;
  }
  .stkmb .stkml-sum b { font-size: 13px; font-weight: 800; white-space: nowrap; }
  .stkmb .stkml-step label.stkm-upload-main { margin-left: 0; margin-right: 0; }
  .stkmb .stkml-skip {
    display: block; text-align: center; font-size: 14px; line-height: 1.4;
    color: #000; margin: 16px 8px 0; cursor: pointer;
  }

  /* ── v1.8.35: bloque gris de opciones (tamano, cantidad, acabado, importe y CONTINUAR) ── */
  /* Solo en /pegatinas-personalizadas/ (page-id-5148) y /pegatinas/pegatinas-troqueladas/ (page-id-4388):
     en las demas landings la seccion siguiente ya es gris y el configurador se queda en blanco, como estaba. */
  /* :not(.stkms) = no se aplica a /hojas-de-pegatinas/, que usa otra plantilla con el mismo CSS */
  /* Fondo de borde a borde: el margen negativo compensa el relleno lateral (20px) de #stkm-config;
     la separacion entre secciones (44px) pasa de margen a relleno para que el gris sea continuo */
  body:is(.page-id-5148, .page-id-4388) .stkmb:not(.stkms) #stkm-config > .stkm-config-section:not(.stkml-off):not(#stkm-config-shapes) {
    margin: 0 -20px !important; padding: 0 20px 44px !important; background: #eef0f3;
  }
  /* Aire sobre "Elige el tamano" (primera seccion visible: la que sigue a Material, oculta) */
  body:is(.page-id-5148, .page-id-4388) .stkmb:not(.stkms) #stkm-config > .stkm-config-section.stkml-off + .stkm-config-section:not(.stkml-off):not(#stkm-config-shapes) {
    padding-top: 75px !important; /* v1.8.37: antes 70px */
  }
  body:is(.page-id-5148, .page-id-4388) .stkmb:not(.stkms) #stkm-config > .stkml-cta { margin: 0 -20px !important; padding: 18px 20px 75px !important; background: #eef0f3; } /* v1.8.37: abajo 75px, antes 70px */
  /* Tarjetas en blanco sobre el gris (lo seleccionado sigue en negro; el cajon de cantidades no cambia) */
  body:is(.page-id-5148, .page-id-4388) #stk-mobile.stkmb:not(.stkms) #stkm-config-sizes .stkm-config-size:not(.active) { background: #fff !important; }
  body:is(.page-id-5148, .page-id-4388) #stk-mobile.stkmb:not(.stkms) #stkml-qty-one .stkm-config-qty-row { background: #fff !important; }
  body:is(.page-id-5148, .page-id-4388) #stk-mobile.stkmb:not(.stkms) #stkm-config .stkm-config-finishes { background: #fff !important; }
  /* Sin franja blanca debajo: el gris termina donde empieza la seccion siguiente de la pagina.
     En la pantalla "Sube tu diseno" se mantiene el relleno inferior de 40px. */
  body:is(.page-id-5148, .page-id-4388) #stk-mobile.stkmb:not(.stkms) #stkm-config { padding-bottom: 0 !important; }
  body:is(.page-id-5148, .page-id-4388) #stk-mobile.stkmb:not(.stkms) #stkm-config.stkml-step-open { padding-bottom: 40px !important; }
  body:is(.page-id-5148, .page-id-4388):not(.stkm-editor-open) .elementor > .elementor-element:has(#stk-mobile.stkmb:not(.stkms)) { margin-bottom: 0 !important; }
  body:is(.page-id-5148, .page-id-4388):not(.stkm-editor-open) .elementor > .elementor-element:has(#stk-mobile.stkmb:not(.stkms)) + .elementor-element { margin-top: 0 !important; }
}
