.npa-panel{border:1px solid #ddd;border-radius:12px;padding:16px;margin:12px 0 24px}
.npa-panel h2{margin-top:0}.npa-overflow{overflow-x:auto}.npa-table{min-width:600px;width:100%}.npa-table td,.npa-table th{padding:10px 8px;vertical-align:top}.npa-table input[type=number]{width:74px}.npa-table small{display:block;font-size:12px;opacity:.8;margin-top:5px}.npa-table select{max-width:240px;margin-top:7px}.npa-table select[hidden]{display:none}.npa-note{font-size:13px;opacity:.85}

a.npa-edit-fallback{display:inline-block;margin:4px 2px;padding:8px 12px;border:1px solid #00a6b3;border-radius:8px;color:#006d78;background:#eefcfd;text-decoration:none;font-size:13px;line-height:1.25}

.woocommerce-account .woocommerce-orders-table .npa_edit,.woocommerce-account .woocommerce-orders-table .npa_continue{background:#eaf8f9!important;color:#0b7f88!important;border-color:#c8e8ea!important}

/* NEXXO v0.4.24: direct save of additional products in an existing order. */
.npa-existing-details{border:1px solid #c3e8eb;background:#f1fcfd;padding:12px 14px;border-radius:10px;margin:10px 0 16px;font-size:14px;line-height:1.5}
.npa-save-cart-notice{font-size:12px;color:#35616a;margin-top:7px;line-height:1.4}
.npa-cart-save-cta{cursor:pointer;background:#14c6d6!important;color:#051b20!important;border:0!important;border-radius:10px!important;padding:12px 22px!important;min-height:46px!important;font-weight:750!important;box-shadow:none!important}
.npa-cart-save-fixed{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:9999;background:#fff;border:1px solid #b8e2e7;box-shadow:0 8px 35px #0002;padding:12px 18px;border-radius:12px;max-width:calc(100vw - 28px);text-align:center}

/* Existing order: never show checkout CTAs while JavaScript is loading. */
body.npa-active-open-order .woocommerce-mini-cart__buttons a.checkout,
body.npa-active-open-order .widget_shopping_cart_content a.checkout,
body.npa-active-open-order .nexxo-cart-inline-checkout,
body.npa-active-open-order .wc-proceed-to-checkout a.checkout-button {display:none!important}
body.npa-active-open-order .npa-cart-save-cta{display:inline-flex!important;align-items:center;justify-content:center;text-align:center;line-height:1.25;max-width:100%;text-decoration:none}
body.npa-active-open-order .woocommerce-mini-cart__buttons .npa-cart-save-cta{flex:1;min-width:175px;padding:9px 12px!important;font-size:13px}
body.npa-active-open-order .woocommerce-cart-form td.actions .npa-cart-save-cta{margin-left:8px}

/* ============================================================
   NEXXO Mi Cuenta v0.4.26 — REDISEÑO VISUAL DEL EDITOR
   Alcance estricto: .npa-editor (no altera stock, pago, carrito ni checkout)
   ============================================================ */
.woocommerce-account .npa-panel.npa-editor,
.npa-panel.npa-editor {
  --npa-ink:#162127;
  --npa-muted:#61717b;
  --npa-line:#e1e9ed;
  --npa-soft:#f5f9fa;
  --npa-accent:#0fc6d4;
  width:100%;max-width:100%;box-sizing:border-box;
  margin:0 0 24px;padding:0;border:0;background:transparent;
  color:var(--npa-ink);font-family:inherit;
}
.npa-editor *, .npa-editor *::before, .npa-editor *::after {box-sizing:border-box}
.npa-editor .npa-editor-header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  padding:24px 26px;background:linear-gradient(120deg,#f1fcfd 0%,#ffffff 72%);
  border:1px solid #d2ecef;border-radius:19px;margin-bottom:15px;
}
.npa-editor .npa-editor-heading{min-width:0}
.npa-editor .npa-editor-back{display:inline-block;text-decoration:none;color:#52727b;font-weight:700;font-size:12px;margin-bottom:14px}
.npa-editor .npa-editor-back:hover{color:#009eae}
.npa-editor .npa-editor-kicker{font-size:10px;letter-spacing:1.55px;font-weight:850;color:#00a9b9;margin:0 0 7px;line-height:1.5}
.npa-editor .npa-editor-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.npa-editor .npa-editor-title-line h2{font-size:clamp(23px,3vw,30px);margin:0!important;color:#111b21;font-weight:820;letter-spacing:-.65px;line-height:1.18}
.npa-editor .npa-editor-status{display:inline-block;border-radius:999px;background:#e0f5f1;color:#18705c;padding:6px 11px;font-size:11px;line-height:1.3;font-weight:760}
.npa-editor .npa-editor-lead{font-size:13px;color:#607079;line-height:1.65;margin:13px 0 0;max-width:600px}
.npa-editor .npa-editor-lead strong{color:#243a40}
.npa-editor .npa-editor-header-symbol{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:#12c8d6;color:#fff;font-size:25px;font-weight:800;box-shadow:0 8px 18px rgba(0,181,192,.16)}
.npa-editor .npa-editor-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.npa-editor .npa-editor-info-item{display:flex;align-items:center;gap:12px;min-width:0;padding:15px 17px;background:#fff;border:1px solid var(--npa-line);border-radius:14px;box-shadow:0 6px 18px rgba(10,39,47,.025)}
.npa-editor .npa-editor-info-icon{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:35px;height:35px;border-radius:10px;background:#e8f9fa;color:#009cab;font-weight:900}
.npa-editor .npa-editor-info-item>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.npa-editor .npa-editor-label{font-size:11px;font-weight:600;color:#7b8992}
.npa-editor .npa-editor-info-item strong{font-size:12px;color:#263740;overflow-wrap:anywhere;line-height:1.45}
.npa-editor .npa-editor-safe-note{display:flex;align-items:center;gap:10px;background:#effafa;border:1px solid #caeaec;border-radius:12px;padding:12px 15px;font-size:12px;line-height:1.55;color:#366971;margin-bottom:21px}
.npa-editor .npa-editor-safe-note>span:first-child{display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:#d3f3ee;width:23px;height:23px;border-radius:50%;font-weight:900;color:#078b77}
.npa-editor .npa-editor-safe-note strong{color:#164c57}
.npa-editor .npa-editor-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 14px}
.npa-editor .npa-editor-section-heading h3,.npa-editor .npa-order-summary h3{font-size:20px;line-height:1.25;margin:0;font-weight:810;color:var(--npa-ink);letter-spacing:-.35px}
.npa-editor .npa-editor-section-heading h3 span{color:#8a99a0;font-weight:650}
.npa-editor .npa-editor-small-count{color:#88969c;font-size:11px;font-weight:650;padding-bottom:3px}
.npa-editor .npa-products{display:flex;flex-direction:column;gap:11px;margin-bottom:16px}
.npa-editor .npa-product-card{display:flex;align-items:flex-start;gap:17px;width:100%;min-width:0;padding:18px;background:#fff;border:1px solid var(--npa-line);border-radius:17px;box-shadow:0 6px 22px rgba(18,41,54,.035);transition:border-color .2s ease,box-shadow .2s ease}
.npa-editor .npa-product-card:focus-within{border-color:#9bdde2;box-shadow:0 5px 20px rgba(0,188,203,.09)}
.npa-editor .npa-product-media{width:104px;height:104px;flex:0 0 104px;border-radius:12px;background:#f5f8f9;border:1px solid #edf0f3;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:9px}
.npa-editor .npa-product-media img,.npa-editor .npa-product-media .npa-product-photo{display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;mix-blend-mode:multiply}
.npa-editor .npa-product-content{flex:1;min-width:0}
.npa-editor .npa-product-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.npa-editor .npa-product-ident{min-width:0;flex:1}
.npa-editor .npa-product-ident h4{font-size:14px;line-height:1.4;font-weight:790;margin:0 0 7px;letter-spacing:0;color:#16232b;overflow-wrap:anywhere}
.npa-editor .npa-product-meta{font-size:11px;color:#627681;background:#f3f8fa;border-radius:7px;padding:4px 7px;display:inline-block;margin:0 5px 5px 0;overflow-wrap:anywhere}
.npa-editor .npa-product-total{min-width:105px;text-align:right;flex:0 0 auto}
.npa-editor .npa-product-total small{display:block;color:#8c9aa2;font-size:10px;margin:0 0 4px;line-height:1.4}
.npa-editor .npa-product-total strong{font-size:15px;color:#14242b;font-weight:790;white-space:nowrap}
.npa-editor .npa-product-controls{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-top:15px}
.npa-editor .npa-editor-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.npa-editor .npa-editor-field label,.npa-editor .npa-field-caption{font-size:11px;font-weight:720;line-height:1.3;color:#63757f}
.npa-editor .npa-qty-field{width:88px;flex:0 0 88px}
.woocommerce-account .npa-editor input[type=number],.npa-editor input[type=number]{width:88px!important;min-width:0!important;max-width:88px!important;height:40px!important;border:1px solid #d6e2e7!important;border-radius:9px!important;padding:7px 10px!important;background:#fff!important;color:#1b2a32!important;font-size:14px!important;line-height:1.25;box-shadow:none!important}
.npa-editor .npa-variant-field{flex:1 1 155px;max-width:100%;min-width:135px}
.woocommerce-account .npa-editor .npa-load,.npa-editor .npa-load{width:max-content;max-width:100%;min-height:40px!important;padding:8px 12px!important;font-weight:700!important;font-size:12px!important;color:#007e8e!important;border:1px solid #b8e6ea!important;background:#edfafb!important;border-radius:9px!important;box-shadow:none!important;line-height:1.4!important;white-space:normal!important}
.woocommerce-account .npa-editor .npa-load:hover{background:#dff6f8!important;border-color:#77d5db!important}
.npa-editor .npa-select{display:block;width:100%;max-width:265px;min-height:38px;margin-top:4px;border:1px solid #bee5e9;border-radius:8px;color:#22383e;background:#fff;font-size:12px;padding:7px}
.npa-editor .npa-select[hidden]{display:none!important}
.npa-editor .npa-message{font-size:11px;color:#39757c;line-height:1.45;min-height:0;display:block;max-width:250px}
.npa-editor .npa-no-variants{font-size:12px;color:#88969e;min-height:40px;display:flex;align-items:center}
.npa-editor .npa-remove-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto;flex:0 0 auto}
.npa-editor .npa-remove-item{border:0!important;background:transparent!important;color:#a65555!important;font-size:11px!important;padding:9px 3px!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer;line-height:1.4;box-shadow:none!important}
.npa-editor .npa-remove-item:hover{color:#d04242!important}
.npa-editor .npa-remove-feedback{font-size:10px;line-height:1.35;color:#ac5252;max-width:180px;text-align:right}
.npa-editor .npa-product-card.npa-marked-remove{background:#fcf9f9;border-color:#eed8d8}
.npa-editor .npa-product-card.npa-marked-remove .npa-product-media,.npa-editor .npa-product-card.npa-marked-remove .npa-product-ident{opacity:.5}
.npa-editor .npa-editor-bottom{background:#f5f9fa;border:1px solid #e1eced;border-radius:15px;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:19px}
.npa-editor .npa-editor-footer-copy{font-size:11px;color:#647883;line-height:1.55;max-width:345px}
.npa-editor .npa-editor-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.woocommerce-account .npa-editor button.npa-editor-save,.npa-editor button.npa-editor-save{display:inline-flex!important;justify-content:center;align-items:center;min-height:45px!important;border-radius:10px!important;background:#13c8d5!important;color:#082227!important;border:0!important;padding:10px 19px!important;font-weight:830!important;font-size:12px!important;box-shadow:0 7px 15px rgba(0,189,200,.12)!important;cursor:pointer!important;line-height:1.25!important;white-space:normal!important}
.woocommerce-account .npa-editor button.npa-editor-save:hover{background:#05b8c5!important}
.npa-editor .npa-editor-continue,.npa-editor .npa-editor-pay{display:inline-flex;justify-content:center;align-items:center;min-height:45px;text-decoration:none!important;border:1px solid #b4e3e8;background:#fff;color:#057f8c!important;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:790;line-height:1.3;text-align:center}
.npa-editor .npa-editor-continue:hover,.npa-editor .npa-editor-pay:hover{background:#e9f9fa;color:#057784!important}
.npa-editor .npa-order-summary{border:1px solid #dce6ea;background:#fff;border-radius:16px;padding:21px 22px;box-shadow:0 6px 21px rgba(12,33,42,.03)}
.npa-editor .npa-order-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:13px;border-bottom:1px solid #e9eef0}
.npa-editor .npa-order-summary-tag{background:#eaf9f9;color:#398087;border-radius:7px;padding:6px 8px;font-size:10px;font-weight:720}
.npa-editor .npa-order-total-row,.npa-editor .npa-order-minor-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf0f2;font-size:13px;color:#5e707a}
.npa-editor .npa-order-total-row strong{color:#111f27;font-size:22px;line-height:1.25;font-weight:850;white-space:nowrap}
.npa-editor .npa-order-minor-row strong{color:#284750;font-weight:750;white-space:nowrap}
.npa-editor .npa-editor-pay{margin:15px 0 2px}
.npa-editor .npa-order-summary-foot{font-size:11px;color:#7f9099;line-height:1.55;margin:14px 0 0}
.npa-editor .npa-editor-disclaimer{color:#8b969d;font-size:11px;line-height:1.5;margin:13px 4px 0;opacity:1}
@media (max-width:760px){
 .npa-editor .npa-editor-header{padding:19px 17px}.npa-editor .npa-editor-header-symbol{width:32px;height:32px;border-radius:10px;font-size:19px}
 .npa-editor .npa-editor-info{grid-template-columns:1fr;gap:8px}.npa-editor .npa-editor-info-item{padding:12px 14px}
 .npa-editor .npa-product-card{padding:13px;gap:12px}.npa-editor .npa-product-media{width:80px;height:80px;flex-basis:80px;padding:5px}
 .npa-editor .npa-product-topline{flex-wrap:wrap;gap:8px}.npa-editor .npa-product-total{text-align:left}
 .npa-editor .npa-product-controls{gap:8px 14px}.npa-editor .npa-remove-wrap{margin-left:0;align-items:flex-start}.npa-editor .npa-remove-feedback{text-align:left}
 .npa-editor .npa-editor-bottom{padding:14px}.npa-editor .npa-editor-actions{width:100%}.npa-editor .npa-editor-actions>*{flex:1 1 145px}
}
@media (max-width:480px){
 .npa-editor .npa-editor-title-line h2{font-size:23px}.npa-editor .npa-editor-lead{font-size:12px}
 .npa-editor .npa-editor-section-heading h3{font-size:17px}
 .npa-editor .npa-product-card{gap:9px}.npa-editor .npa-product-media{width:62px;height:62px;flex-basis:62px}
 .npa-editor .npa-product-ident h4{font-size:12px}.npa-editor .npa-product-total strong{font-size:13px}
 .npa-editor .npa-qty-field{width:76px;flex-basis:76px}.woocommerce-account .npa-editor input[type=number],.npa-editor input[type=number]{width:76px!important;max-width:76px!important}
 .npa-editor .npa-product-controls{margin-top:12px}.npa-editor .npa-variant-field{flex-basis:100%;order:3}
 .npa-editor .npa-order-summary{padding:17px 15px}.npa-editor .npa-order-total-row strong{font-size:18px}
}
