/* Outfit font (global POS) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body.wmpos-theme-light{
  --wmpos-bg:#f6f7fb;
  --wmpos-panel:#ffffff;
  --wmpos-card:#ffffff;
  --wmpos-border:rgba(0,0,0,.10);
  --wmpos-text:rgba(0,0,0,.88);
  --wmpos-muted:rgba(0,0,0,.58);
  --wmpos-primary:#0ea5e9;
  --wmpos-primary2:#16a34a;
  --wmpos-danger:#dc2626;
  --wmpos-radius:14px;
  --wmpos-gap:10px;
  --wmpos-input-bg: rgba(0,0,0,.05);
  --wmpos-input-bg-2: rgba(0,0,0,.10);
  --wmpos-hover: rgba(0,0,0,.08);
  /* Entrega B: sin sombras */
  --wmpos-shadow: none;
  --wmpos-shadow-soft: none;
  --wmpos-focus: rgba(14,165,233,.18);
  /* Light mode: button palette (darker backgrounds + white text) */
  --wmpos-btn-dark: #1f2937;
  --wmpos-btn-dark-hover: #111827;
  /* Botones con contraste (light) */
  --wmpos-btn-primary: #0f172a;
  --wmpos-btn-primary-hover: #0b1220;
  --wmpos-btn-secondary: #166534;
  --wmpos-btn-secondary-hover: #14532d;
  --wmpos-btn-danger: #7f1d1d;
  --wmpos-btn-danger-hover: #6b1414;
  --wmpos-btn-primary: #0b5d7a;
  --wmpos-btn-primary-hover: #064a63;
  --wmpos-btn-dark: #111827;
  --wmpos-btn-dark-hover: #0b1220;
  --wmpos-btn-secondary: #166534;
  --wmpos-btn-secondary-hover: #14532d;
  --wmpos-btn-danger: #b91c1c;
  --wmpos-btn-danger-hover: #991b1b;
}


:root{
  --wmpos-bg:#0b0f14;
  --wmpos-panel:#0f1620;
  --wmpos-card:#121c28;
  --wmpos-border:rgba(255,255,255,.08);
  --wmpos-text:rgba(255,255,255,.92);
  --wmpos-muted:rgba(255,255,255,.62);
  --wmpos-primary:#6ee7ff;
  --wmpos-primary2:#22c55e;
  --wmpos-danger:#ef4444;
  --wmpos-radius:14px;
  --wmpos-gap:10px;
  --wmpos-input-bg: rgba(255,255,255,.06);
  --wmpos-input-bg-2: rgba(255,255,255,.09);
  --wmpos-hover: rgba(255,255,255,.08);
  /* Entrega B: sin sombras */
  --wmpos-shadow: none;
  --wmpos-shadow-soft: none;
  --wmpos-focus: rgba(110,231,255,.25);
  --wmpos-font: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Apply font globally inside the POS */
body.wmpos-kiosk,
body.wmpos-kiosk .wmpos-wrap,
body.wmpos-kiosk .wmpos-wrap *{
  font-family: var(--wmpos-font) !important;
}

/* Theme + native form controls */
body.wmpos-theme-dark{ color-scheme: dark; }
body.wmpos-theme-light{ color-scheme: light; }

.wmpos-wrap select,
.wmpos-wrap input[type="text"],
.wmpos-wrap input[type="number"],
.wmpos-wrap input[type="email"],
.wmpos-wrap textarea{
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
  border: 1px solid var(--wmpos-border);
}

/* Dropdown lists: improve readability across browsers */
body.wmpos-theme-dark .wmpos-wrap select,
body.wmpos-theme-dark .wmpos-wrap option{
  background: #0f1620;
  color: rgba(255,255,255,.92);
}
body.wmpos-theme-light .wmpos-wrap select,
body.wmpos-theme-light .wmpos-wrap option{
  background: #ffffff;
  color: rgba(0,0,0,.88);
}

.wmpos-wrap select:focus,
.wmpos-wrap input:focus,
.wmpos-wrap textarea:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--wmpos-focus);
}
.wmpos-wrap{
  font-family:var(--wmpos-font);
  color:var(--wmpos-text);
}

/* =========================================================
   App header (Entrega A) – retail-like
   ========================================================= */
.wmpos-app-header{
  background: var(--wmpos-panel);
  border: 1px solid var(--wmpos-border);
  border-radius: var(--wmpos-radius);
  box-shadow: none;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.wmpos-app-brand{ display:flex; align-items:center; gap:10px; min-width: 220px; }
.wmpos-app-logo{ height:35px; width:auto; object-fit:contain; display:block; }
.wmpos-app-name{ font-size:16px; font-weight:850; letter-spacing:.2px; }
.wmpos-app-ver{ font-size:12px; font-weight:700; color: var(--wmpos-muted); margin-left:6px; }
.wmpos-app-nav{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.wmpos-navlink{
  appearance:none;
  -webkit-appearance:none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--wmpos-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2px;
  opacity: .9;
  cursor:pointer;
  text-decoration: none;
}
.wmpos-navlink:hover{
  background: transparent !important;
  color: var(--wmpos-text) !important;
  opacity:1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.wmpos-navlink:focus,
.wmpos-navlink:active{
  background: transparent !important;
  color: var(--wmpos-text) !important;
  box-shadow: none !important;
}

.wmpos-shell{
  display:grid;
  /* Kiosk-first: split screen evenly */
  grid-template-columns: 1fr 1fr;
  gap: var(--wmpos-gap);
  align-items:start;
  background: linear-gradient(180deg, rgba(110,231,255,.07), rgba(0,0,0,0) 32%);
  padding: 10px;
  border-radius: var(--wmpos-radius);
  border: 1px solid var(--wmpos-border);
}

/* Light UI should feel clean (no neon gradient frame) */
body.wmpos-theme-light .wmpos-shell{
  background: transparent;
  border: 0;
  padding: 0;
}
@media (max-width: 980px){
  .wmpos-shell{ grid-template-columns: 1fr; }
}

.wmpos-left,.wmpos-right{
  background: var(--wmpos-panel);
  border:1px solid var(--wmpos-border);
  border-radius: var(--wmpos-radius);
  /* allow inner areas to scroll without breaking rounded corners */
  overflow:hidden;
  box-shadow: none;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.wmpos-topbar{
  padding: 14px 16px;
  border-bottom:1px solid var(--wmpos-border);
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.wmpos-title{ display:flex; flex-direction:column; gap:2px; min-width:240px; }
.wmpos-brand{ display:flex; align-items:center; gap:10px; }
.wmpos-logo{ display:flex; align-items:center; justify-content:flex-start; margin:0; }
.wmpos-logo img{ height:35px; width:auto; max-width:180px; object-fit:contain; display:block; }
.wmpos-h1{ font-size:16px; font-weight:850; letter-spacing:.2px; }
.wmpos-ver{ font-size:12px; font-weight:650; opacity:.65; margin-left:8px; }
.wmpos-sub{ font-size:12px; color:var(--wmpos-muted); margin-top:3px; }

.wmpos-actions{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; }

/* Header nav (Retail-like): text buttons, no backgrounds */
.wmpos-btn-nav{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: .2px !important;
  color: var(--wmpos-text) !important;
  opacity: .9;
  text-transform: none !important;
}
.wmpos-btn-nav:hover{
  /* no background + keep text black; only underline */
  background: transparent !important;
  color: var(--wmpos-text) !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Harden header menu: never paint a background or invert colors on hover/active */
.wmpos-btn-nav:focus,
.wmpos-btn-nav:active{
  background: transparent !important;
  color: var(--wmpos-text) !important;
  box-shadow: none !important;
}

.wmpos-search{
  padding: 14px 16px 8px;
  border-bottom: 0;
}

/* Entrega B: search pill (mock-like) */
.wmpos-searchbar{
  position: relative;
  display:flex;
  align-items:center;
}
.wmpos-search-input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  padding-left: 44px !important;
  padding-right: 60px !important;
  font-size: 14px;
  font-weight: 650;
}
.wmpos-search-input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.wmpos-search-ico{
  position:absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  opacity: .55;
  pointer-events:none;
  background: no-repeat center / 18px 18px;
  /* inline svg */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
}
.wmpos-kbd{
  position:absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  color: rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(0,0,0,.02);
  pointer-events:none;
}

.wmpos-tabs{ display:flex; gap:8px; margin-bottom:10px; }
.wmpos-tab{
  flex:1;
  border:1px solid var(--wmpos-border);
  background: rgba(255,255,255,.03);
  color: var(--wmpos-text);
  border-radius: 12px;
  padding: 9px 10px;
  font-weight: 850;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.wmpos-tab:hover{ background: var(--wmpos-input-bg-2); }
.wmpos-tab-active{
  border-color: rgba(110,231,255,.45);
  box-shadow: none;
}

.wmpos-cat-grid{
  /* Entrega B (ajustada): grilla de familias (sin scroll horizontal) */
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding: 6px 2px 14px;
}


.wmpos-cat{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--wmpos-border);
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  cursor:pointer;
  color: var(--wmpos-text);
  position: relative;
  display:block;
  min-height: 140px;
  text-align:left;
  transition: background .12s ease, border-color .12s ease;
  overflow: hidden;
}
.wmpos-cat::before,
.wmpos-cat::after{
  content:none !important;
}
.wmpos-cat:hover{ border-color: rgba(2,132,199,.45); }
.wmpos-cat-thumb{
  position:absolute;
  inset:0;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wmpos-cat-thumb img{
  width:100%;
  height:100%;
  /* La imagen debe cubrir el tile completo (tipo mockup) */
  object-fit: cover;
  object-position: center;
  display:block;
}
.wmpos-cat-ph{
  width:64px;
  height:64px;
  border-radius: 999px;
  border: 1px solid var(--wmpos-border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: var(--wmpos-muted);
  background: var(--wmpos-input-bg);
}
.wmpos-cat-name{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 10px 12px;
  background: rgba(0,0,0,.7);
  color:#fff;
  text-align:center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wmpos-catbar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}
.wmpos-catbar #wmposBackCats{
  border-radius: 999px;
  padding: 10px 14px;
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  font-weight: 800;
}
.wmpos-catbar #wmposBackCats:hover{
  background: #111c30;
  border-color: #111c30;
}
.wmpos-catbar-title{ font-weight: 1000; font-size: 14px; }
.wmpos-input,.wmpos-select,.wmpos-textarea{
  width:100%;
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
  border: 1px solid var(--wmpos-border);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}

/*
 * FIX: Native <select> dropdowns can render text incorrectly when vertical padding is applied
 * (varies by browser/OS, especially Chrome/Edge). We keep the control height consistent but
 * remove vertical padding.
 */
.wmpos-wrap select,
.wmpos-select{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* keep some horizontal breathing room */
  padding-left: 12px !important;
  padding-right: 34px !important;
  height: 44px;
  line-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Options list: allow padding there (it does not break rendering) */
.wmpos-wrap select option{
  padding: 6px 10px;
}
.wmpos-input::placeholder,.wmpos-textarea::placeholder{ color: rgba(255,255,255,.38); }
.wmpos-input:focus,.wmpos-select:focus,.wmpos-textarea:focus{
  border-color: rgba(110,231,255,.45);
  box-shadow: 0 0 0 3px rgba(110,231,255,.12);
}

.wmpos-muted{ color: var(--wmpos-muted); font-size:12px; margin-top:6px; }
.wmpos-results{ padding: 12px 14px; }
.wmpos-results{ padding: 10px 12px; }
.wmpos-left .wmpos-results{
  flex:1;
  min-height:0;
  overflow:auto;
}
.wmpos-empty{ padding: 18px 12px; color: var(--wmpos-muted); background: rgba(255,255,255,.03); border:1px dashed var(--wmpos-border); border-radius: 12px; text-align:center; }

/* Products grid (Retail Pro style) */
.wmpos-products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
}
@media (max-width: 520px){
  .wmpos-products-grid{ grid-template-columns: 1fr; }
}
.wmpos-products-grid .wmpos-card{ margin-bottom:0; }

/* Product cards (compact horizontal card like the mock) */
.wmpos-product-card{
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}
.wmpos-product-card:hover{ background: #fff; border-color: rgba(37,99,235,.30); }
.wmpos-product-card:active{ transform: translateY(0); }

.wmpos-product-card .wmpos-pimg{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wmpos-border);
  background: #f8fafc;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wmpos-product-card .wmpos-pimg img{ width:100%; height:100%; object-fit:cover; display:block; }
.wmpos-product-card .wmpos-pimg-ph{ width:100%; height:100%; }

.wmpos-product-card .wmpos-pbody{ min-width: 0; flex: 1 1 auto; }
.wmpos-product-card .wmpos-card-title{ font-weight: 400; font-size: 14px; line-height: 1.15; }
.wmpos-pdesc{ color: var(--wmpos-muted); font-size: 12px; margin-top: 2px; line-height: 1.2; }
.wmpos-product-card .wmpos-pmeta{ display:none; }

.wmpos-product-card .wmpos-pfoot{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 0;
}
.wmpos-product-card .wmpos-price{
  color: var(--wmpos-accent);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
  margin-top: 6px;
}
.wmpos-product-card .wmpos-price *{ white-space: nowrap; }
.wmpos-product-card .wmpos-price-regular{ opacity: .7; font-weight: 600; }
.wmpos-product-card .wmpos-price-sale{ font-weight: 900; }
.wmpos-product-card .wmpos-pbtn{ display:flex; align-items:center; }
.wmpos-product-card .wmpos-pbtn .wmpos-btn{
  /* + button (Retail-style): pill + inner circle */
  border-radius: 90px;
  width: 42px;
  height: 42px;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.wmpos-product-card .wmpos-pbtn .wmpos-btn::before{
  content:"";
  position:absolute;
  inset: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  z-index: 0;
  pointer-events:none;
}
.wmpos-product-card .wmpos-pbtn .wmpos-btn span,
.wmpos-product-card .wmpos-pbtn .wmpos-btn svg{
  position: relative;
  z-index: 1;
}

.wmpos-card{
  display:flex;
  gap:10px;
  padding: 9px;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-card);
  border-radius: 14px;
  margin-bottom:10px;
  align-items:center;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.wmpos-card:hover{ background: var(--wmpos-hover); }
.wmpos-card:active{ transform: translateY(1px); }
.wmpos-card.is-disabled{
  opacity:.55;
}
.wmpos-card.is-disabled .wmpos-btn{ pointer-events:none; }
.wmpos-card-title{ cursor:pointer; }
.wmpos-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size:11px;
  font-weight:900;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
  color: var(--wmpos-muted);
}
.wmpos-badge-danger{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.30);
  color: rgba(255,255,255,.85);
}
.wmpos-badge-info{
  background: rgba(110,231,255,.12);
  border-color: rgba(110,231,255,.28);
  color: rgba(255,255,255,.85);
}

.wmpos-var-panel{
  margin-top:10px;
  padding:10px;
  border-radius: 14px;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
}
.wmpos-var-panel .wmpos-select{
  width:100%;
  background: #fff !important;
  border:1px solid var(--wmpos-border) !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  /* Avoid vertical padding that breaks native select rendering */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 12px !important;
  padding-right: 34px !important;
  height: 44px !important;
  line-height: 44px !important;
  appearance: auto;
  -webkit-appearance: auto;
  background-image: none !important;
}
.wmpos-var-panel .wmpos-select:focus{
  outline: none;
  border-color: rgba(110,231,255,.45) !important;
  box-shadow: 0 0 0 3px rgba(110,231,255,.12);
}
.wmpos-var-row{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 420px){
  .wmpos-var-row{ grid-template-columns: 1fr; }
}
.wmpos-var-actions{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.wmpos-var-actions .wmpos-price{ font-size:14px; }
.wmpos-card img{
  width:46px; height:46px; border-radius: 12px; object-fit:cover;
  border:1px solid var(--wmpos-border);
  background: rgba(255,255,255,.03);
}
.wmpos-card-title{ font-weight:700; font-size:14px; line-height:1.2; }
.wmpos-card-meta{ color: var(--wmpos-muted); font-size:12px; margin-top:2px; }
.wmpos-card-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.wmpos-price{ font-weight:800; font-size:13px; }
.wmpos-btn{
  appearance:none; border:1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
  border-radius: 12px;
  padding: 9px 11px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  line-height: 1;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.wmpos-btn:active{ transform: translateY(1px); }

/* POS modal add button (replaces Woo native add-to-cart in modal) */
.wmpos-modal-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.wmpos-modal-actions .quantity{
  margin:0;
}
.wmpos-modal-add{
  margin-top: 0;
  width: auto;
  min-width: 220px;
}
.wmpos-btn:hover{ background: var(--wmpos-input-bg-2); }
.wmpos-btn-primary{
  background: rgba(110,231,255,.16);
  border-color: rgba(110,231,255,.35);
}
.wmpos-btn-outline{
  background: transparent;
  border-color: rgba(15,23,42,.25);
  color: #0f172a;
}
.wmpos-btn-outline:hover{
  background: rgba(15,23,42,.06);
}
.wmpos-btn-icon{
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 90px;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.wmpos-btn-icon:hover{
  background: #111c30;
  border-color: #111c30;
}
.wmpos-btn-secondary{
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.32);
}
.wmpos-btn-ghost{
  background: transparent;
}
.wmpos-btn-danger{
  background: rgba(239,68,68,.16);
  border-color: rgba(239,68,68,.35);
}

/* In kiosk we manage layout with full-height columns; sticky can clip content */
.wmpos-right{ position: relative; top:auto; }

.wmpos-cart-header{
  padding: 12px;
  border-bottom:1px solid var(--wmpos-border);
  display:flex; align-items:center; justify-content:space-between;
}
.wmpos-cart-title{ font-size:16px; font-weight:800; }
.wmpos-cart-items{
  padding: 10px 12px;
  max-height: 30vh;
  overflow:auto;
  flex: 0 0 auto;
}
.wmpos-cart-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  padding: 9px;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-hover);
  border-radius: 14px;
  margin-bottom:8px;
}
.wmpos-ci-name{ font-weight:750; font-size:13px; }
.wmpos-ci-extras{ margin-top:6px; }
.wmpos-ci-extra-title{ font-size:12px; font-weight:750; color: var(--wmpos-text); margin-top:2px; }
.wmpos-ci-extra{ font-size:12px; color: var(--wmpos-text); margin-left: 12px; margin-top:2px; }
.wmpos-ci-meta{ color: var(--wmpos-muted); font-size:12px; margin-top:3px; }
.wmpos-ci-editors{ margin-top:8px; display:none; flex-direction:column; gap:8px; }
.wmpos-cart-item.is-editing .wmpos-ci-editors{ display:flex; }
.wmpos-ci-edit-row{ display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; }
.wmpos-ci-field{ display:flex; flex-direction:column; gap:4px; min-width:130px; flex:1 1 140px; }
.wmpos-ci-field-note{ min-width:100%; }
.wmpos-ci-help{ margin-top:4px; font-size:11px; opacity:.72; }
.wmpos-ci-label{ font-size:11px; font-weight:700; color: var(--wmpos-muted); }
.wmpos-ci-field input,
.wmpos-ci-field textarea{
  width:100%;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
  border-radius:12px;
  padding:8px 10px;
  font-size:12px;
}
.wmpos-ci-field textarea{ resize:vertical; min-height:52px; }
.wmpos-order-item-note{ margin-top:6px; font-size:12px; opacity:.92; }
.wmpos-qty{
  display:flex; align-items:center; gap:6px;
}
.wmposEditItem{
  min-width:40px;
  width:40px;
  height:40px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:800;
}
.wmposEditItem.is-active{
  color: var(--wmpos-text);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}
.wmposEditItem.has-value:not(.is-active){
  border-color: rgba(34,197,94,.35);
}
.wmpos-qty input{
  width:58px;
  text-align:center;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
}
.wmpos-summary{
  padding: 10px 12px;
  border-top:1px solid var(--wmpos-border);
  border-bottom:1px solid var(--wmpos-border);
  background: rgba(255,255,255,.02);
}
.wmpos-row{ display:flex; align-items:center; justify-content:space-between; padding: 6px 0; }
.wmpos-row-small{ color: var(--wmpos-muted); font-size:12px; }
.wmpos-row-total{ font-size:16px; font-weight:900; padding-top:10px; }
.wmpos-summary .wmpos-row strong{ display:block; text-align:right; min-width: 120px; }
.wmpos-summary .wmpos-row span{ display:block; }

.wmpos-checkout{
  /* Leave room for the sticky action bar */
  padding: 10px 12px 104px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow:auto;
}
.wmpos-checkout-cards{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wmpos-card{
  border:1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
  border-radius: 16px;
  padding: 12px;
}
.wmpos-card-title{
  font-size:12px;
  font-weight: 900;
  color: var(--wmpos-muted);
  margin: 0 0 10px 0;
}
.wmpos-card-summary{
  margin: 10px 12px 0;
  border-top: 1px solid var(--wmpos-border);
  border-bottom: 1px solid var(--wmpos-border);
}
/* summary as a card (override legacy summary borders/background) */
.wmpos-summary.wmpos-card{
  border: 1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
  border-top: 1px solid var(--wmpos-border);
  border-bottom: 1px solid var(--wmpos-border);
}
.wmpos-summary.wmpos-card .wmpos-row-total{
  font-size: 18px;
}
.wmpos-summary.wmpos-card .wmpos-row-total strong{
  font-size: 22px;
}
.wmpos-field{ margin-bottom: 10px; }
.wmpos-label{ display:block; margin-bottom:6px; color: var(--wmpos-muted); font-size:12px; }
.wmpos-required{ color: #ff6b6b; font-weight: 900; margin-left: 2px; }
.wmpos-invalid{ border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255,107,107,.18) !important; }
.wmpos-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 420px){
  .wmpos-grid{ grid-template-columns: 1fr; }
}
.wmpos-cta{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top: 12px; }
.wmpos-toast{
  margin-top: 10px;
  font-size: 12px;
  color: var(--wmpos-muted);
  min-height: 18px;
}

/* Sticky action bar inside right panel (kiosk) */
.wmpos-right-actions{
  position: sticky;
  bottom: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
  backdrop-filter: none;
  box-shadow: none;
  display:flex;
  gap:10px;
  align-items:center;
}
.wmpos-btn-wide{
  flex: 1 1 auto;
  justify-content:center;
}
.wmpos-right-actions .wmpos-toast{
  margin-top: 0;
  min-height: 0;
  flex: 0 0 auto;
}


/* Inline controls (coupon / discount) */
.wmpos-divider{
  height:1px;
  background: var(--wmpos-border);
  margin: 10px 0;
}
.wmpos-inline{
  display:flex;
  gap:10px;
  align-items:center;
}
.wmpos-btn-sm{
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1;
  border-radius: 12px;
  white-space:nowrap;
}
.wmpos-btn-ghost{
  background: transparent;
  border: 1px solid var(--wmpos-border);
  color: var(--wmpos-muted);
}
.wmpos-btn-ghost:hover{
  color: var(--wmpos-text);
  border-color: rgba(255,255,255,.14);
}
.wmpos-select-sm{
  width: 78px;
  min-width: 78px;
}
.wmpos-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}
.wmpos-chip{
  appearance:none;
  border:1px solid rgba(110,231,255,.22);
  background: rgba(110,231,255,.08);
  color: var(--wmpos-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor:pointer;
}
.wmpos-chip:hover{
  background: rgba(110,231,255,.12);
}
.wmpos-chip-x{
  opacity:.75;
  margin-left:6px;
}

/* Modal (extras/customizations) */
.wmpos-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999999;
}
.wmpos-modal.is-open{ display:flex; }
.wmpos-modal-card{
  width: min(720px, 100%);
  max-height: min(82vh, 740px);
  overflow: hidden;
  border: 1px solid var(--wmpos-border);
  border-radius: 16px;
  background: var(--wmpos-panel);
  color: var(--wmpos-text);
  box-shadow: none;
  display:flex;
  flex-direction: column;
}

.wmpos-modal-card-wide{
  width: min(980px, 100%);
}

.wmpos-modal-foot{
  display:flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--wmpos-border);
  justify-content: flex-end;
}

.wmpos-order-meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.wmpos-order-box{
  border: 1px solid var(--wmpos-border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}
.wmpos-order-box h3{
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 800;
}
.wmpos-order-kv{ font-size: 13px; line-height: 1.25; }
.wmpos-order-kv strong{ font-weight: 800; }

.wmpos-order-items{ margin-top: 12px; }
.wmpos-order-item{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wmpos-border);
}
.wmpos-order-item:last-child{ border-bottom:0; }
.wmpos-order-item-name{ font-weight: 800; }
.wmpos-order-item-meta{ margin-top: 6px; }
.wmpos-order-item-meta div{ font-size: 12px; opacity: .85; }

/* Orders modal */
.wmpos-orders-toolbar{ display:flex; flex-direction:column; gap:10px; }
.wmpos-orders-filters{ display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.wmpos-orders-table-wrap{ margin-top: 8px; }
.wmpos-orders-table{ width:100%; border-collapse: collapse; }
.wmpos-orders-table th, .wmpos-orders-table td{ padding:10px 10px; border-bottom:1px solid var(--wmpos-border); }
.wmpos-orders-table thead th{ position:sticky; top:0; background: var(--wmpos-panel); z-index:1; }
.wmpos-orders-table tbody tr:hover{ background: var(--wmpos-hover); }
.wmpos-orders-submeta{margin-top:4px;font-size:11px;line-height:1.25;color:var(--wmpos-muted)}
.wmpos-order-status-chip{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;border:1px solid #dbe3ea;background:#f8fafc;color:#334155}
.wmpos-order-cash-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;border:1px solid transparent;white-space:nowrap}
.wmpos-order-cash-pill.is-impacted{background:#ecfdf3;color:#166534;border-color:#b7ebc8}
.wmpos-order-cash-pill.is-reversed{background:#fff1f2;color:#9f1239;border-color:#fecdd3}
.wmpos-order-cash-pill.is-neutral{background:#eef2f6;color:#52606d;border-color:#d7dee6}
.wmpos-order-cash-pill.is-external{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.wmpos-orders-meta-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;margin-left:4px;border:1px solid transparent}
.wmpos-orders-meta-pill.is-impacted{background:#ecfdf3;color:#166534;border-color:#b7ebc8}
.wmpos-orders-meta-pill.is-reversed{background:#fff1f2;color:#9f1239;border-color:#fecdd3}
.wmpos-orders-meta-pill.is-neutral{background:#eef2f6;color:#52606d;border-color:#d7dee6}
.wmpos-orders-print-th{width:165px;text-align:right;}
.wmpos-orders-print-cell{text-align:right;white-space:nowrap;}
.wmpos-orders-print-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;white-space:nowrap;}
.wmpos-orders-print-actions .wmpos-btn-sm{padding:8px 10px;font-size:11px;letter-spacing:.6px;border-radius:10px;gap:4px;}
.wmpos-orders-sort{ background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; letter-spacing:.2px; }
.wmpos-orders-sort:hover{ text-decoration: underline; }
.wmpos-modal-head{
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wmpos-border);
}
.wmpos-modal-title{ font-weight:800; }
.wmpos-modal-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--wmpos-border);
  background: var(--wmpos-input-bg);
  color: var(--wmpos-text);
  cursor: pointer;
}
.wmpos-modal-close:hover{ background: var(--wmpos-input-bg-2); }
.wmpos-modal-body{
  padding: 12px;
  overflow:auto;
}
.wmpos-modal-product .single_add_to_cart_button{
  width: 100%;
  border-radius: 14px;
}
.wmpos-modal-product .variations{
  width: 100%;
}


/* Light theme: buttons need contrast (dark bg + white text) */
body.wmpos-theme-light .wmpos-btn{
  background: var(--wmpos-btn-dark);
  border-color: var(--wmpos-btn-dark);
  color: #fff;
}
body.wmpos-theme-light .wmpos-btn:hover{
  background: var(--wmpos-btn-dark-hover);
  border-color: var(--wmpos-btn-dark-hover);
  color: #fff;
}
body.wmpos-theme-light .wmpos-btn-primary{
  background: var(--wmpos-btn-primary);
  border-color: var(--wmpos-btn-primary);
}
body.wmpos-theme-light .wmpos-btn-primary:hover{
  background: var(--wmpos-btn-primary-hover);
  border-color: var(--wmpos-btn-primary-hover);
}
body.wmpos-theme-light .wmpos-btn-secondary{
  background: var(--wmpos-btn-secondary);
  border-color: var(--wmpos-btn-secondary);
}
body.wmpos-theme-light .wmpos-btn-secondary:hover{
  background: var(--wmpos-btn-secondary-hover);
  border-color: var(--wmpos-btn-secondary-hover);
}
body.wmpos-theme-light .wmpos-btn-danger{
  background: var(--wmpos-btn-danger);
  border-color: var(--wmpos-btn-danger);
}
body.wmpos-theme-light .wmpos-btn-danger:hover{
  background: var(--wmpos-btn-danger-hover);
  border-color: var(--wmpos-btn-danger-hover);
}
body.wmpos-theme-light .wmpos-cat:hover{ background: var(--wmpos-input-bg-2); }
body.wmpos-theme-light .wmpos-tab:hover{ background: var(--wmpos-input-bg-2); }

/* Light theme: sticky footer + subtle surfaces */
body.wmpos-theme-light .wmpos-right-actions{
  background: rgba(255,255,255,.86);
  box-shadow: 0 -10px 22px rgba(0,0,0,.08);
}
body.wmpos-theme-light .wmpos-summary{ background: rgba(0,0,0,.02); }

/* Light theme: variable product panel */
body.wmpos-theme-light .wmpos-var-panel{ background: var(--wmpos-input-bg); }
body.wmpos-theme-light .wmpos-var-panel .wmpos-select{
  background: #ffffff !important;
  color: rgba(0,0,0,.88) !important;
  border-color: var(--wmpos-border) !important;

  /* IMPORTANT: avoid browser weird tiling / misplaced text */
  padding: 0 !important;
  padding-left: 12px !important;
  padding-right: 34px !important;
  height: 44px !important;
  line-height: 44px !important;

  /* Chrome/Edge sometimes tiles custom background-images in <select>.
     In light mode we keep it native to avoid "flechas" repeated. */
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  background-image: none !important;
}


/* Light: buttons with strong contrast (dark background + white text) */
body.wmpos-theme-light .wmpos-btn,
body.wmpos-theme-light button.wmpos-btn{
  background: var(--wmpos-btn-dark) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
body.wmpos-theme-light .wmpos-btn:hover,
body.wmpos-theme-light button.wmpos-btn:hover{
  background: var(--wmpos-btn-dark-hover) !important;
}

body.wmpos-theme-light .wmpos-btn-primary,
body.wmpos-theme-light button.wmpos-btn-primary{
  background: var(--wmpos-btn-primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
body.wmpos-theme-light .wmpos-btn-primary:hover,
body.wmpos-theme-light button.wmpos-btn-primary:hover{
  background: var(--wmpos-btn-primary-hover) !important;
}

/* Make "ELEGIR/AGREGAR/OPCIONES/APROBAR" readable in light */
body.wmpos-theme-light .wmpos-product-actions .wmpos-btn,
body.wmpos-theme-light .wmpos-product-actions .wmpos-btn-primary,
body.wmpos-theme-light .wmpos-actions .wmpos-btn-primary{
  color:#fff !important;
}

/* =========================================================
   Retail Pro POS inspired UI (light + dark)
   Goal: modern, compact, “app-like” while keeping the same markup.
   ========================================================= */

/* Shared tokens */
body.wmpos-theme-light{
  --wmpos-bg: #f5f7fb;
  --wmpos-panel: #ffffff;
  --wmpos-panel-2: #fbfcff;
  --wmpos-border: #e6eaf2;
  --wmpos-text: #0f172a;
  --wmpos-muted: #64748b;
  --wmpos-input-bg: #ffffff;
  --wmpos-accent: #2563eb;
  --wmpos-accent-hover: #1d4ed8;
  --wmpos-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --wmpos-shadow-sm: 0 6px 16px rgba(15, 23, 42, .08);
  --wmpos-radius: 16px;
}

body.wmpos-theme-dark{
  --wmpos-accent: #22c55e;
  --wmpos-accent-hover: #16a34a;
  --wmpos-radius: 16px;
}

/* App canvas */
body.wmpos-theme-light .wmpos-wrap{
  background: var(--wmpos-bg);
}
body.wmpos-theme-light .wmpos-shell{
  gap: 16px;
  padding: 16px;
}
body.wmpos-theme-light .wmpos-left,
body.wmpos-theme-light .wmpos-right{
  border-radius: var(--wmpos-radius);
  background: var(--wmpos-panel);
  box-shadow: none;
  border: 1px solid var(--wmpos-border);
}

/* Topbar: compact, pill buttons */
body.wmpos-theme-light .wmpos-topbar{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--wmpos-border);
  background: linear-gradient(180deg, var(--wmpos-panel), var(--wmpos-panel-2));
}
body.wmpos-theme-light .wmpos-h1{ font-size: 18px; font-weight: 900; }
body.wmpos-theme-light .wmpos-sub{ color: var(--wmpos-muted); }
body.wmpos-theme-light .wmpos-actions{ gap: 8px; }
body.wmpos-theme-light .wmpos-actions .wmpos-btn{
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
body.wmpos-theme-light .wmpos-actions .wmpos-btn:hover{ background:#0b1220; border-color:#0b1220; }

/* Search */
body.wmpos-theme-light .wmpos-search{ padding: 12px 14px 6px; }
body.wmpos-theme-light .wmpos-input{
  border-radius: 14px;
  border: 1px solid var(--wmpos-border);
  background: #fff;
  box-shadow: none;
}
body.wmpos-theme-light .wmpos-input:focus{
  border-color: rgba(37,99,235,.40);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

/* Categories as “chips” row */
body.wmpos-theme-light .wmpos-cat-grid{ padding: 10px 14px 14px; }
body.wmpos-theme-light .wmpos-cat{ box-shadow: none; }

/* Variable product chooser panel (light) */
body.wmpos-theme-light .wmpos-var-panel{
  background: #f3f5fb;
  border-color: var(--wmpos-border);
}
body.wmpos-theme-light .wmpos-var-panel .wmpos-select{
  background: #fff !important;
  color: var(--wmpos-text) !important;
  border-color: var(--wmpos-border) !important;
  /* Chrome sometimes tiles custom SVG backgrounds on <select> in light mode.
     We prefer the native arrow to avoid the "many little chevrons" bug. */
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: auto !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  padding: 0 12px !important;
  height: 44px !important;
  line-height: 44px !important;
}

/* Badges (light) */
body.wmpos-theme-light .wmpos-badge-info{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.22);
  color: var(--wmpos-accent);
}
body.wmpos-theme-light .wmpos-badge-danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.22);
  color: #b91c1c;
}
body.wmpos-theme-light .wmpos-cat:hover{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 10px 20px rgba(37,99,235,.10);
}
body.wmpos-theme-light .wmpos-cat-name{ font-weight: 900; font-size: 12px; letter-spacing:.02em; }
body.wmpos-theme-light .wmpos-cat-meta{ color: var(--wmpos-muted); font-size: 11px; }

/* Product cards: clean, modern */
body.wmpos-theme-light .wmpos-products-grid{
  padding: 12px 14px 16px;
  gap: 14px;
}
body.wmpos-theme-light .wmpos-card{
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--wmpos-border);
  box-shadow: var(--wmpos-shadow-sm);
}
body.wmpos-theme-light .wmpos-card:hover{ box-shadow: 0 14px 30px rgba(15,23,42,.10); }
body.wmpos-theme-light .wmpos-card img{
  width: 54px; height: 54px;
  border-radius: 14px;
  border-color: var(--wmpos-border);
}
body.wmpos-theme-light .wmpos-price{ color: var(--wmpos-accent); font-weight: 900; }

/* Primary buttons: blue + white */
body.wmpos-theme-light .wmpos-btn-primary,
body.wmpos-theme-light button.wmpos-btn-primary{
  background: var(--wmpos-accent) !important;
  border-color: var(--wmpos-accent) !important;
  color: #fff !important;
}
body.wmpos-theme-light .wmpos-btn-primary:hover,
body.wmpos-theme-light button.wmpos-btn-primary:hover{
  background: var(--wmpos-accent-hover) !important;
  border-color: var(--wmpos-accent-hover) !important;
}

/* Right sidebar */
body.wmpos-theme-light .wmpos-cart-header{
  padding: 14px;
  border-bottom: 1px solid var(--wmpos-border);
}
body.wmpos-theme-light .wmpos-summary{
  margin: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--wmpos-border);
  background: #fff;
}
body.wmpos-theme-light .wmpos-row-total strong{ color: var(--wmpos-accent); }

/* “Approve” CTA */
body.wmpos-theme-light #wmposApprove.wmpos-btn-primary,
body.wmpos-theme-light #wmposApprove{
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 900;
}

/* Selects – kill repeated arrows everywhere */
body.wmpos-theme-light select,
body.wmpos-theme-light .wmpos-select{
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
}
body.wmpos-theme-dark select,
body.wmpos-theme-dark .wmpos-select{
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
}

/* Inline variations (variable products) */
.wmpos-var-slot{ display:none; padding: 6px 0 0; }
.wmpos-var-slot.is-open{ display:block; }
.wmpos-var-buttons{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.wmpos-var-btn{
  appearance:none;
  border:1px solid var(--wmpos-border);
  background: #ffffff;
  color: var(--wmpos-text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.wmpos-var-name{ font-size: 12px; font-weight: 600; line-height: 1.05; }
.wmpos-var-price{ font-size: 11px; font-weight: 600; color: var(--wmpos-primary); line-height: 1; }
.wmpos-var-btn:hover{
  /* keep clean/neutral (no orange hover) */
  background: #ffffff;
  border-color: var(--wmpos-border);
  color: var(--wmpos-text);
}

.wmpos-var-btn:focus,
.wmpos-var-btn:active{
  background: #ffffff;
  border-color: var(--wmpos-border);
  color: var(--wmpos-text);
  box-shadow: none;
  outline: none;
}
.wmpos-var-btn.is-disabled,
.wmpos-var-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.wmpos-var-btn small{ opacity:.8; font-weight:600; margin-left:6px; }
/* no second hover override */
.wmpos-var-btn.is-disabled{ opacity:.4; cursor:not-allowed; }
.wmpos-var-hint{ margin-top:6px; font-size:12px; opacity:.75; }

body.wmpos-theme-dark .wmpos-var-btn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
body.wmpos-theme-dark .wmpos-var-btn:hover{ border-color: var(--wmpos-accent); }



/* ===== Checkout Tabs (Pedido / Cliente / Envío) ===== */
.wmpos-tabs-header{gap:12px;}
.wmpos-tabs{display:flex;align-items:stretch;gap:10px;flex:1;}
.wmpos-tab{appearance:none;border:1px solid #e6e9ef;background:#fff;border-radius:12px;padding:10px 14px;font-weight:600;letter-spacing:.2px;cursor:pointer;}
.wmpos-tab:hover{background:#fff;}
.wmpos-tab.is-active{border-color:#0f172a;}
.wmpos-tabpanes{min-height:0;display:block;}
.wmpos-tabpane{display:none;min-height:0;}
.wmpos-tabpane.is-active{display:block;}

/* Ship mode chips */
.wmpos-shipmode{display:flex;gap:10px;margin:6px 0 12px;}
.wmpos-chip{appearance:none;border:1px solid #e6e9ef;background:#fff;border-radius:999px;padding:10px 14px;font-weight:600;cursor:pointer;}
.wmpos-chip:hover{background:#fff;}
.wmpos-chip.is-active{border-color:#0f172a;}

/* Payment sticky block */
.wmpos-pay-sticky{position:sticky;bottom:55px; /* above confirm button */
  background:#fff;border:1px solid #e6e9ef;border-radius:16px;padding:12px 12px 10px;box-shadow:0 8px 24px rgba(15,23,42,.06);}
.wmpos-pay-title{font-weight:700;margin:0 0 8px;}
.wmpos-pay-radios{display:flex;flex-wrap:wrap;gap:10px;}
.wmpos-pay-opt{display:flex;align-items:center;gap:8px;border:1px solid #e6e9ef;border-radius:999px;padding:10px 12px;cursor:pointer;background:#fff;user-select:none;}
.wmpos-pay-opt:hover{background:#fff;}
.wmpos-pay-opt input{accent-color:#0f172a;}

/* Help text */
.wmpos-help{font-size:12px;color:#64748b;margin-top:6px;}


/* --- Imported retail checkout dock styles (from v0.5.10.43) --- */
.wmpos-summary-dock{
  margin: 0;
}
/* summary as a card (override legacy summary borders/background) */
.wmpos-summary.wmpos-card{
  border: 1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
  border-top: 1px solid var(--wmpos-border);
  border-bottom: 1px solid var(--wmpos-border);
}
.wmpos-summary.wmpos-card .wmpos-row-total{
  font-size: 16px;
}
.wmpos-summary.wmpos-card .wmpos-row-total strong{
  font-size: 20px;
}
.wmpos-field{ margin-bottom: 10px; }
.wmpos-label{ display:block; margin-bottom:6px; color: var(--wmpos-muted); font-size:12px; }
.wmpos-required{ color: #ff6b6b; font-weight: 900; margin-left: 2px; }
.wmpos-invalid{ border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255,107,107,.18) !important; }
.wmpos-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 420px){
  .wmpos-grid{ grid-template-columns: 1fr; }
}
.wmpos-cta{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top: 12px; }
.wmpos-toast{
  margin-top: 10px;
  font-size: 12px;
  color: var(--wmpos-muted);
  min-height: 18px;
}




/* Promo badge */
.wmpos-product-card .wmpos-promo-badge{
  position:absolute;
  top:6px;
  left:6px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
  /* WhatsApp green */
  background:#25D366;
  color:#fff;
}


/* Stronger hover contrast for chips/tabs */
.wmpos-chip:hover{background:#e5e7eb;border-color:#94a3b8;}

.wmpos-summary.wmpos-card{padding:10px 12px;}
.wmpos-pay-sticky{padding:10px 12px 8px;}
.wmpos-right-actions{padding:10px 12px;gap:10px;}


/* === FIX: right dock layout (totals + pay) === */
.wmpos-summary-dock{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}
.wmpos-summary.wmpos-card,
.wmpos-pay-sticky{
  width:100%;
  box-sizing:border-box;
}

/* === Compact "Opciones" tab (discount/coupons) to save height === */
.wmpos-tabpane[data-tab="opciones"] .wmpos-field{ margin-bottom: 6px; }
.wmpos-tabpane[data-tab="opciones"] .wmpos-inline{ gap: 6px; }
.wmpos-tabpane[data-tab="opciones"] .wmpos-label{ margin-bottom: 4px; }
.wmpos-tabpane[data-tab="opciones"] .wmpos-chips{ margin-top: 6px; }
.wmpos-tabpane[data-tab="opciones"] .wmpos-input,
.wmpos-tabpane[data-tab="opciones"] .wmpos-select{
  height: 34px;
}
.wmpos-tabpane[data-tab="opciones"] .wmpos-btn-ghost{
  padding: 8px 12px;
  height: 34px;
}

/* === Cliente picker (small, fits inside Cliente tab) === */
.wmpos-input-sm{
  height: 34px;
  font-size: 12px;
  padding: 8px 10px;
}
.wmpos-custpicker{
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
}
.wmpos-custpicker-head{ margin-bottom: 8px; display:flex; gap:8px; align-items:center; }
#wmposCustomerSearch{ flex:1; min-width: 0; }
.wmpos-custpicker-list{
  max-height: 210px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 6px;
}

/* Inline create customer (Cliente tab) */
.wmpos-custcreate{
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.wmpos-grid.wmpos-grid-sm{ gap: 8px; }
.wmpos-cust-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.wmpos-cust-row:hover{ background: rgba(255,255,255,.06); }
.wmpos-cust-name{ font-size: 12px; font-weight: 600; line-height: 1.2; }
.wmpos-cust-sub{ font-size: 11px; opacity: .75; line-height: 1.2; }
.wmpos-empty-sm{ padding: 10px; font-size: 12px; }


.wmpos-pay-note{font-size:12px;margin-top:6px;color:#6b7280;line-height:1.2;}
.wmpos-pay-note strong{color:inherit;}


/* ---------------------------------------------------------------------
   WMPOS x WHPC: Fix qty steppers inside the POS modal (variables + extras)
   --------------------------------------------------------------------- */
.wmpos-modal .whpc-qty-wrap{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
  border:1px solid rgba(0,0,0,.18) !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#fff !important;
}
.wmpos-modal .whpc-qty-btn{
  width:28px !important;
  height:28px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:none !important;
  text-transform:none !important;
}
.wmpos-modal .whpc-qty-btn--minus{
  background:#ffecec !important;
  color:#b00020 !important;
}
.wmpos-modal .whpc-qty-btn--plus{
  background:#eaffea !important;
  color:#0b6b0b !important;
}
.wmpos-modal input.whpc-qty{
  width:2.6em !important;
  min-width:2.6em !important;
  max-width:2.6em !important;
  height:28px !important;
  line-height:28px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-left:1px solid rgba(0,0,0,.14) !important;
  border-right:1px solid rgba(0,0,0,.14) !important;
  border-radius:0 !important;
  background:#fff !important;
  color:#111 !important;
  text-align:center !important;
  box-shadow:none !important;
}



/* MiniPOS modal: hide any variation-selection UI (variation table/selects + Bulk Variations) inside the extras modal.
   The variation is chosen outside the modal; inside we only want WHPC optionals. */
#wmposExtrasModal .variations_form .variations,
#wmposExtrasModal form.variations_form .variations,
#wmposExtrasModal .variations_form .reset_variations,
#wmposExtrasModal form.variations_form .reset_variations,
#wmposExtrasModal .whpbv,
#wmposExtrasModal #whpbv {
  display:none !important;
}


/* === v0.5.15.5: compact right dock layout === */
.wmpos-right-actions{
  position: sticky;
  bottom: 0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  padding:12px 14px 14px;
  border-top:1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
  box-shadow:none;
}

.wmpos-summary.wmpos-card.wmpos-summary-dock{
  width:min(100%, 240px);
  align-self:flex-end;
  margin:0;
  padding:10px 12px;
  border:1px solid var(--wmpos-border);
  border-radius:18px;
  background:var(--wmpos-panel);
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row{
  padding:4px 0;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row strong{
  font-size:12px;
  line-height:1.2;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-small span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-small strong{
  font-size:11px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total{
  padding-top:8px;
  margin-top:4px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total span{
  font-size:15px;
  font-weight:800;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total strong{
  font-size:17px;
  font-weight:900;
}

.wmpos-pay-sticky{
  width:100%;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--wmpos-border);
  border-radius:18px;
  background:var(--wmpos-panel);
  box-sizing:border-box;
}
.wmpos-pay-title{
  margin:0 0 8px;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.01em;
}
.wmpos-pay-radios{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.wmpos-pay-radios label,
.wmpos-pay-radios .wc_payment_method,
.wmpos-pay-radios .wmpos-pay-option{
  margin:0;
  min-height:0;
}
.wmpos-pay-radios label{
  padding:10px 12px;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  line-height:1.15;
  font-size:11px;
}
.wmpos-pay-radios label span,
.wmpos-pay-radios label strong,
.wmpos-pay-radios label small{
  font-size:inherit;
  line-height:inherit;
}
.wmpos-pay-note{
  margin-top:6px;
  font-size:11px;
  line-height:1.2;
}

#wmposApprove.wmpos-btn-wide{
  width:100%;
  flex:0 0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0;
  padding:14px 16px;
  border-radius:18px;
}

.wmpos-right-actions .wmpos-toast{
  width:100%;
  margin-top:0;
}

@media (max-width: 1024px){
  .wmpos-summary.wmpos-card.wmpos-summary-dock{
    width:100%;
    align-self:stretch;
  }
}


/* === v0.5.15.6: compact bottom dock, more room for items === */

.wmpos-checkout{
  padding: 8px 10px 8px 10px;
}

.wmpos-right-actions{
  position: sticky;
  bottom: 0;
  margin-top: auto;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--wmpos-border);
  background: var(--wmpos-panel);
}

.wmpos-summary.wmpos-card.wmpos-summary-dock{
  width: min(100%, 232px);
  padding: 8px 10px;
  border-radius: 14px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row{
  padding: 2px 0;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row strong{
  font-size: 11px;
  line-height: 1.05;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-small span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-small strong{
  font-size: 10px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total{
  padding-top: 4px;
  margin-top: 2px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total span{
  font-size: 13px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total strong{
  font-size: 15px;
}

.wmpos-pay-sticky{
  padding: 8px 10px;
  border-radius: 14px;
}
.wmpos-pay-title{
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1;
}
.wmpos-pay-radios{
  gap: 6px;
}
.wmpos-pay-radios label{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.05;
}
.wmpos-pay-note{
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.1;
}

#wmposApprove.wmpos-btn-wide{
  padding: 11px 14px;
  min-height: 0;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1;
}

.wmpos-right-actions .wmpos-toast{
  font-size: 11px;
}

@media (max-width: 1024px){
  .wmpos-right-actions{
    padding: 8px 8px 10px;
  }
  .wmpos-summary.wmpos-card.wmpos-summary-dock{
    width: 100%;
  }
}


/* === v0.5.15.7: subtotal/envio extra compact === */
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:not(.wmpos-row-total) span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:not(.wmpos-row-total) strong{
  font-size: 9px;
  line-height: 1.05;
  font-weight: 500;
  opacity: .9;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:not(.wmpos-row-total){
  padding: 1px 0;
}


/* === v0.5.15.9: totals font bump + pay block separation === */
.wmpos-checkout{
  padding: 6px 8px 4px 8px;
}

.wmpos-tabs-header{
  gap:8px;
  margin-bottom:6px;
}
.wmpos-tabs{
  gap:6px;
}
.wmpos-tab{
  min-height:34px;
  padding:6px 14px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:700;
}

.wmpos-cart-items{
  max-height: 42vh;
  padding: 8px 10px 6px;
}
.wmpos-cart-item{
  margin-bottom:6px;
  padding:8px;
  gap:8px;
  border-radius:12px;
}
.wmpos-ci-name{ font-size:12px; }
.wmpos-ci-extras{ margin-top:4px; }
.wmpos-ci-extra-title{ font-size:11px; margin-top:1px; }
.wmpos-ci-extra{ font-size:11px; margin-top:1px; }
.wmpos-ci-meta{ font-size:11px; margin-top:2px; }
.wmpos-ci-editors{ margin-top:6px; gap:6px; }
.wmpos-ci-label{ font-size:10px; }
.wmpos-ci-field input,
.wmpos-ci-field textarea{ font-size:11px; padding:7px 9px; }
.wmpos-ci-field textarea{ min-height:48px; }
.wmpos-order-item-note{ font-size:11px; }

.wmpos-right-actions{
  gap:0;
  padding:6px 8px 8px;
}

.wmpos-summary.wmpos-card.wmpos-summary-dock{
  width:100%;
  align-self:stretch;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0 8px 6px;
  border-radius:12px;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:0 8px;
  min-width:0;
  border-right:1px solid var(--wmpos-border);
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:last-child{
  border-right:0;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row strong{
  min-width:0;
  text-align:left;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:not(.wmpos-row-total) span,
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:not(.wmpos-row-total) strong{
  font-size:10px;
  line-height:1.05;
  font-weight:500;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total span{
  font-size:13px;
  font-weight:800;
}
.wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row-total strong{
  font-size:15px;
  font-weight:900;
}
#wmposDiscountRow,
#wmposPayAdjRow{
  grid-column:1 / -1;
  flex-direction:row;
  justify-content:space-between;
  border-top:1px solid var(--wmpos-border);
  border-right:0;
  margin-top:4px;
  padding-top:4px;
}

.wmpos-pay-sticky{
  margin-top:8px;
  padding:8px;
  border-radius:12px;
}
.wmpos-pay-title{
  margin:0 0 4px;
  font-size:10px;
}
.wmpos-pay-radios{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.wmpos-pay-radios label,
.wmpos-pay-radios .wc_payment_method,
.wmpos-pay-radios .wmpos-pay-option{
  min-width:0;
}
.wmpos-pay-radios label{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:12px;
  min-height:40px;
}
.wmpos-pay-radios label span{
  display:block;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:10px;
  line-height:1.05;
}
.wmpos-pay-note{
  margin-top:4px;
  font-size:10px;
}

#wmposApprove.wmpos-btn-wide{
  padding:10px 14px;
  min-height:40px;
  border-radius:14px;
  font-size:13px;
}

@media (max-width: 1024px){
  .wmpos-summary.wmpos-card.wmpos-summary-dock{
    grid-template-columns:1fr;
  }
  .wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row{
    border-right:0;
    border-bottom:1px solid var(--wmpos-border);
    padding:4px 0;
  }
  .wmpos-summary.wmpos-card.wmpos-summary-dock .wmpos-row:last-child{
    border-bottom:0;
  }
  .wmpos-pay-radios{
    grid-template-columns:1fr;
  }
}


/* === v0.5.16.0: reduce wasted top gap === */
body.wmpos-theme-light .wmpos-shell{
  gap: 12px;
  padding: 8px 12px 12px;
}
body.wmpos-theme-light .wmpos-topbar{
  padding: 10px 14px 6px;
}
.wmpos-search{
  padding: 10px 14px 6px;
}
.wmpos-checkout{
  padding-top: 4px;
}
.wmpos-tabs-header{
  margin-bottom: 4px;
}


/* hotfix: pay sticky bottom */
.wmpos-pay-sticky{bottom:55px;}

/* === v0.5.16.2: compact top pills + green confirm button === */
.wmpos-tabs-header{
  gap: 8px;
  margin-bottom: 2px;
}
.wmpos-tabs{
  gap: 6px;
  align-items: center;
}
.wmpos-tab{
  min-height: 24px;
  height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}
body.wmpos-theme-light #wmposApprove.wmpos-btn-primary,
body.wmpos-theme-light #wmposApprove,
#wmposApprove.wmpos-btn-wide{
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}
body.wmpos-theme-light #wmposApprove.wmpos-btn-primary:hover,
body.wmpos-theme-light #wmposApprove:hover,
#wmposApprove.wmpos-btn-wide:hover{
  background: #1f8a3a !important;
  border-color: #1f8a3a !important;
  color: #fff !important;
}


/* === v0.5.16.3: card outer spacing + subtle width/scroll polish === */
body.wmpos-theme-light .wmpos-card{
  margin: 0 10px;
}
body.wmpos-theme-light .wmpos-products-grid .wmpos-card{
  margin: 0 10px;
}
body.wmpos-theme-light .wmpos-shell{
  grid-template-columns: minmax(0, calc(50% - 6px)) minmax(0, calc(50% + 6px));
}
body.wmpos-theme-light .wmpos-left .wmpos-results,
body.wmpos-theme-light .wmpos-checkout,
body.wmpos-theme-light .wmpos-custpicker-list,
body.wmpos-theme-light .wmpos-modal-body{
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.75) transparent;
}
body.wmpos-theme-light .wmpos-left .wmpos-results::-webkit-scrollbar,
body.wmpos-theme-light .wmpos-checkout::-webkit-scrollbar,
body.wmpos-theme-light .wmpos-custpicker-list::-webkit-scrollbar,
body.wmpos-theme-light .wmpos-modal-body::-webkit-scrollbar{
  width: 8px;
  height: 8px;
}
body.wmpos-theme-light .wmpos-left .wmpos-results::-webkit-scrollbar-track,
body.wmpos-theme-light .wmpos-checkout::-webkit-scrollbar-track,
body.wmpos-theme-light .wmpos-custpicker-list::-webkit-scrollbar-track,
body.wmpos-theme-light .wmpos-modal-body::-webkit-scrollbar-track{
  background: transparent;
}
body.wmpos-theme-light .wmpos-left .wmpos-results::-webkit-scrollbar-thumb,
body.wmpos-theme-light .wmpos-checkout::-webkit-scrollbar-thumb,
body.wmpos-theme-light .wmpos-custpicker-list::-webkit-scrollbar-thumb,
body.wmpos-theme-light .wmpos-modal-body::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.7);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.wmpos-theme-light .wmpos-left .wmpos-results::-webkit-scrollbar-thumb:hover,
body.wmpos-theme-light .wmpos-checkout::-webkit-scrollbar-thumb:hover,
body.wmpos-theme-light .wmpos-custpicker-list::-webkit-scrollbar-thumb:hover,
body.wmpos-theme-light .wmpos-modal-body::-webkit-scrollbar-thumb:hover{
  background: rgba(100,116,139,.9);
  background-clip: padding-box;
}


/* Manual shipping override */
.wmpos-inline-wrap{
  flex-wrap: wrap;
}
.wmpos-shipping-editline .wmpos-input{
  flex: 1 1 180px;
  min-width: 140px;
}
.wmpos-shipping-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.wmpos-shipping-suggested-copy{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  line-height:1.2;
}
.wmpos-shipping-badge,
button.wmpos-shipping-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto !important;
  max-width:none;
  gap:4px;
  margin:0;
  padding:2px 8px;
  min-height:0;
  height:28px;
  border-radius:99px !important;
  font-size:10.5px;
  line-height:1;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:none !important;
  white-space:nowrap;
  color:#0f172a;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  box-shadow:none;
}
button.wmpos-shipping-badge{
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
button.wmpos-shipping-badge:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* =========================================================
   Caja (Iteración 3)
   ========================================================= */
.wmpos-cash-wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.wmpos-cash-state{
  border:1px solid var(--wmpos-border);
  border-radius:16px;
  padding:14px;
  background:var(--wmpos-panel);
}
.wmpos-cash-kicker{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--wmpos-muted);
  margin-bottom:6px;
}
.wmpos-cash-status{
  font-size:24px;
  font-weight:800;
  line-height:1.1;
}
.wmpos-cash-status.is-open{ color:#166534; }
.wmpos-cash-status.is-closed{ color:var(--wmpos-text); }
.wmpos-cash-muted{
  margin-top:6px;
  font-size:13px;
  color:var(--wmpos-muted);
}
.wmpos-cash-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.wmpos-cash-card{
  border:1px solid var(--wmpos-border);
  border-radius:16px;
  padding:14px;
  background:var(--wmpos-panel);
}
.wmpos-cash-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
.wmpos-cash-kpi-card{
  border:1px solid var(--wmpos-border);
  border-radius:16px;
  padding:14px;
  background:var(--wmpos-panel);
  box-shadow:var(--wmpos-shadow-sm);
}
.wmpos-cash-kpi-card.is-sales{ background:rgba(34,197,94,.08); }
.wmpos-cash-kpi-card.is-orders{ background:rgba(59,130,246,.08); }
.wmpos-cash-kpi-card.is-cash{ background:rgba(168,85,247,.08); }
.wmpos-cash-kpi-card.is-alert{ background:rgba(245,158,11,.10); }
.wmpos-cash-kpi-card.is-alert.is-ok{ background:rgba(15,118,110,.08); }
.wmpos-cash-kpi-label{
  font-size:12px;
  color:var(--wmpos-muted);
  margin-bottom:6px;
}
.wmpos-cash-kpi-value{
  font-size:22px;
  font-weight:800;
  line-height:1.1;
  color:var(--wmpos-text);
}
.wmpos-cash-kpi-meta{
  margin-top:8px;
  font-size:12px;
  line-height:1.35;
  color:var(--wmpos-muted);
}
.wmpos-cash-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}
.wmpos-cash-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--wmpos-text);
  font-size:14px;
}
.wmpos-cash-summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--wmpos-border);
}
.wmpos-cash-summary-row:last-child{ border-bottom:0; }
.wmpos-cash-summary-row span{
  color:var(--wmpos-muted);
}
.wmpos-cash-summary-row strong{
  text-align:right;
}
.wmpos-cash-message{
  min-height:8px;
}
.wmpos-cash-empty{
  color:var(--wmpos-muted);
  font-size:13px;
}
.wmpos-cash-movements-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wmpos-cash-movement-item{
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  padding:10px 12px;
  background:var(--wmpos-bg);
}
.wmpos-cash-movement-main{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.wmpos-cash-movement-title{
  font-size:14px;
  font-weight:700;
  line-height:1.3;
}
.wmpos-cash-movement-meta{
  margin-top:4px;
  font-size:12px;
  color:var(--wmpos-muted);
  line-height:1.35;
}
.wmpos-cash-movement-amount{
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.wmpos-cash-movement-amount.is-income{ color:#166534; }
.wmpos-cash-movement-amount.is-expense{ color:#991b1b; }
.wmpos-cash-alert{
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  font-weight:600;
}
.wmpos-cash-alert.is-error{
  background:rgba(220,38,38,.10);
  color:#991b1b;
  border:1px solid rgba(220,38,38,.20);
}
.wmpos-cash-alert.is-success{
  background:rgba(22,163,74,.10);
  color:#166534;
  border:1px solid rgba(22,163,74,.20);
}
.wmpos-cash-alert.is-warning{
  background:rgba(245,158,11,.12);
  color:#92400e;
  border:1px solid rgba(245,158,11,.22);
}
@media (max-width: 980px){
  .wmpos-cash-grid{ grid-template-columns:1fr; }
  .wmpos-cash-dashboard-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wmpos-cash-movement-main{ flex-direction:column; }
}


.wmpos-navlink-cash{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none !important;
}
.wmpos-cash-nav-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#9ca3af;
  flex:0 0 auto;
}
.wmpos-cash-nav-dot.is-open{ background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.wmpos-cash-nav-dot.is-closed{ background:#9ca3af; }
.wmpos-cash-nav-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
}
.wmpos-cash-nav-title{
  font-size:13px;
  font-weight:500;
}
.wmpos-cash-nav-meta{
  font-size:11px;
  color:var(--wmpos-muted);
}
.wmpos-cash-livebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--wmpos-border);
  border-radius:16px;
  background:var(--wmpos-panel);
}
.wmpos-cash-livebar strong{
  display:block;
  font-size:22px;
  font-weight:800;
  line-height:1.1;
}
.wmpos-cash-livebar.is-open strong{ color:#166534; }
.wmpos-cash-livebar.is-closed strong{ color:var(--wmpos-text); }
.wmpos-cash-live-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--wmpos-muted);
  margin-bottom:4px;
}
.wmpos-cash-live-meta{
  margin-top:4px;
  font-size:12px;
  color:var(--wmpos-muted);
}
.wmpos-cash-method-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wmpos-cash-method-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.wmpos-cash-method-main{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.wmpos-cash-method-main span{
  font-size:12px;
  color:var(--wmpos-muted);
}
.wmpos-cash-method-net{
  font-weight:800;
  white-space:nowrap;
}
.wmpos-cash-method-net.is-positive{ color:#166534; }
.wmpos-cash-method-net.is-negative{ color:#991b1b; }
.wmpos-cash-lastmove{
  border:1px solid var(--wmpos-border);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.02);
}
.wmpos-cash-lastmove-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.wmpos-cash-lastmove-title{
  font-weight:700;
}
.wmpos-cash-lastmove-meta,
.wmpos-cash-lastmove-bottom{
  font-size:12px;
  color:var(--wmpos-muted);
}
.wmpos-cash-lastmove-bottom{ margin-top:8px; }
.wmpos-cash-lastmove-amount{
  font-weight:800;
  white-space:nowrap;
}
.wmpos-cash-lastmove-amount.is-income{ color:#166534; }
.wmpos-cash-lastmove-amount.is-expense{ color:#991b1b; }
.wmpos-cash-close-preview{
  border-radius:12px;
  padding:10px 12px;
  font-size:12px;
  border:1px solid var(--wmpos-border);
  background:rgba(255,255,255,.03);
}
.wmpos-cash-close-preview strong{ font-weight:800; }
.wmpos-cash-close-preview.is-positive{ color:#166534; }
.wmpos-cash-close-preview.is-negative{ color:#991b1b; }
.wmpos-cash-close-preview.is-even{ color:var(--wmpos-text); }

@media (max-width: 780px){
  .wmpos-navlink-cash .wmpos-cash-nav-meta{ display:none; }
  .wmpos-cash-livebar,
  .wmpos-cash-method-row,
  .wmpos-cash-lastmove-top{
    flex-direction:column;
    align-items:flex-start;
  }
}

.wmpos-cash-method-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:2px 8px;
  font-size:11px;
  font-weight:700;
  margin-left:8px;
  white-space:nowrap;
}
.wmpos-cash-method-badge.is-physical{
  background:rgba(34,197,94,.12);
  color:#166534;
}
.wmpos-cash-method-badge.is-report{
  background:rgba(59,130,246,.12);
  color:#1d4ed8;
}
.wmpos-cash-note{
  margin-top:10px;
  font-size:12px;
  line-height:1.45;
  color:var(--wmpos-text-soft);
}

.wmpos-cash-alerts{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wmpos-cash-inline-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:2px 8px;
  margin-left:8px;
  font-size:11px;
  font-weight:700;
  vertical-align:middle;
}
.wmpos-cash-inline-badge.is-petty{
  background:rgba(82,172,204,.15);
  color:#0f4c5c;
}
.wmpos-checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:var(--wmpos-text);
}
.wmpos-checkbox input[type="checkbox"]{
  width:16px;
  height:16px;
}

/* Caja (Iteración 9) */
.wmpos-cash-session-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wmpos-cash-session-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  background:#fff;
}
.wmpos-cash-session-main{
  min-width:0;
}
.wmpos-cash-session-title{
  font-weight:800;
  line-height:1.2;
}
.wmpos-cash-session-meta{
  margin-top:4px;
  font-size:12px;
  color:var(--wmpos-muted);
  line-height:1.4;
}
.wmpos-cash-session-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
@media (max-width: 680px){
  .wmpos-cash-session-item{
    flex-direction:column;
    align-items:flex-start;
  }
  .wmpos-cash-session-actions{
    width:100%;
  }
}

.wmpos-minimum-note{
  display:none;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.4;
  background:#fff;
}
.wmpos-minimum-note.is-ok{
  border-color:rgba(16,185,129,.28);
  background:rgba(16,185,129,.08);
}
.wmpos-minimum-note.is-error{
  border-color:rgba(239,68,68,.26);
  background:rgba(239,68,68,.08);
}
.wmpos-minimum-note__sub{
  margin-top:4px;
  opacity:.9;
  font-size:12px;
}


.wmpos-cash-denoms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.wmpos-cash-denom-field .wmpos-input{text-align:right}

/* v4.0.51 - Caja tabs */
.wmpos-cash-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 14px;border:1px solid var(--wmpos-border);border-radius:16px;background:#fff}
.wmpos-cash-topbar-main{min-width:0}
.wmpos-cash-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.wmpos-cash-tab{appearance:none;border:1px solid var(--wmpos-border);background:#fff;color:var(--wmpos-text);padding:8px 14px;border-radius:999px;font-weight:700;cursor:pointer;transition:.18s ease}
.wmpos-cash-tab:hover{border-color:var(--wmpos-primary);color:var(--wmpos-primary)}
.wmpos-cash-tab.is-active{background:var(--wmpos-primary);border-color:var(--wmpos-primary);color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.08)}
@media (max-width: 640px){.wmpos-cash-topbar{flex-direction:column;align-items:flex-start}.wmpos-cash-topbar .wmpos-btn{width:100%}.wmpos-cash-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.wmpos-cash-tab{text-align:center;padding:10px 8px}.wmpos-cash-dashboard-grid{grid-template-columns:1fr}.wmpos-cash-kpi-value{font-size:20px}}

.wmpos-cash-movement-actions{margin-top:8px;display:flex;justify-content:flex-end}.wmpos-btn-xs{padding:6px 10px;font-size:12px;border-radius:999px}.wmpos-pill-warning{background:#fff3cd;color:#7a5b00;border:1px solid #f1d58a}.wmpos-pill-neutral{background:#eef2f6;color:#52606d;border:1px solid #d7dee6}.wmpos-cash-movement-item.is-cancelled{opacity:.92}


.wmpos-cash-movement-item{border-left:4px solid transparent;background:#fff}
.wmpos-cash-movement-item.is-income{border-left-color:#22c55e;background:#f6fef8}
.wmpos-cash-movement-item.is-expense{border-left-color:#ef4444;background:#fff8f8}
.wmpos-cash-movement-item.is-reversal{border-left-color:#94a3b8;background:#f8fafc}
.wmpos-cash-movement-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.wmpos-pill-origin{background:#eef7ff;color:#155e75;border:1px solid #c7e7ff}
.wmpos-pill-origin.is-order{background:#ecfdf3;color:#166534;border:1px solid #b7ebc8}
.wmpos-pill-payment{background:#f8fafc;color:#334155;border:1px solid #dbe3ea}
.wmpos-cash-movement-link{margin-top:6px;font-size:12px;line-height:1.35;color:#64748b}


.wmpos-cash-timing-wrap{margin-top:8px;padding:10px;border:1px solid #e6e9ef;border-radius:14px;background:#f8fafc}
.wmpos-cash-timing-title{font-size:12px;font-weight:700;color:#334155;margin:0 0 8px}
.wmpos-cash-timing-options{display:flex;flex-direction:column;gap:8px}
.wmpos-cash-timing-opt{display:flex;align-items:flex-start;gap:8px;border:1px solid #dbe2ea;border-radius:999px;padding:8px 10px;background:#fff;cursor:pointer}
.wmpos-cash-timing-opt input{margin-top:2px;accent-color:#0f172a}
.wmpos-cash-timing-copy{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.wmpos-cash-timing-copy strong{font-size:12px;color:#0f172a}
.wmpos-cash-timing-copy span{font-size:11px;color:#64748b}
.wmpos-cash-pending-list{display:flex;flex-direction:column;gap:10px}
.wmpos-cash-pending-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e6e9ef;border-radius:14px;padding:10px 12px;background:#fff7ed}
.wmpos-cash-pending-main{min-width:0}
.wmpos-cash-pending-title{font-weight:700;color:#7c2d12;font-size:13px}
.wmpos-cash-pending-meta{font-size:12px;color:#9a3412;line-height:1.3;margin-top:3px}
.wmpos-cash-pending-amount{font-weight:800;color:#0f172a;white-space:nowrap}
.wmpos-cash-movement-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.wmpos-orders-inline-actions{margin-top:6px;display:flex;gap:6px;flex-wrap:wrap}

.wmpos-cash-timing-help{margin-top:8px;font-size:12px;line-height:1.45;opacity:.9}.wmpos-pay-radios-settle{margin-top:6px}


/* Crear cliente en modal: evita que el formulario rompa el panel del checkout */
.wmpos-modal-card-customer{
  width: min(560px, 100%);
}
.wmpos-custcreate-modal .wmpos-modal-body{
  padding: 16px;
}
.wmpos-custcreate-modal .wmpos-grid-sm{
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wmpos-custcreate-msg{
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
}
@media (max-width: 640px){
  .wmpos-custcreate-modal .wmpos-grid-sm{
    grid-template-columns: 1fr;
  }
}


/* === v4.1.31: bloque Cliente usable y estético === */
.wmpos-card.wmpos-card-customer{
  display:block;
  align-items:initial;
  gap:0;
  cursor:default;
}
.wmpos-card.wmpos-card-customer:hover{
  background: var(--wmpos-panel);
  box-shadow: none;
}
body.wmpos-theme-light .wmpos-card.wmpos-card-customer:hover{
  background:#fff;
  box-shadow:none;
}
.wmpos-card-customer .wmpos-card-title{
  cursor:default;
  margin-bottom:12px;
}
.wmpos-card-customer .wmpos-grid{
  align-items:start;
}
.wmpos-card-customer .wmpos-help{
  color: var(--wmpos-muted);
  font-size: 12px;
  line-height: 1.25;
  margin-top: 6px;
}
.wmpos-custpicker{
  margin-top: 12px;
  border-top: 0;
  padding-top: 0;
  width:100%;
}
.wmpos-custpicker-head{
  display:grid;
  grid-template-columns: minmax(0,1fr) 44px;
  gap:8px;
  align-items:stretch;
  margin-bottom:10px;
}
.wmpos-custsearch{
  position:relative;
  min-width:0;
}
.wmpos-custsearch-ico{
  position:absolute;
  left:14px;
  top:50%;
  width:15px;
  height:15px;
  transform:translateY(-50%);
  pointer-events:none;
  opacity:.55;
}
.wmpos-custsearch-ico:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:10px;
  height:10px;
  border:2px solid currentColor;
  border-radius:999px;
}
.wmpos-custsearch-ico:after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  right:0;
  bottom:1px;
  background:currentColor;
  border-radius:999px;
  transform:rotate(45deg);
  transform-origin:center;
}
#wmposCustomerSearch.wmpos-input{
  height:44px;
  padding-left:42px;
  font-size:13px;
}
.wmpos-custnew-btn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  background:var(--wmpos-panel);
  color:var(--wmpos-text);
  font-size:26px;
  line-height:1;
  font-weight:400;
  cursor:pointer;
  box-shadow:none;
}
.wmpos-custnew-btn:hover{
  border-color:rgba(37,99,235,.38);
  color:#2563eb;
  background:#f8fbff;
}
.wmpos-custpicker-list{
  max-height:190px;
  overflow:auto;
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  padding:0;
  background:var(--wmpos-panel);
}
.wmpos-cust-row{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:0;
  border-bottom:1px solid var(--wmpos-border);
  cursor:pointer;
  user-select:none;
}
.wmpos-cust-row:last-child{ border-bottom:0; }
.wmpos-cust-row:hover{ background:rgba(37,99,235,.045); }
.wmpos-cust-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e8f0ff;
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
.wmpos-cust-row:nth-child(even) .wmpos-cust-avatar{
  background:#e7f8ec;
  color:#178a3c;
}
.wmpos-cust-main{ min-width:0; }
.wmpos-cust-name{
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  color:var(--wmpos-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wmpos-cust-sub{
  font-size:11.5px;
  color:var(--wmpos-muted);
  line-height:1.25;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wmpos-cust-select{
  appearance:none;
  border:0;
  background:transparent;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  padding:6px 2px;
}
.wmpos-cust-select:after{
  content:"›";
  font-size:18px;
  line-height:0;
  margin-left:8px;
  vertical-align:-1px;
  color:#64748b;
}
.wmpos-empty-sm{
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  padding:14px 12px;
}
@media (max-width: 720px){
  .wmpos-custpicker-head{
    grid-template-columns: minmax(0,1fr) 42px;
  }
  .wmpos-custnew-btn{ width:42px; height:42px; }
  .wmpos-cust-row{
    grid-template-columns:32px minmax(0,1fr);
  }
  .wmpos-cust-select{
    grid-column:2;
    justify-self:start;
    padding-top:2px;
  }
}


/* === v4.1.32: clientes - búsqueda primaria + existente en modal === */
.wmpos-custpicker{
  overflow:hidden;
}
.wmpos-custpicker-note{
  font-size:12px;
  font-weight:700;
  color:var(--wmpos-muted);
  margin:0 0 8px;
}
.wmpos-custpicker-head{
  grid-template-columns:minmax(0,1fr) 40px;
  overflow:hidden;
}
.wmpos-custsearch,
.wmpos-custpicker-head > *{
  min-width:0;
}
.wmpos-custnew-btn{
  width:40px;
  min-width:40px;
  max-width:40px;
  height:40px;
  border-radius:12px;
  box-sizing:border-box;
  font-size:24px;
  align-self:stretch;
}
#wmposCustomerSearch.wmpos-input{
  height:40px;
}
.wmpos-custpicker-list{
  max-height:220px;
}
.wmpos-custexisting{
  margin-top:10px;
  border-top:1px solid var(--wmpos-border);
  padding-top:10px;
}
.wmpos-custexisting-title{
  font-size:12px;
  font-weight:700;
  color:var(--wmpos-muted);
  margin:0 0 8px;
}
.wmpos-custexisting-card{
  border:1px solid var(--wmpos-border);
  border-radius:14px;
  overflow:hidden;
  background:var(--wmpos-panel);
}
.wmpos-cust-row-existing{
  border-bottom:0;
}


/* === v4.1.33: fix botón + dentro del contenedor Cliente === */
.wmpos-card.wmpos-card-customer,
.wmpos-custpicker{
  max-width:100%;
  box-sizing:border-box;
}
.wmpos-card.wmpos-card-customer{
  overflow:hidden;
}
.wmpos-custpicker-head{
  display:flex !important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  gap:8px;
  align-items:stretch;
  justify-content:flex-start;
  overflow:hidden;
}
.wmpos-custsearch{
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
}
#wmposCustomerSearch.wmpos-input{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.wmpos-custnew-btn{
  flex:0 0 40px;
  width:40px !important;
  min-width:40px !important;
  max-width:40px !important;
  height:40px !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
}
@media (max-width:720px){
  .wmpos-custnew-btn{
    flex-basis:38px;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }
}
