@charset "UTF-8";
/* ===== CHECKOUT V2 — Estilo MercadoLibre ===== */
:root {
  --ml-blue:    #3483FA;
  --ml-blue-dk: #2968c8;
  --ml-green:   #00A650;
  --ml-red:     #F23D4F;
  --ml-text:    #333333;
  --ml-text2:   #666666;
  --ml-border:  #EDEDED;
  --ml-bg:      #EBEBEB;
  --ml-white:   #FFFFFF;
  --ml-radius:  6px;
  --ml-shadow:  0 1px 2px rgba(0,0,0,.12);
  --ml-font:    'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; }

body.po-checkout-page,
body.po-checkout-page * {
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body.po-checkout-page .material-icons {
  font-family: 'Material Icons' !important;
}

body.po-checkout-page .fa,
body.po-checkout-page .fas,
body.po-checkout-page .far,
body.po-checkout-page .fab {
  font-family: 'Font Awesome 5 Free' !important;
}

/* Ancla el badge del carrito independientemente del flujo.
   .spanPopup y .circleAlert usan position:absolute sin top/left,
   por lo que su posición depende del flujo del contenedor, que cambia
   con el reset global de box-sizing. Usamos coordenadas explícitas. */
body.po-checkout-page .alertMsg .spanPopup {
  top: 0;
  left: 0;
}
body.po-checkout-page .circleAlert {
  top: 0;
  left: 14px;
  margin-top: 0;
  margin-left: 0;
  width: 10px;
  height: 10px;
}

/* ── Header mobile: igualar con products.php ── */
@media only screen and (max-device-width: 900px) {
  body.po-checkout-page #NavDetail {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

body.po-checkout-page {
  margin: 0;
  font-family: var(--ml-font);
  font-weight: 400;
  background: var(--ml-bg);
  color: var(--ml-text);
  font-size: 14px;
}

/* ── Back row (reemplaza header custom) ── */
.po-checkout-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.po-cart-switch-btn {
  font-size: 11px;
  color: #888;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 4px 10px;
  border-radius: 3px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.po-cart-switch-btn:hover { color: #333; border-color: #aaa; text-decoration: none; }

.po-checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ml-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}

.po-checkout-back-link:hover {
  border-bottom-color: var(--ml-blue);
}

/* ── Wrap principal ── */
.po-checkout-wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

/* ── Barra de progreso ── */
.po-checkout-progress {
  margin: 0 0 16px;
  background: var(--ml-white);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  padding: 10px 14px 12px;
  box-shadow: var(--ml-shadow);
}

.po-progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #E0E0E0;
  overflow: hidden;
}

.po-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--ml-blue) 0%, #5BA4F5 100%);
  border-radius: 999px;
  transition: width .35s ease;
}

/* ── Grid principal: 2 columnas ── */
.po-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* ── Panel card ── */
.po-panel {
  background: var(--ml-white);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  overflow: visible;
  position: relative;
  animation: poFadeUp .3s ease both;
}

.po-checkout-grid .po-panel:nth-child(1) { animation-delay: .04s; }
.po-checkout-grid .po-panel:nth-child(2) { animation-delay: .09s; }
.po-checkout-grid .po-panel:nth-child(3) { animation-delay: .13s; }

/* Con el dropdown de Localidades abierto, este panel debe pintarse por
   encima de los paneles siguientes (ej. "Forma de pago"), que si no
   quedan por delante al ser posteriores en el documento. */
.po-panel:has(.po-combo-dropdown:not(.is-hidden)) {
  z-index: 50;
}

.po-panel-title {
  margin: 0;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 400;
  color: var(--ml-text);
  border-bottom: 1px solid var(--ml-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-panel-title--with-action {
  justify-content: space-between;
}

.po-infobar-toggle-btn {
  font-size: 11px;
  font-weight: 500;
  color: #14667c;
  background: none;
  border: 1px solid #14667c;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.po-infobar-toggle-btn:hover {
  background: #14667c;
  color: #fff;
}

.po-panel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--ml-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.po-panel-body {
  padding: 16px;
  overflow: visible;
}

.po-panel--collapsible > .po-panel-title {
  cursor: pointer;
  user-select: none;
}

.po-panel--collapsible .po-panel-body {
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.po-panel--collapsible.is-open .po-panel-body {
  max-height: 1200px;
  padding-top: 16px;
  padding-bottom: 16px;
  overflow: visible;
}

.po-panel-collapse-arrow {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  transition: transform 0.3s ease;
  display: inline-block;
}

.po-panel--collapsible.is-open .po-panel-collapse-arrow {
  transform: rotate(180deg);
}

/* ── Opciones (forma de envío / pago) ── */
.po-option-list {
  display: grid;
  gap: 8px;
}

.po-option-accordion {
  gap: 0;
}

.po-option-group {
  border: 1px solid #D9D9D9;
  border-radius: var(--ml-radius);
  overflow: hidden;
  margin-bottom: 8px;
}

/* Con el subpanel desplegado, no recortar: el combo de Localidades
   despliega un dropdown absoluto que necesita salir de esta caja. */
.po-option-group:has(> .po-subpanel:not(.is-hidden)) {
  overflow: visible;
}

.po-option-group:last-child {
  margin-bottom: 0;
}

.po-option-group > .po-option {
  border: none;
  border-radius: 0;
  margin: 0;
}

.po-option-group > .po-option:hover {
  transform: none;
  box-shadow: none;
}

.po-option-group .po-subpanel {
  border-top: 1px solid #E0E0E0;
  background: #F8F9FF;
  margin-top: 0;
  padding: 14px;
  border-radius: 0;
}

.po-option-group .po-subpanel.is-hidden {
  border-top-color: transparent;
}

/* ── Etiqueta de opción ── */
.po-option {
  border: 1px solid #D9D9D9;
  border-radius: var(--ml-radius);
  padding: 14px 42px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  font-size: 14px;
  color: var(--ml-text);
  background: var(--ml-white);
  transition: border-color .15s, background .15s;
}

.po-option::after {
  content: '\203A'; /* › */
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #BBBBBB;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.po-option:hover {
  border-color: var(--ml-blue);
  background: #F5F9FF;
}

.po-option:hover::after {
  color: var(--ml-blue);
}

.po-option input {
  margin: 0;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.po-option small {
  display: block;
  color: var(--ml-text2);
  font-size: 12px;
}

/* Estado seleccionado */
.po-option.is-selected {
  border-color: var(--ml-blue);
  background: #EBF2FF;
  color: var(--ml-text);
  font-weight: 700;
}

.po-option.is-selected::after {
  color: var(--ml-blue);
  content: '\2713'; /* ✓ */
  font-size: 16px;
  font-weight: 700;
}

.po-option.is-selected:hover {
  background: #DDE9FF;
}

.po-option.is-selected small {
  color: var(--ml-text2);
}

/* Opción toggle (sucursales / Factura A) */
.po-option--toggle::after {
  content: '\2610';
  font-size: 18px;
  opacity: .5;
  font-weight: 400;
}

.po-option--toggle.is-selected {
  border-color: var(--ml-blue);
  background: #EBF2FF;
}

.po-option--toggle.is-selected:hover {
  background: #DDE9FF;
}

.po-option--toggle.is-selected::after {
  content: '\2713';
  font-size: 16px;
  font-weight: 900;
  opacity: 1;
  color: var(--ml-blue);
}

/* Sucursales dentro del subpanel */
.po-subpanel .po-option--toggle {
  background: var(--ml-white);
  border-color: #BDD4F9;
  color: var(--ml-text);
}

.po-subpanel .po-option--toggle::after {
  color: #BDD4F9;
  opacity: 1;
}

.po-subpanel .po-option--toggle:hover {
  border-color: var(--ml-blue);
  background: #F5F9FF;
}

.po-subpanel .po-option--toggle.is-selected {
  background: var(--ml-blue);
  border-color: var(--ml-blue);
  color: #fff;
  font-weight: 600;
}

.po-subpanel .po-option--toggle.is-selected::after {
  content: '\2713';
  color: #fff;
  opacity: 1;
}

.po-subpanel .po-option--toggle.is-selected:hover {
  background: var(--ml-blue-dk);
  border-color: var(--ml-blue-dk);
}

.po-subpanel .po-option {
  background: var(--ml-white);
  border-color: #BDD4F9;
  color: var(--ml-text);
  opacity: .8;
}

.po-subpanel .po-option::after {
  color: #BDD4F9;
}

.po-subpanel .po-option small {
  color: var(--ml-text2);
}

.po-subpanel .po-option:hover {
  border-color: var(--ml-blue);
  background: #F5F9FF;
  opacity: 1;
}

.po-option--sm {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}

/* ── Factura A: estilo secundario ── */
.po-subpanel--factura {
  margin-top: 8px;
  border-top: 1px solid var(--ml-border);
  padding-top: 10px;
}

.po-subpanel--factura .po-option--toggle {
  background: #fff;
  border: 1px dashed #BDD4F9;
  color: var(--ml-text2);
  font-size: 13px;
  font-weight: 400;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--ml-radius);
}

.po-subpanel--factura .po-option--toggle::after {
  color: #BDD4F9;
  opacity: 1;
}

.po-subpanel--factura .po-option--toggle:hover {
  border-color: var(--ml-blue);
  background: #F5F9FF;
  color: var(--ml-blue);
}

.po-subpanel--factura .po-option--toggle.is-selected {
  background: #EBF2FF;
  border: 1px dashed var(--ml-blue);
  color: var(--ml-blue);
}

.po-subpanel--factura .po-option--toggle.is-selected::after {
  content: '\2713';
  color: var(--ml-blue);
  opacity: 1;
}

/* ── Logo MercadoPago ── */
.po-mp-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* ── Subpanel / animación ── */
.po-subpanel {
  margin-top: 10px;
  border-top: 1px dashed var(--ml-border);
  padding-top: 10px;
}

.po-anim-ready .po-subpanel {
  transition: max-height .32s ease, opacity .28s ease,
              border-top-color .25s ease, margin-top .28s ease, padding-top .28s ease;
}

.po-subpanel.is-hidden {
  display: block !important;
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-top-color: transparent;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.is-hidden {
  display: none;
}

.po-anim-ready #po-cuit-wrap {
  transition: max-height .28s ease, opacity .22s ease, margin-top .22s ease;
}

#po-cuit-wrap.is-hidden {
  display: block !important;
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  margin-top: 0 !important;
}

/* ── Campos de formulario ── */
.po-branch-hint {
  margin: 0 0 10px;
  color: var(--ml-text2);
  font-size: 13px;
}

.po-home-help {
  margin: 0 0 10px;
  color: var(--ml-blue);
  font-weight: 600;
  font-size: 13px;
}

.po-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .po-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .po-field-grid .full {
    grid-column: 1 / -1;
  }
}

.po-field label {
  display: block;
  font-size: 12px;
  color: var(--ml-text2);
  margin-bottom: 4px;
}

.po-field-required {
  color: var(--ml-red);
  font-weight: 700;
}

.po-field input,
.po-field select,
.po-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #D9D9D9;
  border-radius: var(--ml-radius);
  padding: 9px 10px;
  font-size: 14px;
  font-family: var(--ml-font);
  color: var(--ml-text);
  transition: border-color .15s;
  background: var(--ml-white);
}

.po-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23707070'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.po-field input:focus,
.po-field select:focus,
.po-field textarea:focus {
  outline: none;
  border-color: var(--ml-blue);
  box-shadow: 0 0 0 2px rgba(52,131,250,.15);
}

.po-combo {
  position: relative;
}

.po-combo input {
  padding-right: 32px !important;
  cursor: pointer;
}

.po-combo::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23707070'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 6px;
  pointer-events: none;
}

.po-combo-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: var(--ml-white);
  border: 1px solid #D9D9D9;
  border-radius: var(--ml-radius);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.po-combo-item {
  padding: 10px 12px;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer;
  font-size: 14px;
}

.po-combo-item:hover,
.po-combo-item.active {
  background: #EBF2FF;
  color: var(--ml-blue);
}

.po-combo-empty {
  padding: 10px 12px;
  color: var(--ml-text2);
  font-size: 13px;
}

/* ── Botón calcular envío ── */
.po-calc-shipping-btn {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: var(--ml-radius);
  background: var(--ml-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  font-family: var(--ml-font);
  transition: background .15s;
}

.po-calc-shipping-btn:hover {
  background: var(--ml-blue-dk);
}

.po-calc-shipping-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.po-calc-shipping-btn.is-loading {
  position: relative;
  color: rgba(255,255,255,.9);
}

.po-calc-shipping-btn.is-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  animation: poSpin .75s linear infinite;
}

.po-home-shipping-result {
  margin-top: 10px;
  border: 1px solid #BDD4F9;
  border-radius: var(--ml-radius);
  padding: 12px;
  background: #EBF2FF;
}

.po-home-shipping-cost {
  color: var(--ml-text);
  font-weight: 700;
  font-size: 26px;
}

.po-home-shipping-branch {
  margin-top: 4px;
  color: var(--ml-blue);
  font-size: 13px;
  font-weight: 600;
}

.po-home-shipping-error {
  margin-top: 10px;
  background: #FFF0F1;
  border: 1px solid #FFCDD0;
  color: #C0392B;
  border-radius: var(--ml-radius);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Estado checkout ── */
.po-checkout-state {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ml-text2);
}

/* ── Grilla cuenta: login + crear cuenta ── */
.po-account-wrap {
  max-width: 1100px;
  padding-top: 10px;
  padding-bottom: 60px;
}

.po-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 700px) {
  .po-account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.po-account-grid .po-panel {
  display: flex;
  flex-direction: column;
}

.po-account-grid .po-panel-title {
  font-size: 20px;
  padding: 20px 24px;
}

.po-account-grid .po-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px;
}

.po-account-grid .po-panel-body form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.po-account-grid .po-field input {
  padding: 13px 12px;
  font-size: 15px;
}

.po-account-grid .po-calc-shipping-btn {
  padding: 15px;
  font-size: 15px;
  margin-top: auto;
}

.po-account-help {
  margin: 0 0 16px;
  color: var(--ml-text2);
  font-weight: 400;
  font-size: 14px;
}

.po-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ml-text2);
  cursor: pointer;
}

.po-checkbox-inline input {
  width: auto;
}

.po-btn-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
  color: #fff !important;
}

/* ── Panel Resumen: layout 2 columnas ── */
.po-review-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 760px) {
  .po-review-cols {
    grid-template-columns: 1fr 320px;
  }
}

@media (min-width: 1000px) {
  .po-review-cols {
    grid-template-columns: 1fr 360px;
  }
}

.po-review-col-summary-card {
  background: #F8F9FA;
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  padding: 16px;
}

/* ── Panel Resumen ── */
.po-review-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ml-text2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.po-review-lines {
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  background: var(--ml-white);
  margin-bottom: 14px;
  overflow: hidden;
}

.po-review-lines.is-busy {
  opacity: .6;
  pointer-events: none;
}

.po-review-lines.po-review-scroll {
  max-height: 380px;
  overflow-y: auto;
}

.po-review-truncate-note {
  padding: 8px 10px 0;
  font-size: 11px;
  color: var(--ml-text2);
}

.po-review-toggle {
  width: calc(100% - 20px);
  margin: 8px 10px 10px;
  border: 1px solid var(--ml-blue);
  background: #fff;
  color: var(--ml-blue);
  border-radius: var(--ml-radius);
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ml-font);
  transition: background .15s;
}

.po-review-toggle:hover {
  background: var(--ml-blue);
  color: #fff;
}

.po-review-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--ml-text2);
  font-size: 13px;
}

/* ── Líneas de producto en resumen ── */
.po-cart-lines {
  display: flex;
  flex-direction: column;
}

.po-cart-line {
  border: 0;
  border-bottom: 1px solid var(--ml-border);
  padding: 12px;
  background: var(--ml-white);
}

.po-cart-line:last-child {
  border-bottom: none;
}

.po-cart-line-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.po-cart-thumb {
  width: 52px;
  min-width: 52px;
  height: 57px;
  border: 1px solid var(--ml-border);
  background: #F8F8F8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.po-cart-line-content {
  min-width: 0;
  flex: 1;
}

.po-cart-line-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.po-cart-line-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--ml-text);
  line-height: 1.35;
}

.po-cart-line-sub {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--ml-text);
  white-space: nowrap;
}

.po-cart-line-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ml-text2);
}

.po-cart-edit-actions {
  margin-top: 0px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.po-cart-edit-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1.5px solid #D9D9D9;
  background: #fff;
  color: var(--ml-text2);
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
  font-family: var(--ml-font);
}

.po-cart-edit-btn:hover:not(:disabled) {
  border-color: var(--ml-blue);
  background: #EBF2FF;
  color: var(--ml-blue);
}

.po-cart-edit-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.po-cart-edit-btn.remove {
  margin-left: auto;
  border-color: #E0E0E0;
  color: rgb(192, 57, 43);
  font-size: 14px;
}

/* ── Layout review (carrito.php) igual al popup ── */
.po-cart-line--review {
  padding: 8px 10px;
}

.po-cart-line--review .po-cart-thumb {
  width: 40px;
  min-width: 40px;
  height: 44px;
}

/* Mobile: flex-wrap para que controls + trash queden en la misma fila */
.po-cart-line--review .po-cart-line-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 0;
}

.po-cart-line--review .po-cart-line-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0;
}

.po-cart-edit-actions--review {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.po-cart-remove--review {
  flex-shrink: 0;
  margin-left: 8px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
}

.po-cart-edit-actions--review .po-cart-edit-btn {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  font-size: 13px !important;
}

.po-cart-edit-actions--review .po-cart-edit-qty {
  width: 26px !important;
  height: 20px !important;
  font-size: 11px !important;
  padding: 0 2px !important;
  text-align: center;
}

.po-cart-line-name--review {
  width: 100%;
  font-size: 12px;
  color: #555;
  font-weight: 400;
  line-height: 1.3;
}

/* Placeholder invisible para reservar el espacio del chip cuando no hay descuento */
.po-cart-off-chip--ghost {
  visibility: hidden;
  min-width: 52px;
  display: inline-flex;
}

/* ── Desktop: badges + controles + precio en la misma fila ── */
@media (min-width: 769px) {
  .po-cart-line--review .po-cart-line-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
  }

  /* Disolver po-cart-line-top para que badges y price-wrap entren en el grid padre */
  .po-cart-line--review .po-cart-line-top {
    display: contents;
  }

  .po-cart-line--review .po-cart-line-badges {
    grid-column: 1;
    grid-row: 1;
    min-width: 140px;
  }

  .po-cart-edit-actions--review {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .po-cart-line--review .po-cart-line-price-wrap {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }

  .po-cart-remove--review {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
  }

  .po-cart-line-name--review {
    grid-column: 1 / 3;
    grid-row: 2;
  }
}

/* Hover del trash: fondo rojo + ícono blanco (sobreescribe checkout-v2 con !important) */
.po-cart-btn-trash:hover:not(:disabled) {
  background-color: #c03929 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E") !important;
  border-color: #c03929 !important;
}

.po-cart-edit-btn.remove:hover:not(:disabled) {
  border-color: var(--ml-red);
  background: #FFF0F1;
  color: var(--ml-red);
}

.po-cart-edit-qty {
  width: 46px;
  height: 28px;
  border: 1px solid #D9D9D9;
  border-radius: var(--ml-radius);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ml-text);
  background: var(--ml-white);
  font-family: var(--ml-font);
}

/* ── Precio info row en línea de carrito ── */
.po-line-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.po-line-canal {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.po-line-canal.is-min {
  background: #eef3ff;
  color: #2968c8;
}

.po-line-canal.is-may {
  background: #e8f7ee;
  color: #1a7c41;
}

.po-line-caja-price {
  font-size: 11px;
  color: var(--ml-text2);
  transition: color .15s, font-weight .15s;
}

.po-cart-line-meta.is-price-active {
  color: #1a1a1a;
  font-weight: 600;
}

.po-cart-line-meta.is-price-dim {
  color: #bbb;
}

.po-line-caja-price.is-price-active {
  color: #1a7c41;
  font-weight: 700;
}

.po-line-caja-price.is-price-dim {
  color: #ccc;
}

.po-line-bonif {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e8f7ee;
  color: #1a7c41;
}

.po-line-bonif-hint {
  font-size: 11px;
  color: #e07000;
  margin-left: 10px;
}

/* ── Toggle Unidades / Caja ── */
.po-line-mode-toggle {
  display: flex;
  border: 1px solid #c5d8fd;
  border-radius: 999px;
  overflow: hidden;
  margin-left: 4px;
}

.po-line-mode-btn {
  border: 0;
  background: #fff;
  color: #3483FA;
  font-size: 11px;
  font-weight: 600;
  padding: 0 10px;
  height: 26px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.po-line-mode-btn + .po-line-mode-btn {
  border-left: 1px solid #c5d8fd;
}

.po-line-mode-btn.is-active {
  background: #3483FA;
  color: #fff;
}

.po-line-mode-btn:hover:not(.is-active) {
  background: #ebf2ff;
}

/* ── Resumen totales ── */
.po-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ml-border);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ml-text);
}

.po-summary-row--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.po-summary-row--stacked strong {
  align-self: flex-end;
}

.po-summary-row-inline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--ml-border);
  font-size: 12px;
}

.po-summary-row-inline span {
  color: var(--ml-text2);
}

.po-summary-row strong {
  color: var(--ml-text);
  font-weight: 600;
}

.po-summary-row strong.is-updated {
  animation: poPulse .32s ease;
}

.po-summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--ml-text);
  border-bottom: 0;
  padding-top: 12px;
  padding-bottom: 10px;
}

.po-summary-row.total strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ml-text);
}

/* ── Nota envío gratis ── */
.po-free-shipping-note {
  margin: 8px 0 4px;
  background: #F0FBF5;
  border: 1px solid #B8EED0;
  color: var(--ml-green);
  border-radius: var(--ml-radius);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.po-free-shipping-note.is-applied {
  background: #EDF9F0;
  border-color: #CFE8D7;
  color: var(--ml-green);
}

.po-free-shipping-note.is-pending {
  background: #EBF2FF;
  border-color: #BDD4F9;
  color: var(--ml-blue);
}

/* ── Selecciones resumen ── */
.po-selections-summary {
  margin: 10px 0 4px;
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  background: #F8F9FA;
  padding: 8px 12px;
}

.po-selections-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ml-text);
  padding: 3px 0;
}

.po-selections-row > span {
  color: var(--ml-text2);
  font-weight: 500;
}

.po-selections-row strong {
  color: var(--ml-blue);
  font-weight: 700;
  text-align: right;
}

/* ── Botón Finalizar ── */
.po-finalize {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: var(--ml-radius);
  background: var(--ml-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  font-family: var(--ml-font);
  transition: background .15s;
  letter-spacing: .2px;
}

.po-finalize:hover:not([disabled]) {
  background: var(--ml-blue-dk);
}

.po-finalize[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ── Infobar (tira resumen) ── */
.po-cart-infobar {
  background: var(--ml-white);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius);
  margin: 0 0 16px;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease, margin .2s ease;
  box-shadow: var(--ml-shadow);
}

.po-cart-infobar.is-collapsed {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  border-color: transparent;
}

.po-cart-infobar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  gap: 0;
}

.po-cart-infobar-cell {
  display: flex;
  flex-direction: column;
  padding: 4px 16px;
  border-right: 1px solid var(--ml-border);
}

.po-cart-infobar-cell:first-child { padding-left: 0; }
.po-cart-infobar-cell:last-of-type { border-right: none; }

.po-cart-infobar-cell--ref {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.po-cart-infobar-lbl {
  font-size: 9px;
  color: #AAAAAA;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 500;
  margin-bottom: 2px;
}

.po-cart-infobar-cell strong {
  font-size: 13px;
  color: var(--ml-text);
  font-weight: 600;
}

.po-cart-infobar-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--ml-border);
  border-radius: 4px;
  font-size: 10px;
  color: var(--ml-text2);
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--ml-font);
}

.po-cart-infobar-toggle:hover {
  border-color: var(--ml-blue);
  color: var(--ml-blue);
}

.po-cart-infobar-details {
  border-top: 1px solid var(--ml-border);
  padding: 10px 16px 12px;
  display: none;
}

/* ── Mínimos ── */
.po-checkout-minimos {
  margin: 8px 0 10px;
  border: 1px solid #BDD4F9;
  background: #EBF2FF;
  border-radius: var(--ml-radius);
  padding: 10px 12px;
}

.po-checkout-minimos-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ml-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.po-checkout-minimos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ml-text);
  padding: 2px 0;
}

.po-checkout-minimos-row strong {
  color: var(--ml-blue);
}

/* ── Badge envío gratis ── */
.po-free-shipping-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.po-free-shipping-badge.is-active {
  background: #D4F1DD;
  color: #1D6F3A;
  border: 1px solid #A8DDB9;
}

.po-free-shipping-badge.is-inactive {
  background: #F0F0F0;
  color: #888;
  border: 1px solid #DDD;
}

/* ── Botón flotante ── */
.po-cart-float-btn {
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 7500;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #666;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}

.po-cart-float-btn:hover,
.po-cart-float-btn.is-active {
  background: var(--ml-blue-dk);
  transform: scale(1.05);
}

/* ── Blockers ── */

/* Desktop: card estático dentro del panel resumen (sticky) */
.po-blockers {
  position: static;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--ml-radius);
  background: #FFF5F5;
  border: 1px solid #FFCDD0;
  font-size: 12px;
  line-height: 1.6;
  color: #C0392B;
}

.po-blockers strong {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.po-blockers ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

@media (max-width: 959px) {
  .po-blockers {
    position: static;
    width: 100%;
    margin-top: 12px;
    border-radius: var(--ml-radius);
    border: 1px solid #FFCDD0;
    background: #FFF5F5;
    padding: 10px 12px;
    box-shadow: 0 3px 10px rgba(192,57,43,.15);
  }

  /* Empuja el wrap para que la barra roja superior no tape el contenido */
  body.po-checkout-page.has-blockers .po-checkout-wrap {
    padding-top: 18px;
    margin: 85px auto;
  }
}

/* ── Modal confirmación ── */
.po-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.po-confirm-box {
  position: relative;
  z-index: 1;
  background: var(--ml-white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  padding: 28px 24px 20px;
  max-width: 360px;
  width: calc(100% - 32px);
  text-align: center;
  font-family: var(--ml-font);
}

.po-confirm-msg {
  font-size: 15px;
  color: var(--ml-text);
  margin: 0 0 22px;
  line-height: 1.5;
  font-weight: 500;
}

.po-confirm-extra {
  margin: 0 0 18px;
}

.po-confirm-box.is-ticket {
  max-width: 390px;
  animation: poTicketPop .28s ease both;
}

.po-ticket {
  background: var(--ml-white);
  border: 1px dashed #D7D7D7;
  border-radius: 8px;
  padding: 12px 12px 10px;
  text-align: left;
  position: relative;
}

.po-confirm-box.is-ticket .po-ticket {
  animation: poTicketCard .34s ease both;
}

.po-confirm-box.is-ticket .po-ticket:before,
.po-confirm-box.is-ticket .po-ticket:after { display: none; }

.po-confirm-box.is-ticket .po-confirm-actions { margin-top: 10px; }

.po-confirm-box.is-ticket .po-confirm-btn--ok {
  background: var(--ml-blue);
}

.po-confirm-box.is-ticket .po-confirm-btn--ok:hover {
  background: var(--ml-blue-dk);
}

.po-ticket:before,
.po-ticket:after {
  content: '';
  position: absolute;
  top: 48%;
  width: 14px; height: 14px;
  background: var(--ml-white);
  border: 1px solid #D7D7D7;
  border-radius: 50%;
}

.po-ticket:before { left: -8px; }
.po-ticket:after { right: -8px; }

.po-ticket-head {
  font-size: 12px;
  font-weight: 800;
  color: var(--ml-blue);
  letter-spacing: .7px;
  margin-bottom: 8px;
  text-align: center;
}

.po-ticket-row,
.po-ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed #ECECEC;
}

.po-ticket-row span, .po-ticket-total span { color: var(--ml-text2); }

.po-ticket-row strong, .po-ticket-total strong {
  color: var(--ml-text);
  font-weight: 700;
  text-align: right;
}

.po-ticket-total {
  margin-top: 2px;
  border-bottom: 0;
  padding-top: 8px;
}

.po-ticket-total strong {
  color: var(--ml-blue);
  font-size: 16px;
}

.po-ticket-home-btn {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: var(--ml-radius);
  background: var(--ml-blue);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ml-font);
}

.po-ticket-home-btn:hover { background: var(--ml-blue-dk); }

.po-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.po-confirm-btn {
  flex: 1;
  border: 0;
  border-radius: var(--ml-radius);
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ml-font);
}

.po-confirm-btn--cancel {
  background: #F0F0F0;
  color: #444;
}

.po-confirm-btn--cancel:hover { background: #E0E0E0; }

.po-confirm-btn--ok {
  background: var(--ml-blue);
  color: #fff;
}

.po-confirm-btn--ok:hover { background: var(--ml-blue-dk); }

body.po-modal-open { overflow: hidden; }

/* ── Progress de finalización ── */
.po-finalize-progress {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9100;
  width: min(520px, calc(100% - 24px));
  background: var(--ml-white);
  border: 1px solid #BDD4F9;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(52,131,250,.18);
  padding: 12px 14px;
}

.po-finalize-progress__text {
  font-size: 12px;
  color: var(--ml-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.po-finalize-progress__track {
  height: 6px;
  border-radius: 999px;
  background: #E0EEFF;
  overflow: hidden;
}

.po-finalize-progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--ml-blue), #5BA4F5);
  transition: width .2s ease;
}

/* ── Sticky bar móvil ── */
.po-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1A1A2E;
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -3px 16px rgba(0,0,0,.22);
  font-family: var(--ml-font);
}

.po-sticky-bar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.po-sticky-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.po-sticky-total {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.po-sticky-btn {
  border: 0;
  border-radius: var(--ml-radius);
  background: var(--ml-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  font-family: var(--ml-font);
}

.po-sticky-btn:hover { background: var(--ml-blue-dk); }

.po-sticky-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (max-width: 959px) {
  .po-sticky-bar { display: flex; }
  body.po-checkout-page { padding-bottom: 74px; }
}

/* ── Dev toolbar ── */
.po-dev-toolbar {
  position: fixed;
  bottom: 70px;
  left: 8px;
  z-index: 8000;
  display: flex;
  gap: 4px;
  
}

.po-checkout-debug-btn,
.po-checkout-tutorial-btn {
  border: 0;
  background: rgba(30,30,30,.4);
  color: rgba(255,255,255,.65);
  border-radius: 4px;
  padding: 4px 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.po-checkout-debug-btn:hover,
.po-checkout-tutorial-btn:hover {
  background: rgba(30,30,30,.7);
  color: #fff;
}

/* ── Mail debug panel ── */
.po-mail-debug-panel {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 9500;
  width: min(320px, calc(100% - 24px));
  background: var(--ml-white);
  border: 1px solid var(--ml-border);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  overflow: hidden;
}

.po-mail-debug-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--ml-blue);
  color: #fff;
  font-size: 12px;
}

.po-mail-debug-toggle {
  border: 0;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.po-mail-debug-body { padding: 10px; }

.po-mail-debug-input {
  width: 100%;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.po-mail-debug-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.po-mail-debug-btn {
  border: 0;
  background: var(--ml-blue);
  color: #fff;
  border-radius: 4px;
  padding: 7px 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.po-mail-debug-btn.is-alt { background: #00A650; }
.po-mail-debug-btn.is-off { background: var(--ml-red); }

.po-mail-debug-state {
  margin-top: 8px;
  font-size: 12px;
  color: #444;
}

.po-mail-debug-state span { font-weight: 700; }

/* ── Tutorial overlay ── */
.po-ck-tutorial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,12,24,.72);
  z-index: 9800;
  display: none;
}

.po-ck-tutorial-backdrop.show { display: block; }
.po-ck-tutorial-host { position: relative !important; z-index: 9801 !important; }

.po-ck-tutorial-highlight {
  position: relative !important;
  z-index: 9802 !important;
  outline: 3px solid #FFE400;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255,228,0,.18);
}

.po-ck-tutorial-panel {
  position: fixed;
  width: min(380px, calc(100vw - 20px));
  background: var(--ml-white);
  color: var(--ml-text);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  padding: 14px;
  z-index: 9803;
  display: none;
}

.po-ck-tutorial-panel.show { display: block; }

.po-ck-tutorial-panel:before {
  content: '';
  position: absolute;
  top: -7px; left: 18px;
  width: 14px; height: 14px;
  background: var(--ml-white);
  transform: rotate(45deg);
}

.po-ck-tutorial-count {
  font-size: 10px;
  font-weight: 800;
  color: var(--ml-text2);
  text-transform: uppercase;
}

.po-ck-tutorial-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: #162447;
}

.po-ck-tutorial-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #34415F;
}

.po-ck-tutorial-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.po-ck-tutorial-actions-right { display: flex; gap: 8px; }

.po-ck-tutorial-btn {
  border: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--ml-font);
}

.po-ck-tutorial-btn.prev { background: #E8EEF9; color: #223765; }
.po-ck-tutorial-btn.next { background: var(--ml-blue); color: #fff; }
.po-ck-tutorial-btn.close { background: #1A2444; color: #fff; }
.po-ck-tutorial-btn:disabled { opacity: .45; cursor: default; }

/* ── Animaciones ── */
@keyframes poFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes poSpin {
  to { transform: rotate(360deg); }
}

@keyframes poPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes poTicketPop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes poTicketCard {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nota de fase ── */
.po-phase-note {
  margin: 12px 0 0;
  background: #EBF2FF;
  border: 1px solid #BDD4F9;
  color: var(--ml-blue);
  border-radius: var(--ml-radius);
  padding: 10px;
  font-size: 13px;
}

/* ── Popup summary interno ── */
.po-cart-popup-summary {
  border: 1px solid #BDD4F9;
  background: #EBF2FF;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: var(--ml-radius);
}

.po-cart-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ml-text);
  margin-bottom: 4px;
}

.po-cart-popup-row:last-child { margin-bottom: 0; }

/* CUIT validation states */
#po-cuit.po-cuit--valid {
  border-color: #00A650;
  box-shadow: 0 0 0 2px rgba(0,166,80,.15);
}
#po-cuit.po-cuit--invalid {
  border-color: var(--ml-red);
  box-shadow: 0 0 0 2px rgba(242,61,79,.15);
}
.po-cuit-hint {
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.3;
}
.po-cuit-hint--ok  { color: #00A650; }
.po-cuit-hint--error { color: var(--ml-red); }
