.em-app{--em-bg:#f3f5f2;--em-card:#fff;--em-text:#1d2822;--em-muted:#6d786f;--em-accent:#1f6b4f;--em-accent-dark:#164f3b;--em-soft:#e7f1ec;--em-border:#dfe6e1;--em-shadow:0 14px 40px rgba(23,42,32,.08);width:100%;max-width:1540px;margin:0 auto;background:var(--em-bg);color:var(--em-text);min-height:82vh;padding:22px 20px 112px;border-radius:28px;font-family:inherit;position:relative}.em-app *{box-sizing:border-box}.em-app a{color:inherit}.em-app button,.em-app input{font-family:inherit}.em-kicker{font-size:10px;font-weight:850;letter-spacing:.15em;color:var(--em-accent)}

/* Encabezado */
.em-app-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 4px 20px}.em-app-title{min-width:0}.em-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.em-app-header h2{font-size:30px;line-height:1.05;margin:4px 0 5px;letter-spacing:-.03em}.em-app-header p{margin:0;color:var(--em-muted);font-size:13px}.em-week-range{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid var(--em-border);font-size:11px;font-weight:800;color:var(--em-accent)}.em-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.em-header-link,.em-focus-toggle{height:44px;padding:0 14px;border-radius:14px;background:var(--em-card);border:1px solid var(--em-border);display:flex;align-items:center;gap:7px;text-decoration:none;font-size:12px;font-weight:750;color:var(--em-text);cursor:pointer}.em-focus-toggle:hover,.em-header-link:hover{border-color:#bfd0c6;background:#fbfdfb}.em-focus-toggle .dashicons,.em-header-link .dashicons{font-size:17px;width:17px;height:17px}.em-profile{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--em-card);border:1px solid var(--em-border);box-shadow:0 3px 14px rgba(0,0,0,.04);text-decoration:none}.em-profile .dashicons{font-size:19px;width:19px;height:19px}

/* Layout base */
.em-app-layout{display:block}.em-app-sidebar,.em-desktop-cart{display:none}.em-catalog-pane{min-width:0}.em-week-composer{background:#fff;border:1px solid var(--em-border);border-radius:20px;padding:14px;box-shadow:0 3px 16px rgba(23,42,32,.035)}.em-week-composer-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px}.em-week-composer-head>div{display:flex;flex-direction:column;gap:2px}.em-week-composer-head>div strong{font-size:14px}.em-week-label{font-size:9px;font-weight:850;letter-spacing:.1em;color:var(--em-muted)}.em-autosave{display:inline-flex;align-items:center;gap:5px;color:var(--em-accent);font-size:10px;font-weight:750;white-space:nowrap}.em-autosave .dashicons{font-size:14px;width:14px;height:14px}.em-day-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.em-day-tab{appearance:none;border:1px solid var(--em-border);background:#fafbfa;border-radius:15px;padding:8px 4px;color:var(--em-text);display:flex;flex-direction:column;align-items:center;gap:0;cursor:pointer;transition:.18s;position:relative;min-width:0}.em-day-tab:hover{transform:translateY(-1px);border-color:#c5d4cc}.em-day-tab>span{font-size:9px;text-transform:uppercase;color:var(--em-muted);font-weight:800}.em-day-tab>strong{font-size:19px;line-height:1.1}.em-day-tab>small{font-size:9px;color:var(--em-muted)}.em-day-tab.is-active{background:var(--em-accent);border-color:var(--em-accent);color:#fff;box-shadow:0 8px 18px rgba(31,107,79,.2)}.em-day-tab.is-active>span,.em-day-tab.is-active>small{color:#dcebe4}.em-day-badge{position:absolute;right:5px;top:5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#e9eeeb;color:#78837c;font-size:8px;line-height:1;font-weight:850}.em-day-badge.has-items{background:#17211c;color:#fff}.em-day-tab.is-active .em-day-badge{background:#fff;color:var(--em-accent)}.em-day-context{margin-top:10px;padding:9px 10px;border-radius:13px;background:#eff5f1;display:flex;align-items:center;gap:9px}.em-day-context>.dashicons{color:var(--em-accent);font-size:18px;width:18px;height:18px}.em-day-context>div{display:flex;flex-direction:column}.em-day-context strong{font-size:12px;text-transform:capitalize}.em-day-context small{font-size:10px;color:var(--em-muted);line-height:1.35;margin-top:1px}

/* Catálogo */
.em-catalog-tools{position:sticky;top:0;z-index:8;background:linear-gradient(var(--em-bg) 82%,rgba(243,245,242,0));padding:10px 0 8px}.em-search-wrap{position:relative}.em-search-wrap .dashicons{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--em-muted)}.em-product-search{width:100%!important;border:1px solid var(--em-border)!important;background:#fff!important;border-radius:15px!important;padding:12px 14px 12px 43px!important;min-height:47px!important;font-size:15px!important;box-shadow:none!important}.em-product-search:focus{border-color:#9ab9aa!important;box-shadow:0 0 0 3px rgba(31,107,79,.08)!important}.em-cat-pills{display:flex;gap:7px;overflow-x:auto;padding:8px 0 0;scrollbar-width:none}.em-cat-pills::-webkit-scrollbar{display:none}.em-cat-pills a{white-space:nowrap;background:#fff;border:1px solid var(--em-border);border-radius:999px;padding:7px 11px;text-decoration:none;font-size:12px;font-weight:700}.em-category{scroll-margin-top:76px;margin-top:18px}.em-category-head{display:flex;align-items:center;justify-content:space-between;margin:0 3px 8px}.em-category-head h3{font-size:18px;margin:0;letter-spacing:-.01em}.em-category-head span{font-size:10px;color:var(--em-muted);font-weight:700}.em-product-list{display:flex;flex-direction:column;gap:8px}.em-product-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--em-card);border:1px solid var(--em-border);border-radius:16px;padding:9px;transition:opacity .2s,transform .18s,border-color .18s,box-shadow .18s}.em-product-card:hover{border-color:#c8d6ce;box-shadow:0 5px 16px rgba(26,43,34,.045)}.em-product-card.is-busy{opacity:.55;pointer-events:none}.em-product-image{width:54px;height:54px;border-radius:12px;background:#eeeee9;overflow:hidden;display:flex;align-items:center;justify-content:center}.em-product-image img{width:100%;height:100%;object-fit:cover}.em-product-image .dashicons{color:#87918a}.em-product-info{min-width:0;display:flex;flex-direction:column}.em-product-info strong{font-size:13px;line-height:1.25}.em-product-info small{color:var(--em-muted);margin-top:3px;font-size:11px;line-height:1.25}.em-rule{font-size:9px;font-weight:800;color:var(--em-accent);margin-top:4px}.em-qty{display:flex;align-items:center;gap:6px}.em-qty button{appearance:none;border:0;width:34px;height:34px;border-radius:50%;background:var(--em-soft);color:var(--em-accent);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s}.em-qty button:hover{background:#d8e9e0;transform:scale(1.04)}.em-qty-value{min-width:24px;text-align:center;font-weight:850}.em-day-actions{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin:20px 0 0;padding:10px;background:#fff;border:1px solid var(--em-border);border-radius:16px}.em-day-actions>div{display:flex;flex-direction:column;text-align:center}.em-day-actions>div strong{font-size:11px}.em-day-actions>div small{font-size:9px;color:var(--em-muted)}.em-day-prev,.em-day-next{border:0;border-radius:12px;background:var(--em-soft);color:var(--em-accent);min-height:42px;padding:0 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:800}.em-day-prev small,.em-day-next small{font-size:10px}.em-day-prev span,.em-day-next span{font-size:18px}.em-day-prev:disabled,.em-day-next:disabled{opacity:.35;cursor:default}

/* Resumen */
.em-week-mini-days{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:11px 0}.em-mini-day{border:1px solid var(--em-border);background:#fafbfa;border-radius:10px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;min-width:0}.em-mini-day span{font-size:8px;color:var(--em-muted);white-space:nowrap}.em-mini-day b{font-size:11px;color:#87918a}.em-mini-day b.has-items{color:var(--em-accent)}.em-mini-day.is-active{border-color:#a9c3b6;background:#edf5f1}.em-mini-day.is-active span,.em-mini-day.is-active b{color:var(--em-accent)}.em-summary-day{padding:11px 0;border-bottom:1px solid var(--em-border)}.em-summary-day h4{margin:0 0 7px;text-transform:capitalize;font-size:13px}.em-summary-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.em-summary-line>span{display:flex;flex-direction:column;min-width:0}.em-summary-line strong{font-size:11px;line-height:1.3}.em-summary-line small{color:var(--em-muted);font-size:10px}.em-summary-line b{font-size:11px;white-space:nowrap}.em-summary-total{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-size:14px}.em-summary-total strong{font-size:19px}.em-minimum{border-radius:12px;padding:9px 10px;margin-bottom:6px;display:flex;justify-content:space-between;gap:8px;font-size:10px}.em-minimum.is-ok{background:#e7f4ec;color:#205e3d}.em-minimum.is-warning{background:#fff4dd;color:#855b00}.em-cart-confirm{position:sticky;bottom:-18px;background:#fff;padding-top:10px}.em-confirm-order{width:100%;min-height:50px;border:0;border-radius:14px;background:var(--em-accent);color:#fff;font-weight:850;font-size:13px;cursor:pointer;box-shadow:0 8px 18px rgba(31,107,79,.17)}.em-confirm-order:hover{background:var(--em-accent-dark)}.em-confirm-order:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.em-cart-confirm p{text-align:center;color:var(--em-muted);font-size:9px;margin:7px 2px 0;line-height:1.4}.em-empty-cart{text-align:center;padding:30px 10px;color:var(--em-muted)}.em-empty-cart .dashicons{font-size:32px;width:32px;height:32px}.em-empty-cart.is-success{color:var(--em-accent)}.em-loading{text-align:center;padding:22px;color:var(--em-muted);font-size:11px}

/* Mobile: carrito inferior y drawer */
.em-sticky-cart{position:fixed;z-index:50;left:50%;bottom:12px;transform:translateX(-50%);width:min(760px,calc(100vw - 20px))}.em-open-cart{width:100%;border:0;background:#17211c;color:#fff;border-radius:18px;min-height:66px;padding:10px 14px;display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:10px;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.22);cursor:pointer}.em-open-cart>span{display:flex;flex-direction:column}.em-open-cart small{color:#c4cec8}.em-cart-arrow{font-size:11px;font-weight:800;align-items:flex-end}.em-drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:70}.em-cart-drawer{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:min(780px,100vw);max-height:91vh;background:#fff;border-radius:24px 24px 0 0;z-index:80;padding:18px 16px 20px;transition:transform .25s ease;box-shadow:0 -16px 44px rgba(0,0,0,.18);overflow:auto}.em-cart-drawer.is-open{transform:translate(-50%,0)}.em-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--em-border);padding-bottom:12px}.em-drawer-head h3,.em-desktop-cart-head h3{margin:2px 0 0;font-size:21px}.em-drawer-head p,.em-desktop-cart-head p{margin:5px 0 0;color:var(--em-muted);font-size:10px;line-height:1.4}.em-close-cart{border:0;background:#f1f1ed;width:38px;height:38px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}.em-toast{position:fixed;z-index:1000002;left:50%;top:18px;transform:translate(-50%,-80px);background:#17211c;color:#fff;padding:11px 16px;border-radius:999px;opacity:0;transition:.2s;max-width:90vw;text-align:center;font-size:12px;box-shadow:0 8px 22px rgba(0,0,0,.2)}.em-toast.is-visible{transform:translate(-50%,0);opacity:1}.em-toast.is-error{background:#8f2e2e}.em-drawer-open{overflow:hidden}

/* Pantalla completa / modo app */
.em-app:fullscreen{width:100vw!important;max-width:none!important;height:100vh!important;min-height:100vh!important;margin:0!important;border-radius:0!important;padding:18px 20px 36px!important;overflow:auto!important;left:auto!important;transform:none!important}.em-app.is-focus-mode{position:fixed!important;inset:0!important;z-index:1000000!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;border-radius:0!important;padding:16px 16px 90px!important;overflow:auto!important;left:0!important;transform:none!important}.em-app-focus-active{overflow:hidden!important}.em-app.is-focus-mode .em-sticky-cart,.em-app:fullscreen .em-sticky-cart{z-index:1000001}.em-app.is-focus-mode .em-cart-drawer,.em-app:fullscreen .em-cart-drawer{z-index:1000003}.em-app.is-focus-mode .em-drawer-backdrop,.em-app:fullscreen .em-drawer-backdrop{z-index:1000002}.em-focus-toggle.is-active{background:#17211c;color:#fff;border-color:#17211c}

/* Integración con Mi cuenta: el pedido usa todo el ancho */
body.em-wholesale-app-page.woocommerce-account .woocommerce-MyAccount-navigation{display:none!important}body.em-wholesale-app-page.woocommerce-account .woocommerce-MyAccount-content{width:100%!important;float:none!important}body.em-wholesale-app-page .woocommerce-MyAccount-content>.woocommerce-notices-wrapper{max-width:1540px;margin-left:auto;margin-right:auto}

/* Estados y seguimiento en Mi cuenta */
.em-op-badge{--em-state:#64748b;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;background:#f8fafc;color:var(--em-state);border:1px solid #dfe5e1;white-space:nowrap}.em-op-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--em-state)}.em-frontend-progress{margin:28px 0;padding:20px;border:1px solid #e5e7eb;border-radius:18px;background:#fff}.em-frontend-progress h2{margin:0 0 16px}.em-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;position:relative}.em-progress:before{content:"";position:absolute;left:8.5%;right:8.5%;top:15px;height:3px;background:#e5e7eb}.em-progress-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;color:#94a3b8}.em-progress-dot{width:30px;height:30px;border-radius:50%;background:#fff;border:3px solid #dfe4e1;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:850}.em-progress-step small{font-size:10px;line-height:1.2}.em-progress-step.is-done,.em-progress-step.is-current{color:#1f6b4f}.em-progress-step.is-done .em-progress-dot,.em-progress-step.is-current .em-progress-dot{background:#1f6b4f;border-color:#1f6b4f;color:#fff}.em-progress-step.is-current .em-progress-dot{box-shadow:0 0 0 5px rgba(31,107,79,.12)}.em-progress-step.is-review{color:#b7791f}.em-progress-step.is-review .em-progress-dot{border-color:#d97706;color:#d97706;background:#fff7ed}.em-progress-exception{--em-state:#b91c1c;border:1px solid #eadada;background:#fff8f8;color:var(--em-state);padding:12px 14px;border-radius:12px;display:flex;flex-direction:column;gap:3px}.em-progress-exception span{font-size:12px}

/* Tablet */
@media(min-width:760px){
  .em-product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.em-product-card{min-height:76px}.em-week-composer{padding:16px}.em-day-tab{padding:10px 5px}.em-day-tab>strong{font-size:21px}
}

/* Escritorio: catálogo + resumen */
@media(min-width:900px){
  .em-app{padding:26px 26px 34px;min-height:calc(100vh - 64px)}.em-app-header{padding-bottom:22px}.em-app-header h2{font-size:33px}
  .em-app-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.em-desktop-cart{display:block;position:sticky;top:20px}.em-desktop-cart-card{background:#fff;border:1px solid var(--em-border);border-radius:19px;box-shadow:0 4px 18px rgba(23,42,32,.04);padding:16px;max-height:calc(100vh - 40px);overflow:auto}.em-desktop-cart-head{border-bottom:1px solid var(--em-border);padding-bottom:11px}.em-desktop-cart .em-cart-confirm{bottom:-16px}.em-desktop-cart .em-cart-summary{min-height:120px}
  .em-sticky-cart{display:none}.em-cart-drawer,.em-drawer-backdrop{display:none!important}.em-catalog-tools{top:0}.em-cat-pills{display:flex}
}

/* Escritorio amplio: navegación + catálogo + resumen */
@media(min-width:1220px){
  .em-app{width:min(1680px,calc(100vw - 44px));max-width:none;position:relative;left:50%;transform:translateX(-50%)}
  .em-app-layout{grid-template-columns:220px minmax(0,1fr) 360px;gap:20px}.em-app-sidebar{display:block;position:sticky;top:20px}.em-sidebar-card{background:#fff;border:1px solid var(--em-border);border-radius:18px;box-shadow:0 3px 16px rgba(23,42,32,.035);padding:13px}.em-sidebar-title{display:block;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--em-muted);padding:4px 7px 9px}.em-category-nav{display:flex;flex-direction:column;gap:3px}.em-category-nav a{display:flex;align-items:center;justify-content:space-between;text-decoration:none;padding:9px;border-radius:11px;font-size:12px;font-weight:700}.em-category-nav a:hover{background:var(--em-soft);color:var(--em-accent)}.em-category-nav .dashicons{font-size:15px;width:15px;height:15px}.em-account-nav{margin-top:12px;padding:7px;background:rgba(255,255,255,.62);border-radius:15px;display:flex;flex-direction:column;gap:3px}.em-account-nav a{display:flex;align-items:center;gap:8px;padding:9px;border-radius:10px;text-decoration:none;font-size:11px;color:var(--em-muted);font-weight:700}.em-account-nav a:hover,.em-account-nav a.is-active{background:#fff;color:var(--em-text)}.em-account-nav .dashicons{font-size:15px;width:15px;height:15px}.em-cat-pills{display:none}
}

@media(min-width:1500px){.em-app-layout{grid-template-columns:230px minmax(0,1fr) 380px;gap:24px}.em-product-list{grid-template-columns:repeat(3,minmax(0,1fr))}.em-product-card{grid-template-columns:52px minmax(0,1fr) auto}.em-product-image{width:52px;height:52px}.em-product-info strong{font-size:12px}.em-product-info small{font-size:10px}.em-qty{gap:4px}.em-qty button{width:31px;height:31px}.em-qty-value{min-width:21px}}

/* Celular */
@media(max-width:599px){
  .em-app{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%);border-radius:0;min-height:100vh;padding:14px 11px 108px}.em-app-header{padding:2px 2px 14px;align-items:flex-start}.em-app-header h2{font-size:26px}.em-app-header p{font-size:11px;line-height:1.35}.em-week-range{min-height:24px;padding:0 8px;font-size:9px}.em-header-link{display:none}.em-focus-toggle{width:42px;height:42px;padding:0;justify-content:center;border-radius:50%}.em-focus-label{display:none}.em-profile{width:42px;height:42px}.em-week-composer{border-radius:17px;padding:11px}.em-week-composer-head{align-items:flex-start}.em-week-composer-head>div strong{font-size:12px}.em-autosave{font-size:9px}.em-day-tabs{gap:5px}.em-day-tab{border-radius:13px;padding:7px 2px}.em-day-tab>strong{font-size:18px}.em-day-badge{right:3px;top:3px;min-width:16px;height:16px;font-size:7px}.em-day-context small{font-size:9px}.em-catalog-tools{padding-top:8px}.em-product-card{grid-template-columns:46px minmax(0,1fr) auto;gap:8px;padding:8px}.em-product-image{width:46px;height:46px}.em-product-info strong{font-size:12px}.em-product-info small{font-size:10px}.em-qty{gap:3px}.em-qty button{width:31px;height:31px}.em-qty-value{min-width:19px;font-size:13px}.em-category-head h3{font-size:17px}.em-day-actions>div{display:none}.em-day-actions{grid-template-columns:1fr 1fr}.em-day-prev,.em-day-next{justify-content:center}.em-open-cart{grid-template-columns:1fr 1fr}.em-cart-arrow{display:none}.em-minimum{flex-direction:column;gap:2px}.em-progress{overflow-x:auto;grid-template-columns:repeat(6,90px);padding-bottom:5px}.em-progress:before{left:45px;right:45px}.em-progress-step small{font-size:9px}.em-week-mini-days{gap:4px}.em-mini-day span{font-size:7px}
}


/* 0.3.1 · Tarjetas desktop más legibles */
.em-product-info strong,.em-product-info small,.em-rule{overflow-wrap:anywhere}.em-qty{flex:0 0 auto}.em-no-product-images .em-product-card{grid-template-columns:minmax(0,1fr) auto}
@media(min-width:760px){
  .em-product-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-product-card{grid-template-columns:64px minmax(140px,1fr) 118px;gap:14px;min-height:88px;padding:11px 12px}
  .em-product-image{width:64px;height:64px}
  .em-product-info{padding-right:4px;align-self:center}
  .em-product-info strong{font-size:13px;line-height:1.3}
  .em-product-info small{font-size:10.5px;line-height:1.35}
  .em-rule{font-size:9px;line-height:1.35}
  .em-qty{justify-self:end;justify-content:flex-end;min-width:118px;gap:7px}
  .em-qty button{width:38px;height:38px;font-size:24px;flex:0 0 38px}
  .em-qty-value{min-width:24px;font-size:14px}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(150px,1fr) 118px}
}
@media(min-width:900px){
  .em-product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
}
@media(min-width:1220px){
  .em-product-list{grid-template-columns:repeat(2,minmax(340px,1fr));gap:12px}
  .em-product-card{grid-template-columns:66px minmax(150px,1fr) 122px;min-height:92px}
  .em-product-image{width:66px;height:66px}
  .em-qty{min-width:122px}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(180px,1fr) 122px}
}
@media(min-width:1500px){
  .em-product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .em-product-card{grid-template-columns:68px minmax(170px,1fr) 124px;gap:15px;padding:12px 14px;min-height:96px}
  .em-product-image{width:68px;height:68px}
  .em-product-info strong{font-size:13px}.em-product-info small{font-size:10.5px}
  .em-qty{gap:7px;min-width:124px}.em-qty button{width:38px;height:38px}.em-qty-value{min-width:25px}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(200px,1fr) 124px}
}

/* Ampliación de imágenes configurable */
.em-product-image{position:relative}.em-product-image.is-click-zoom{cursor:zoom-in;outline:none}.em-product-image.is-click-zoom:focus-visible{box-shadow:0 0 0 3px rgba(31,107,79,.2)}
@media(hover:hover) and (pointer:fine){
  .em-product-image.is-hover-zoom{overflow:visible;z-index:2}
  .em-product-image.is-hover-zoom img{border-radius:inherit;transition:transform .2s ease,box-shadow .2s ease;transform-origin:left center;position:relative;z-index:2}
  .em-product-image.is-hover-zoom:hover{z-index:50}
  .em-product-image.is-hover-zoom:hover img{transform:scale(2.35);box-shadow:0 14px 34px rgba(15,35,25,.28)}
}
.em-image-lightbox[hidden]{display:none!important}.em-image-lightbox{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;background:rgba(12,20,16,.82);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto;overscroll-behavior:contain;opacity:0;transition:opacity .18s ease}.em-image-lightbox.is-open{opacity:1}.em-image-lightbox-dialog{width:min(980px,92vw);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:auto}.em-image-lightbox-dialog img{display:block;max-width:100%;max-height:72dvh;width:auto;height:auto;object-fit:contain;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.35)}.em-image-lightbox-copy{width:min(760px,92vw);display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:#fff}.em-image-lightbox-title{display:block;color:#fff;font-size:15px;line-height:1.3;font-weight:800;text-align:center}.em-image-lightbox-description{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:12px!important;line-height:1.45!important;font-weight:400!important;text-align:center}.em-image-lightbox-description[hidden]{display:none!important}.em-image-lightbox-close{position:fixed!important;right:22px;top:20px;width:46px;height:46px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}.em-image-lightbox-close:hover{background:rgba(255,255,255,.2)}body.em-image-lightbox-open{overflow:hidden!important}
@media(max-width:599px){
  .em-image-lightbox{padding:12px}.em-image-lightbox-dialog{width:100%;max-height:calc(100dvh - 24px);gap:9px}.em-image-lightbox-dialog img{max-height:72dvh;border-radius:16px}.em-image-lightbox-copy{width:92vw}.em-image-lightbox-title{font-size:14px}.em-image-lightbox-description{font-size:11px!important;line-height:1.4!important}.em-image-lightbox-close{right:12px;top:12px;width:42px;height:42px}
}

/* 0.3.2 · Controles de cantidad desktop compactos y centrados */
@media(min-width:900px){
  .em-product-card{grid-template-columns:64px minmax(0,1fr) 96px}
  .em-qty{justify-self:center;align-self:center;justify-content:center;width:96px;min-width:0;max-width:96px;gap:6px}
  .em-qty button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;flex:0 0 32px!important;padding:0!important;margin:0!important;border-radius:50%!important;font-size:20px;line-height:1!important}
  .em-qty-value{min-width:20px;font-size:13px;line-height:32px;text-align:center}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(0,1fr) 96px}
}
@media(min-width:1220px){
  .em-product-card{grid-template-columns:66px minmax(0,1fr) 96px}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(0,1fr) 96px}
}
@media(min-width:1500px){
  .em-product-card{grid-template-columns:68px minmax(0,1fr) 96px}
  .em-qty{width:96px;min-width:0;max-width:96px;gap:6px}
  .em-qty button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important}
  .em-qty-value{min-width:20px;font-size:13px}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(0,1fr) 96px}
}

/* v0.5.0 · Portal mayorista completo: login, historial y perfil */
.em-login-screen{--em-text:#1d2822;--em-muted:#6d786f;--em-accent:#1f6b4f;--em-accent-dark:#164f3b;--em-border:#dfe6e1;display:grid;place-items:center;width:100%;min-height:56vh;padding:44px 18px;background:linear-gradient(180deg,rgba(243,245,242,.55),rgba(255,255,255,.35));font-family:inherit}.em-login-card{width:min(440px,100%);background:#fff;border:1px solid var(--em-border);border-radius:24px;padding:28px;box-shadow:0 18px 50px rgba(23,42,32,.09);color:var(--em-text)}.em-login-card h2{font-size:30px;line-height:1.05;margin:7px 0 8px;letter-spacing:-.03em}.em-login-card>p{margin:0 0 22px;color:var(--em-muted);font-size:13px;line-height:1.5}.em-login-alert{margin:0 0 15px;padding:10px 12px;border-radius:12px;background:#fff1f0;color:#922b2b;font-size:11px;font-weight:700}.em-login-form{display:flex;flex-direction:column;gap:13px}.em-login-form>label{display:flex;flex-direction:column;gap:5px}.em-login-form>label>span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--em-muted)}.em-login-form input[type=text],.em-login-form input[type=password]{width:100%!important;min-height:48px!important;border:1px solid var(--em-border)!important;border-radius:13px!important;background:#fbfcfb!important;padding:10px 12px!important;box-shadow:none!important}.em-login-form input:focus{border-color:#9ab9aa!important;box-shadow:0 0 0 3px rgba(31,107,79,.08)!important}.em-login-options{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:11px;color:var(--em-muted)}.em-login-options label{display:flex;align-items:center;gap:6px}.em-login-options a{color:var(--em-accent);text-decoration:none;font-weight:700}.em-login-form>button{appearance:none;border:0;border-radius:14px;background:var(--em-accent);color:#fff;min-height:50px;font-weight:850;font-size:13px;cursor:pointer}.em-login-form>button:hover{background:var(--em-accent-dark)}

.em-mobile-account-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:5px;background:rgba(255,255,255,.72);border:1px solid var(--em-border);border-radius:14px}.em-mobile-account-tabs::-webkit-scrollbar{display:none}.em-mobile-account-tabs a{flex:1;min-width:max-content;text-decoration:none;text-align:center;padding:9px 10px;border-radius:10px;font-size:10px;font-weight:800;color:var(--em-muted)}.em-mobile-account-tabs a.is-active{background:#fff;color:var(--em-accent);box-shadow:0 2px 8px rgba(23,42,32,.05)}.em-mobile-account-tabs .em-mobile-logout{flex:0 0 38px;min-width:38px;padding:9px 5px}.em-mobile-logout .dashicons{font-size:16px;width:16px;height:16px}

.em-account-app{padding-bottom:40px}.em-account-layout{display:block}.em-account-sidebar{display:none}.em-account-content{min-width:0}.em-account-nav-only{margin-top:0!important;background:rgba(255,255,255,.72)!important;border:1px solid var(--em-border)}.em-account-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.em-account-section-head h3{font-size:25px;line-height:1.1;margin:4px 0 5px;letter-spacing:-.025em}.em-account-section-head p{margin:0;color:var(--em-muted);font-size:11px}.em-back-link{display:inline-block;margin-bottom:7px;text-decoration:none;color:var(--em-accent)!important;font-size:11px;font-weight:800}.em-history-total{display:flex;flex-direction:column;align-items:flex-end;padding:10px 13px;border-radius:13px;background:#17211c;color:#fff;min-width:145px}.em-history-total span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#bdc8c1}.em-history-total strong{font-size:18px;margin-top:2px}
.em-history-list{display:flex;flex-direction:column;gap:10px}.em-history-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;background:#fff;border:1px solid var(--em-border);border-radius:17px;padding:15px 16px;box-shadow:0 3px 14px rgba(23,42,32,.025)}.em-history-week{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:var(--em-accent);font-weight:850}.em-history-card-main h4{font-size:16px;margin:3px 0 5px}.em-history-card-meta{display:flex;gap:11px;flex-wrap:wrap;color:var(--em-muted);font-size:9px}.em-history-card-state{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.em-history-card-state>strong{font-size:14px}.em-history-view{display:flex;align-items:center;gap:6px;text-decoration:none!important;border:1px solid var(--em-border);border-radius:11px;padding:9px 11px;font-size:10px;font-weight:800;white-space:nowrap}.em-history-view:hover{background:var(--em-soft);color:var(--em-accent)}.em-history-status-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:11px}.em-history-status-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--em-border);border-radius:14px;padding:11px 13px}.em-history-status-row>div>span{font-size:9px;text-transform:uppercase;color:var(--em-muted);font-weight:800}.em-history-status-row>div>strong{font-size:11px}.em-account-progress{background:#fff;border:1px solid var(--em-border);border-radius:16px;padding:14px;margin-bottom:12px}.em-account-progress h4{font-size:12px;margin:0 0 12px}.em-history-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.em-history-day{background:#fff;border:1px solid var(--em-border);border-radius:16px;overflow:hidden}.em-history-day>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;background:#f8faf8;border-bottom:1px solid var(--em-border)}.em-history-day>header>div{display:flex;flex-direction:column}.em-history-day>header span{font-size:9px;color:var(--em-muted);text-transform:capitalize}.em-history-day>header strong{font-size:12px}.em-history-day>header>b{font-size:11px}.em-history-day-items{padding:8px 12px}.em-history-day-items>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #e6ebe7}.em-history-day-items>div:last-child{border-bottom:0}.em-history-day-items span{font-size:10px}.em-history-day-items strong{font-size:10px;color:var(--em-accent)}.em-history-actions{display:flex;justify-content:flex-end;margin-top:14px}.em-primary-action{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:0 16px;border-radius:12px;background:var(--em-accent);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:850}.em-account-empty{text-align:center;background:#fff;border:1px dashed var(--em-border);border-radius:18px;padding:44px 20px;color:var(--em-muted)}.em-account-empty .dashicons{font-size:34px;width:34px;height:34px}.em-account-empty h4{color:var(--em-text);font-size:17px;margin:8px 0 4px}.em-account-empty p{font-size:11px;margin:0 0 14px}.em-account-empty a{display:inline-flex;text-decoration:none;background:var(--em-accent);color:#fff!important;border-radius:11px;padding:9px 13px;font-size:10px;font-weight:800}
.em-profile-notice{margin:0 0 12px;padding:11px 13px;border-radius:12px;font-size:11px;font-weight:700}.em-profile-notice.is-success{background:#e7f4ec;color:#205e3d}.em-profile-notice.is-error{background:#fff1f0;color:#922b2b}.em-profile-form{display:flex;flex-direction:column;gap:11px}.em-profile-card{background:#fff;border:1px solid var(--em-border);border-radius:17px;padding:16px}.em-profile-card-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #edf0ee}.em-profile-card-head>.dashicons{width:38px;height:38px;border-radius:11px;background:var(--em-soft);color:var(--em-accent);display:flex;align-items:center;justify-content:center}.em-profile-card-head h4{font-size:14px;margin:0 0 2px}.em-profile-card-head p{font-size:9px;color:var(--em-muted);margin:0}.em-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.em-profile-grid label{display:flex;flex-direction:column;gap:5px}.em-profile-grid label.is-wide{grid-column:1/-1}.em-profile-grid label>span{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--em-muted);font-weight:800}.em-profile-grid input{width:100%!important;min-height:43px!important;border:1px solid var(--em-border)!important;border-radius:11px!important;padding:8px 10px!important;background:#fbfcfb!important;box-shadow:none!important}.em-profile-grid input:focus{border-color:#9ab9aa!important;box-shadow:0 0 0 3px rgba(31,107,79,.08)!important}.em-profile-grid input:disabled{opacity:.72;cursor:not-allowed}.em-profile-submit{display:flex;justify-content:flex-end}.em-profile-submit button{border:0;border-radius:12px;background:var(--em-accent);color:#fff;min-height:45px;padding:0 18px;font-size:11px;font-weight:850;cursor:pointer}

@media(min-width:900px){.em-account-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;align-items:start}.em-account-sidebar{display:block!important;position:sticky;top:20px}.em-account-app .em-mobile-account-tabs{display:none}}
@media(min-width:1220px){.em-account-layout{grid-template-columns:220px minmax(0,1fr);gap:20px}.em-account-app .em-app-sidebar{display:block}.em-app>.em-mobile-account-tabs{display:none}}
@media(max-width:699px){.em-login-screen{min-height:52vh;padding:24px 12px}.em-login-card{padding:22px 18px;border-radius:20px}.em-login-card h2{font-size:26px}.em-login-options{align-items:flex-start;flex-direction:column;gap:8px}.em-account-app{padding-bottom:28px}.em-account-section-head{flex-direction:column}.em-history-total{align-items:flex-start;width:100%;min-width:0}.em-history-card{grid-template-columns:1fr;gap:10px}.em-history-card-state{align-items:flex-start}.em-history-view{justify-content:center}.em-history-status-row{grid-template-columns:1fr}.em-history-days{grid-template-columns:1fr}.em-profile-grid{grid-template-columns:1fr}.em-profile-grid label.is-wide{grid-column:auto}.em-profile-submit button{width:100%}}

/* v0.6.0 · mínimos y bolsas más claros */
.em-product-info .em-pack-rule{background:#eef5f1;color:#2f6a50}
.em-pay-badge{--em-state:#9ca3af;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;background:#f8fafc;color:var(--em-state);border:1px solid #dfe5e1;white-space:nowrap}.em-pay-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--em-state)}
.em-progress{grid-template-columns:repeat(4,minmax(0,1fr))}.em-progress:before{left:12.5%;right:12.5%}
@media(max-width:700px){.em-progress{grid-template-columns:repeat(4,92px);overflow-x:auto;padding-bottom:4px}}

/* v0.7.0 · precios más legibles y edición rápida del resumen */
.em-product-info .em-product-price{font-size:12.5px!important;line-height:1.35!important;font-weight:750;color:#52645a;margin-top:4px}
.em-summary-line{align-items:center}.em-summary-product{flex:1 1 auto}.em-summary-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.em-summary-line-actions b{font-size:11px;white-space:nowrap}.em-summary-remove{appearance:none!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;margin:0!important;border:1px solid #dfe5e1!important;border-radius:50%!important;background:#fff!important;color:#7b8981!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-size:17px!important;font-weight:500!important;box-shadow:none!important;cursor:pointer!important;transition:.15s ease}.em-summary-remove:hover{border-color:#d3a7a7!important;background:#fff6f6!important;color:#a33b3b!important;transform:scale(1.04)}.em-summary-remove:disabled,.em-summary-remove.is-busy{opacity:.45;cursor:wait!important}
@media(max-width:699px){.em-product-info .em-product-price{font-size:11.5px!important}.em-summary-line-actions{gap:6px}.em-summary-remove{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important}}

/* v0.7.8 · progreso de mínimos semanales */
.em-minimum{border-left:3px solid transparent}.em-minimum.is-ok{border-left-color:#2f855a}.em-minimum.is-warning{border-left-color:#d69e2e}.em-minimum span{font-weight:650}.em-minimum.is-warning span{color:#8a6100}

/* v0.7.11 · ajuste mobile-first del portal mayorista */
.em-product-price{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;white-space:normal!important}
.em-price-row{display:flex;align-items:baseline;gap:4px;max-width:100%;line-height:1.25;white-space:nowrap}
.em-price-row b{font-weight:850;color:#405449;font-size:12px;line-height:1.25}
.em-price-row span{font-weight:400;color:var(--em-muted);font-size:10.5px;line-height:1.25}

/* El drawer usa el alto visual real del celular y mantiene siempre accesible la confirmación. */
.em-cart-drawer{max-height:min(92dvh,900px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

@media(max-width:599px){
  /* Full bleed sin transform: evita que los elementos position:fixed queden limitados por el contenedor. */
  .em-app{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;transform:none!important;min-height:100dvh!important;padding:12px 10px calc(104px + env(safe-area-inset-bottom))!important;overflow:visible}

  /* Acciones del header perfectamente alineadas y aisladas de estilos globales del tema. */
  .em-app-header{align-items:flex-start!important;gap:10px!important;padding:2px 1px 13px!important}
  .em-header-actions{display:flex!important;align-items:center!important;align-self:flex-start!important;gap:7px!important;margin:0!important;padding:0!important;line-height:1!important}
  .em-focus-toggle,.em-profile{box-sizing:border-box!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex:0 0 40px!important;padding:0!important;margin:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;line-height:1!important;vertical-align:middle!important;position:relative!important;top:auto!important;transform:none!important}
  .em-focus-toggle .dashicons,.em-profile .dashicons{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;font-size:18px!important;line-height:1!important;position:static!important;top:auto!important;transform:none!important}
  .em-focus-toggle .dashicons:before,.em-profile .dashicons:before{display:block!important;margin:0!important;line-height:18px!important;height:18px!important}

  /* Tarjeta mobile: reservamos una columna fija y compacta para cantidad. */
  .em-product-card{grid-template-columns:46px minmax(0,1fr) 86px!important;gap:7px!important;align-items:center!important;padding:8px!important}
  .em-no-product-images .em-product-card{grid-template-columns:minmax(0,1fr) 86px!important}
  .em-product-info{padding-right:0!important;min-width:0!important}
  .em-product-info strong{font-size:12px!important;line-height:1.25!important}
  .em-product-price{margin-top:3px!important;gap:1px!important}
  .em-price-row{gap:3px!important;white-space:nowrap!important}
  .em-price-row b{font-size:10.75px!important;line-height:1.25!important}
  .em-price-row span{font-size:9.75px!important;line-height:1.25!important}
  .em-rule{font-size:8.5px!important;line-height:1.25!important;margin-top:3px!important}

  /* Reset fuerte de botones +/- para que Flatsome/Woo no desplacen el contenido. */
  .em-qty{display:grid!important;grid-template-columns:29px 22px 29px!important;align-items:center!important;justify-items:center!important;justify-self:end!important;align-self:center!important;width:86px!important;min-width:86px!important;max-width:86px!important;gap:3px!important;margin:0!important;padding:0!important;line-height:1!important}
  .em-qty button{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;max-width:29px!important;max-height:29px!important;flex:0 0 29px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--em-soft)!important;color:var(--em-accent)!important;font-size:0!important;line-height:1!important;box-shadow:none!important;text-indent:0!important;position:relative!important;top:auto!important;transform:none!important}
  .em-qty button:hover,.em-qty button:focus{transform:none!important;background:#d8e9e0!important;outline:none!important}
  .em-qty button:before{display:block!important;font-family:Arial,sans-serif!important;font-weight:500!important;font-size:18px!important;line-height:18px!important;height:18px!important;width:18px!important;text-align:center!important;margin:0!important;padding:0!important;position:static!important;transform:translateY(-1px)!important}
  .em-qty-minus:before{content:"−"!important}
  .em-qty-plus:before{content:"+"!important}
  .em-qty-value{display:grid!important;place-items:center!important;box-sizing:border-box!important;width:22px!important;min-width:22px!important;height:29px!important;margin:0!important;padding:0!important;font-size:12px!important;font-weight:850!important;line-height:1!important;text-align:center!important}

  /* Barra inferior respetando el safe area del dispositivo. */
  .em-sticky-cart{left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;transform:none!important;width:auto!important;max-width:none!important}
  .em-open-cart{min-height:62px!important;border-radius:16px!important;padding:9px 12px!important;gap:8px!important}

  /* Drawer estable: encabezado y CTA fijos, contenido central con scroll propio. */
  .em-cart-drawer{left:0!important;right:0!important;bottom:0!important;transform:translateY(105%)!important;width:100vw!important;height:min(92dvh,760px)!important;max-height:92dvh!important;border-radius:22px 22px 0 0!important;padding:16px 14px 0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  .em-cart-drawer.is-open{transform:translateY(0)!important}
  .em-drawer-head{flex:0 0 auto!important;padding-bottom:10px!important}
  .em-cart-drawer>.em-week-mini-days{flex:0 0 auto!important;margin:9px 0!important}
  .em-cart-drawer>.em-cart-summary{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding:0 2px 16px!important}
  .em-cart-drawer>.em-cart-confirm{position:static!important;flex:0 0 auto!important;margin:0 -14px!important;padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid var(--em-border)!important;box-shadow:0 -8px 18px rgba(23,42,32,.05)!important;z-index:2!important}
  .em-cart-drawer .em-summary-day{padding:9px 0!important}
  .em-cart-drawer .em-summary-line{gap:8px!important;padding:5px 0!important;align-items:center!important}
  .em-cart-drawer .em-summary-line-actions{gap:5px!important}
  .em-cart-drawer .em-summary-line-actions b{font-size:10px!important}
  .em-cart-drawer .em-summary-total{padding:12px 0!important}
  .em-cart-drawer .em-minimum{margin-bottom:6px!important;padding:8px 9px!important}
  .em-close-cart{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;line-height:1!important}

  /* En modo foco el panel sigue siendo el scroller principal; el drawer permanece sobre el viewport. */
  .em-app.is-focus-mode{overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
}

/* v0.7.12 · resumen inferior mobile compacto + bottom sheet */
.em-drawer-grabber{display:none}

@media(max-width:899px){
  .em-sticky-cart{
    pointer-events:none;
  }
  .em-open-cart{
    pointer-events:auto;
    box-sizing:border-box!important;
    min-height:58px!important;
    height:auto!important;
    padding:7px 8px!important;
    border-radius:18px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:0!important;
    text-align:left!important;
    background:#17211c!important;
    color:#fff!important;
    box-shadow:0 12px 30px rgba(10,20,15,.22)!important;
    overflow:hidden!important;
  }
  .em-open-cart>span{display:flex!important}
  .em-sticky-metric{
    min-width:0;
    height:42px;
    padding:2px 12px;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:1px!important;
  }
  .em-sticky-units{padding-left:7px!important;padding-right:13px!important}
  .em-sticky-total{
    border-left:1px solid rgba(255,255,255,.13);
    padding-left:13px!important;
  }
  .em-sticky-metric small{
    margin:0!important;
    color:#aebbb4!important;
    font-size:8px!important;
    line-height:1.1!important;
    font-weight:700!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
  .em-sticky-metric strong{
    display:flex!important;
    align-items:baseline!important;
    gap:4px!important;
    margin:0!important;
    color:#fff!important;
    font-size:15px!important;
    line-height:1.15!important;
    font-weight:850!important;
    letter-spacing:-.015em!important;
    white-space:nowrap!important;
    min-width:0!important;
  }
  .em-sticky-units strong b{
    color:#fff!important;
    font-size:18px!important;
    line-height:1!important;
    font-weight:900!important;
  }
  .em-sticky-units strong em{
    color:#d4ddd8!important;
    font-size:10px!important;
    line-height:1!important;
    font-style:normal!important;
    font-weight:650!important;
  }
  .em-sticky-total .em-cart-total{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  .em-cart-review{
    height:42px!important;
    min-width:74px!important;
    padding:0 10px!important;
    border-radius:13px!important;
    background:rgba(255,255,255,.09)!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    color:#f4f7f5!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
    transition:background .16s ease,color .16s ease,transform .16s ease!important;
  }
  .em-cart-review b{
    display:grid!important;
    place-items:center!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:700!important;
  }
  .em-sticky-cart.has-items .em-cart-review{
    background:#f2f7f4!important;
    color:#173d2f!important;
  }
  .em-open-cart:active .em-cart-review{transform:scale(.97)!important}

  .em-drawer-grabber{
    display:block!important;
    flex:0 0 auto!important;
    width:38px!important;
    height:4px!important;
    border-radius:999px!important;
    background:#d8dfda!important;
    margin:0 auto 10px!important;
  }
}

@media(max-width:599px){
  .em-sticky-cart{
    left:10px!important;
    right:10px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
  }
  .em-open-cart{
    min-height:56px!important;
    border-radius:17px!important;
    padding:6px 7px!important;
  }
  .em-sticky-metric{height:40px;padding-top:1px!important;padding-bottom:1px!important}
  .em-sticky-units{min-width:70px!important}
  .em-sticky-total{padding-right:8px!important}
  .em-sticky-metric strong{font-size:14px!important}
  .em-sticky-units strong b{font-size:17px!important}
  .em-cart-review{height:40px!important;min-width:70px!important;padding:0 8px!important;font-size:9.5px!important}

  /* El bottom sheet conserva el detalle completo, pero se siente más liviano y de app. */
  .em-cart-drawer{
    height:min(90dvh,740px)!important;
    max-height:90dvh!important;
    border-radius:24px 24px 0 0!important;
    padding-top:9px!important;
    box-shadow:0 -18px 48px rgba(13,25,18,.2)!important;
  }
  .em-drawer-head{align-items:flex-start!important;padding-bottom:10px!important}
  .em-drawer-head h3{font-size:19px!important;letter-spacing:-.02em!important}
  .em-drawer-head p{font-size:9.5px!important;max-width:270px!important}
  .em-close-cart{background:#f2f5f3!important;color:#34483d!important;font-size:24px!important}
}

/* v0.8.0 · Precio preferencial, observaciones y disponibilidad diaria */
.em-summary-discount,.em-summary-subtotal{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid #e7ece9}
.em-summary-discount span{display:flex;flex-direction:column;gap:2px}.em-summary-discount small{color:#7b8880;font-size:10px}.em-summary-discount b{color:#16704c;white-space:nowrap}
.em-summary-subtotal span,.em-summary-total span{color:#67766e}.em-summary-subtotal strong{font-size:14px}
.em-customer-observation-box{margin-top:18px;padding:18px;border:1px solid #dce7e1;border-radius:20px;background:#fff}
.em-customer-observation-box h4{margin:4px 0 6px;font-size:18px}.em-customer-observation-box p{margin:0 0 12px;color:#6f7e75;font-size:12px;line-height:1.5}
.em-customer-observation-box textarea{width:100%;min-height:110px;border:1px solid #d9e2dd;border-radius:14px;padding:12px 14px;resize:vertical;background:#fbfcfb}
.em-customer-observation-box .em-primary-action{margin-top:10px;display:inline-flex;border:0;border-radius:12px;padding:11px 16px;background:#1f7553;color:#fff;font-weight:800;cursor:pointer}
.em-toast{display:flex;align-items:center;gap:10px}.em-toast a{color:inherit;text-decoration:underline;font-weight:800;white-space:nowrap}
.em-history-preferred-discount{display:flex;align-items:center;gap:12px;margin:12px 0;padding:11px 14px;border:1px solid #cee6d7;border-radius:14px;background:#f2f8f4}.em-history-preferred-discount span{font-size:11px;color:#6d7c73}.em-history-preferred-discount strong{color:#176947}.em-history-preferred-discount small{margin-left:auto;color:#52645a}

/* v0.8.1 · Historial de observaciones/reclamos del cliente */
.em-observation-history-wrap{margin:14px 0 16px}
.em-observation-history{border:1px solid #e2e9e5;border-radius:16px;background:#f9fbfa;overflow:hidden}
.em-observation-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e7ece9;background:#fff}
.em-observation-history-head strong{font-size:12px;color:#2d4136}.em-observation-history-head small{font-size:10px;color:#7c8a82}
.em-observation-empty{padding:13px;color:#7b8880;font-size:11px}
.em-observation-history-list{display:flex;flex-direction:column;gap:0}
.em-observation-entry{padding:12px 13px;border-bottom:1px solid #e7ece9;background:#fff}.em-observation-entry:last-child{border-bottom:0}
.em-observation-entry-top{display:flex;align-items:center;gap:6px;margin-bottom:7px}.em-observation-entry-top .dashicons{width:16px;height:16px;font-size:16px;color:#c26b28}.em-observation-entry-top strong{font-size:11px;color:#34483d}.em-observation-entry-top time{margin-left:auto;font-size:9px;color:#8a9690;white-space:nowrap}
.em-observation-entry p{margin:0!important;color:#526158!important;font-size:11.5px!important;line-height:1.55!important}
.em-observation-compose{display:block}.em-observation-compose>span{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#405248}
.em-observation-submit-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.em-observation-submit-status{font-size:10.5px;color:#718078}.em-observation-submit-status.is-success{color:#1c7a53}.em-observation-submit-status.is-error{color:#bd3b31}
@media(max-width:640px){.em-observation-entry-top{flex-wrap:wrap}.em-observation-entry-top time{width:100%;margin-left:22px}.em-observation-submit-row .em-primary-action{width:100%;justify-content:center}}

/* 0.8.6 · Sucursales, cantidad editable y alineación fina del header */
.em-branch-switcher{box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 9px;border:1px solid var(--em-border);border-radius:14px;background:#fff;color:var(--em-text);box-shadow:0 2px 10px rgba(18,38,27,.035);cursor:pointer}
.em-branch-switcher>.dashicons:first-child{flex:0 0 17px;width:17px;height:17px;font-size:17px;line-height:17px;color:var(--em-accent)}
.em-branch-switcher>.dashicons:last-child{flex:0 0 13px;width:13px;height:13px;font-size:13px;line-height:13px;color:#78867e;pointer-events:none}
.em-branch-switcher-copy{display:flex;flex-direction:column;gap:0;min-width:0}
.em-branch-switcher-copy>small{font-size:8px;line-height:1.05;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#8a958f}
.em-branch-select{appearance:none!important;-webkit-appearance:none!important;width:auto!important;max-width:185px!important;min-width:105px!important;height:auto!important;min-height:0!important;margin:0!important;padding:1px 1px 0 0!important;border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:#2c3e34!important;font-size:11px!important;line-height:1.35!important;font-weight:850!important;cursor:pointer!important;outline:none!important}
.em-branch-select:focus{outline:none!important;box-shadow:none!important}
.em-history-branch{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:999px;background:#eef6f1;color:#2d654b;font-size:9px!important;font-weight:800!important;white-space:nowrap}

/* Mantiene exactamente la lógica visual de +/- y convierte sólo el número central en un campo editable. */
.em-qty input.em-qty-value{-webkit-appearance:textfield!important;appearance:textfield!important;-moz-appearance:textfield!important;box-sizing:border-box!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0 3px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--em-text)!important;box-shadow:none!important;text-align:center!important;font-size:13px!important;font-weight:850!important;line-height:32px!important;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease!important}
.em-qty input.em-qty-value::-webkit-outer-spin-button,.em-qty input.em-qty-value::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
.em-qty input.em-qty-value:hover{background:#f8faf8!important;border-color:#e3e9e5!important}
.em-qty input.em-qty-value:focus{background:#fff!important;border-color:#9bbbaa!important;box-shadow:0 0 0 3px rgba(31,107,79,.08)!important;outline:none!important}

/* PC: los tres controles del encabezado comparten exactamente la misma línea base. */
@media(min-width:900px){
  .em-app-header{position:relative!important;align-items:center!important}
  .em-header-actions{display:flex!important;align-items:center!important;align-self:center!important;gap:8px!important;margin:0!important;padding:0!important;line-height:1!important}
  .em-focus-toggle,.em-header-link,.em-profile{box-sizing:border-box!important;position:static!important;top:auto!important;transform:none!important;margin:0!important;vertical-align:middle!important}
  .em-focus-toggle,.em-header-link{height:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
  .em-profile{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px!important}
  .em-focus-toggle .dashicons,.em-header-link .dashicons,.em-profile .dashicons{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:static!important;top:auto!important;transform:none!important;margin:0!important;line-height:1!important}
}
@media(min-width:1180px){
  .em-branch-switcher-header{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;z-index:2!important;max-width:230px}
}
@media(min-width:900px) and (max-width:1179px){
  .em-branch-switcher-header{margin-left:auto!important}
  .em-app-title{max-width:42%}
}
@media(max-width:899px){
  .em-app-header{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;column-gap:8px!important;row-gap:9px!important}
  .em-app-title{flex:1 1 calc(100% - 100px)!important;min-width:0!important}
  .em-header-actions{flex:0 0 auto!important}
  .em-branch-switcher-header{order:3!important;flex:0 0 100%!important;width:100%!important;max-width:none!important;justify-content:flex-start!important;min-height:42px!important;padding:5px 10px!important;margin:0!important}
  .em-branch-switcher-header .em-branch-switcher-copy{flex:1!important}
  .em-branch-switcher-header .em-branch-select{width:100%!important;max-width:none!important;font-size:12px!important}
  .em-qty{grid-template-columns:29px 32px 29px!important;width:96px!important;min-width:96px!important;max-width:96px!important;gap:3px!important}
  .em-qty input.em-qty-value{display:block!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:29px!important;min-height:29px!important;padding:0 1px!important;border-radius:7px!important;font-size:12px!important;line-height:27px!important}
}
@media(max-width:599px){
  .em-branch-switcher-header{border-radius:12px!important;box-shadow:none!important}
}


/* 0.8.14 · Trazabilidad de entregas reprogramadas */
.em-reschedule-trace-list{display:flex;flex-direction:column;gap:7px;margin-top:12px}
.em-reschedule-trace{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid #eadfbe;border-radius:12px;background:#fffaf0}
.em-reschedule-trace-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px;color:#9a6b16;margin-top:1px}
.em-reschedule-trace>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}.em-reschedule-trace strong{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#8b6118}.em-reschedule-trace span{font-size:11px;font-weight:800;color:#514329}.em-reschedule-trace small{font-size:9px;color:#948462}
@media(max-width:640px){.em-reschedule-trace>div{display:grid;grid-template-columns:1fr;gap:2px}.em-reschedule-trace small{margin-top:2px}}
