/* Minimal styling so it fits Elessi without breaking buttons/layout */
.whapido-pca-field-wrap {
  margin: 10px 0 14px 0;
  width: 100%;
}

.whapido-pca-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.whapido-pca-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

/* Opciones alineadas (aunque el texto sea largo) */
.whapido-pca-cb-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 16px;
  align-items: start;
}

.whapido-pca-rb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cada opción: checkbox/radio + texto + cantidad (y luego precio) */
.whapido-pca-cb-item,
.whapido-pca-rb-item {
  display: grid;
  /* col1: checkbox/radio | col2: texto | col3: qty | col4: precio */
  grid-template-columns: 18px 1fr auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  width: 100%;
}

.whapido-pca-cb-item input[type="checkbox"],
.whapido-pca-rb-item input[type="radio"] {
  margin: 0;
}

.whpc49-option__price {
  opacity: .85;
  font-size: .95em;
  margin-left: 6px;
  white-space: nowrap;
  justify-self: end;
}

/* Mini badge per option (e.g. "Nuevo") */
.whpc49-option__badge{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 8px;
  border-radius:9999px;
  background:#25D366; /* WhatsApp green */
  color:#fff;
  font-size:10px;
  line-height:1;
  white-space:nowrap;
}

.whpc49-option__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-width: 0;
}

.whpc49-qty {
  width: 2.2em !important;
  /* ~2 dígitos */
  min-width: 2.2em !important;
  max-width: 2.2em !important;
  height: 26px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-align: center !important;
  margin: 0 !important;
}

.whpc49-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 10px;
  overflow: hidden;
}

.whpc49-qty-btn {
  width: 26px;
  height: 26px;
  line-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.whpc49-qty-btn--minus {
  background: #ffecec;
  color: #b00020;
}

.whpc49-qty-btn--plus {
  background: #eaffea;
  color: #0b6b0b;
}

.whpc49-qty {
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, .14);
  border-right: 1px solid rgba(0, 0, 0, .14);
}

.whpc49-qty-btn:active {
  transform: scale(.98);
}

/* Quita flechas nativas en algunos browsers */
.whpc49-qty::-webkit-outer-spin-button,
.whpc49-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.whpc49-qty {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* --- Whapido: bloques prolijos + alineación columnas (v0.3.4) --- */
.whpc49-qty-counter {
  float: right;
  color: #888;
  font-size: 11px;
  font-weight: 400;
  margin-top: 0;
  margin-right: 0;
}

.whpc49-qty-counter.whpc49-limit-reached {
  color: #15803d;
}

.whpc49-field {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 12px 12px;
  margin: 12px 0;
  background: rgba(255, 255, 255, .55);
}

.whpc49-field .whpc49-label,
.whpc49-field .whapido-pca-label {
  margin-bottom: 10px;
}

/* Listado de opciones */
.whpc49-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cada opción como fila con columnas: izquierda (input + texto) / derecha (qty + precio) */
.whpc49-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  justify-content: space-between;
}

.whpc49-option__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.whpc49-option__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

/* Label fila completa (para el render "simple" checkbox/radio): izquierda texto / derecha badge+precio */
.whpc49-option__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:8px;
}
.whpc49-option__row .whpc49-option__text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whpc49-option__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whpc49-option__price {
  min-width: 64px;
  text-align: right;
}


/* Input (radio/checkbox) */
.whpc49-option>input.whpc49-input {
  margin: 0;
  flex: 0 0 auto;
}

/* Texto: ocupa el espacio, siempre a la izquierda */
.whpc49-option__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.25;
}

/* Cantidad se va a la derecha */
.whpc49-option .whpc49-qty-wrap {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Precio a la derecha (si no hay qty, también empuja a la derecha) */
.whpc49-option__price {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  opacity: .95;
}

/* Si hay qty antes del precio, no queremos que el precio empuje todo (ya lo empuja la qty) */
.whpc49-option .whpc49-qty-wrap+.whpc49-option__price {
  margin-left: 8px;
}

/* Botones +/- bien pegados y notorios */
.whpc49-qty-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.whpc49-qty-btn {
  border: 0;
}

.whpc49-qty-btn--minus {
  background: rgba(255, 59, 48, .12);
  color: #b42318;
}

.whpc49-qty-btn--plus {
  background: rgba(52, 199, 89, .14);
  color: #0b6b0b;
}

/* Un poquito más compacto en general */
.whpc49-qty,
.whpc49-qty-btn {
  height: 30px;
}

/* mobile: un poco menos padding para que respire */
@media (max-width: 480px) {
  .whpc49-field {
    padding: 10px 10px;
    border-radius: 12px;
  }
}

/* Títulos de bloques (labels) alineados a la izquierda */
.whpc49-field .whapido-pca-label,
.whpc49-label {
  text-align: left !important;
  display: block;
  width: 100%;
}


.whpc49-max-msg {
  font-size: 12px;
  margin: 6px 0 0;
  opacity: .85;
}

.whpc49-option--disabled,
.whpc49-option--admin-disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-notices-wrapper {
  position: relative !important;
  z-index: 999999999 !important;
}

/* Category Grouping Styles */
.whpc49-cat-title {
  font-size: 1.05em;
  font-weight: 700;
  margin: 18px 0 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 6px;
  color: var(--whpc49-title, inherit);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.whpc49-cat-limit-info {
  font-size: 0.8em;
  font-weight: normal;
  margin-left: 10px;
  color: #888;
}

.whpc49-cat-qty-counter {
  color: #888;
  font-size: 0.8em;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
}

.whpc49-cat-qty-counter.whpc49-cat-limit-reached {
  color: #15803d;
  font-weight: 700;
}
/* Bulk Variations container (WHPBV) can hide the default form; ensure fields are visible */
#whpbv .whpc49-fields{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin-top:12px;
}


/* v0.8.0 - Qty controls alignment (especially inside Bulk Variations / Elessi) */
.whpc49-qty-wrap{display:inline-flex;align-items:center;gap:6px;}
.whpc49-qty-btn{width:28px;height:28px;line-height:26px;padding:0;border-radius:6px;border:1px solid rgba(0,0,0,.12);background:#fff;}
.whpc49-qty-btn:disabled{opacity:.4;cursor:not-allowed;}
.whpc49-qty-input{width:44px;min-width:44px;max-width:44px;height:28px;padding:0 6px;text-align:center;border-radius:6px;border:1px solid rgba(0,0,0,.12);}
#whpbv .whpc49-fields .whpc49-option{align-items:flex-start;}
#whpbv .whpc49-fields .whpc49-option__label{gap:8px;}
#whpbv .whpc49-fields .whpc49-option__price{white-space:nowrap;margin-left:6px;}

/* Disabled options: visible but not selectable */
.whpc49-option--disabled,
.whpc49-option--admin-disabled{
  opacity:.45;
  filter:grayscale(1);
  cursor:not-allowed;
}
.whpc49-option--disabled .whpc49-option__left,
.whpc49-option--disabled .whpc49-option__right,
.whpc49-option--admin-disabled .whpc49-option__left,
.whpc49-option--admin-disabled .whpc49-option__right{
  cursor:not-allowed;
}
.whpc49-option--disabled input,
.whpc49-option--admin-disabled input{
  cursor:not-allowed;
}


/* v0.9.7.3 - robust 3-column extras layout for simple + variable products */
.whpc49-field {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  box-shadow: none;
}
.whpc49-field + .whpc49-field {
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 8px;
  padding-top: 10px;
}
.whpc49-options {
  gap: 0;
}
.whpc49-option {
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr) auto;
  column-gap: 10px;
  align-items: center !important;
  width: 100%;
  padding: 8px 0;
}
.whpc49-option + .whpc49-option {
  border-top: 1px solid rgba(0,0,0,.06);
}
.whpc49-option__control {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.whpc49-option__control input.whpc49-input {
  margin: 0;
}
.whpc49-option__info {
  grid-column: 2;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.whpc49-option__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.whpc49-option__name,
.whpc49-option__text,
.whpc49-option__label {
  display: block;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left !important;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  font-weight: 600;
}
.whpc49-option__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  line-height: 1.1;
}
.whpc49-option__meta .whpc49-option__price,
.whpc49-option__price {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  text-align: left !important;
  white-space: normal;
  opacity: .9;
  font-size: .95em;
  justify-self: auto;
}
.whpc49-option__meta .whpc49-option__badge,
.whpc49-option__header .whpc49-option__badge {
  margin-left: 0;
  flex: 0 0 auto;
  align-self: flex-start;
}
.whpc49-option__qty {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  margin: 0;
}
.whpc49-option__qty--empty {
  display: none;
}
.whpc49-option .whpc49-qty-wrap {
  margin-left: 0;
}
/* Blindaje contra wrappers de producto variable / theme */
.single-product div.product .whpc49-option,
.variations_form .whpc49-option,
#whpbv .whpc49-option {
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr) auto !important;
  align-items: center !important;
}
.single-product div.product .whpc49-option__info,
.variations_form .whpc49-option__info,
#whpbv .whpc49-option__info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.single-product div.product .whpc49-option__price,
.variations_form .whpc49-option__price,
#whpbv .whpc49-option__price {
  width: 100% !important;
  text-align: left !important;
  margin: 0 !important;
}
.single-product div.product .whpc49-option__qty,
.variations_form .whpc49-option__qty,
#whpbv .whpc49-option__qty {
  justify-self: end !important;
}
@media (max-width: 480px) {
  .whpc49-option {
    grid-template-columns: 22px minmax(0,1fr) auto;
    column-gap: 8px;
    padding: 7px 0;
  }
  .whpc49-qty-btn,
  .whpc49-qty-input {
    height: 30px;
  }
}


/* v0.9.7.4 - restore Suggestive-style qty stepper without breaking variable layout */
.whpc49-option__qty,
.single-product div.product .whpc49-option__qty,
.variations_form .whpc49-option__qty,
#whpbv .whpc49-option__qty {
  justify-self: end !important;
  align-self: center !important;
}

.whpc49-option .whpc49-qty-wrap,
.single-product div.product .whpc49-option .whpc49-qty-wrap,
.variations_form .whpc49-option .whpc49-qty-wrap,
#whpbv .whpc49-option .whpc49-qty-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  min-width: 98px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid #d6dbe1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  overflow: hidden;
  margin-left: 0 !important;
}

.whpc49-option .whpc49-qty-btn,
.single-product div.product .whpc49-option .whpc49-qty-btn,
.variations_form .whpc49-option .whpc49-qty-btn,
#whpbv .whpc49-option .whpc49-qty-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  line-height: 24px;
  font-size: 19px;
  font-weight: 700;
}

.whpc49-option .whpc49-qty-btn--minus,
.whpc49-option .whpc49-qty-btn--plus {
  background: transparent !important;
  color: #1f2937 !important;
}

.whpc49-option .whpc49-qty-input,
.whpc49-option .whpc49-qty,
.single-product div.product .whpc49-option .whpc49-qty-input,
.single-product div.product .whpc49-option .whpc49-qty,
.variations_form .whpc49-option .whpc49-qty-input,
.variations_form .whpc49-option .whpc49-qty,
#whpbv .whpc49-option .whpc49-qty-input,
#whpbv .whpc49-option .whpc49-qty {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 24px !important;
  padding: 0 !important;
  margin: 0 6px !important;
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  line-height: 24px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  appearance: textfield;
}

.whpc49-option .whpc49-qty-input:focus,
.whpc49-option .whpc49-qty:focus {
  outline: none;
  box-shadow: none !important;
}

@media (max-width: 480px) {
  .whpc49-option .whpc49-qty-wrap,
  .single-product div.product .whpc49-option .whpc49-qty-wrap,
  .variations_form .whpc49-option .whpc49-qty-wrap,
  #whpbv .whpc49-option .whpc49-qty-wrap {
    min-width: 94px;
    height: 32px;
    padding: 0 5px;
  }

  .whpc49-option .whpc49-qty-btn,
  .single-product div.product .whpc49-option .whpc49-qty-btn,
  .variations_form .whpc49-option .whpc49-qty-btn,
  #whpbv .whpc49-option .whpc49-qty-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 18px;
  }
}


.whpc49-dozen-live-total{display:inline-flex;align-items:center;font-weight:700;white-space:nowrap;margin-right:12px;color:inherit;}
.whpc49-dozen-hidden-price{display:none !important;}

.whpc49-dozen-step-badge{display:none;margin:0 0 10px 0;padding:3px 15px;border-radius:999px;background:#25D366;color:#fff;font-size:13px;font-weight:500;line-height:1.35;width:-moz-fit-content;width:fit-content;max-width:100%;}
.whpc49-dozen-step-success{display:none !important;margin:0;font-size:0;line-height:0;color:transparent;}
.whpc49-atc-disabled{opacity:.55;pointer-events:none;}

.whpc49-dozen-cart-qty{display:inline-flex;align-items:center;justify-content:center;min-width:28px;font-weight:700;}

.whpc49-dozen-mini-cart-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 6px;
}


.whpc49-price-mask--dozen-table{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  line-height:1.25;
}

.whpc49-dozen-price-table__title{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#2d3748;
  text-transform:none;
}

.whpc49-dozen-price-table{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.whpc49-dozen-price-table__row{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}

.whpc49-dozen-price-table__label{
  font-size:14px;
  font-weight:600;
  color:#111827;
}

.whpc49-dozen-price-table__sep{
  font-size:13px;
  font-weight:500;
  color:#6b7280;
}

.whpc49-dozen-price-table__value{
  font-size:15px;
  font-weight:700;
  color:#111827;
}


.whpc49-dozen-price-table__unit-from{
  display:flex;
  align-items:baseline;
  gap:5px;
  flex-wrap:wrap;
  margin-top:2px;
  font-size:13px;
  color:#374151;
}

.whpc49-dozen-price-table__unit-label{
  font-weight:600;
}

.whpc49-dozen-price-table__unit-value{
  font-weight:800;
  color:#111827;
}

.single-product div.product .summary .whpc49-price-mask--dozen-table,
.single-product .product .summary .whpc49-price-mask--dozen-table{
  margin-bottom:8px;
}


/* v0.9.9.37 - sale by dozen hides native product qty controls */
body.whpc49-sale-by-dozen-active form.cart.whpc49-sale-by-dozen-active .quantity,
body.whpc49-sale-by-dozen-active .nasa-single-btn-clone .quantity,
body.whpc49-sale-by-dozen-active #whp-sticky-atc .whp-sticky-qty,
.whpc49-sale-by-dozen-hidden-qty {
  display: none !important;
}

body.whpc49-sale-by-dozen-active form.cart.whpc49-sale-by-dozen-active input.qty,
body.whpc49-sale-by-dozen-active form.cart.whpc49-sale-by-dozen-active input[name="quantity"],
body.whpc49-sale-by-dozen-active .nasa-single-btn-clone input.qty,
body.whpc49-sale-by-dozen-active .nasa-single-btn-clone input[name="quantity"],
body.whpc49-sale-by-dozen-active #whp-sticky-atc .whp-sticky-qty input {
  pointer-events: none !important;
}

.whpc49-dozen-category-note {
  margin: 6px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.whpc49-cat-limit-info--dozen {
  color: #475569;
}

.whpc49-cat-qty-counter--dozen {
  color: #475569;
}

.whpc49-cat-qty-counter.whpc49-cat-limit-exceeded {
  color: #b91c1c;
  font-weight: 700;
}

.whpc49-cat-dozen-error {
  display: none;
  margin: 8px 0 10px;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.whpc49-field--condition-hidden{display:none !important;}

/* v4.1.8 - badge inline right after option text */
.whpc49-option__info,
.single-product div.product .whpc49-option__info,
.variations_form .whpc49-option__info,
#whpbv .whpc49-option__info {
  align-items: flex-start !important;
}

.whpc49-option__header,
.single-product div.product .whpc49-option__header,
.variations_form .whpc49-option__header,
#whpbv .whpc49-option__header {
  display: block !important;
  width: 100% !important;
  min-width: 0;
  line-height: 1.25;
}

.whpc49-option__name,
.single-product div.product .whpc49-option__name,
.variations_form .whpc49-option__name,
#whpbv .whpc49-option__name {
  display: inline !important;
  width: auto !important;
  min-width: 0;
  font-weight: 600;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.whpc49-option__badge,
.whpc49-option__header .whpc49-option__badge,
.whpc49-option__meta .whpc49-option__badge,
.single-product div.product .whpc49-option__badge,
.variations_form .whpc49-option__badge,
#whpbv .whpc49-option__badge {
  display: inline-flex !important;
  vertical-align: middle;
  margin-left: 8px !important;
  margin-top: 0 !important;
  position: relative;
  top: -1px;
}

/* v4.2.0 - Descripción visible solo en frontend */
.whpc49-description{
  margin:-4px 0 10px;
  color:rgba(0,0,0,.62);
  font-size:.92em;
  line-height:1.35;
}

/* --- Whapido UX listas largas: resumen + modal/bottom sheet (4.2.7) --- */
body.whpc49-ux-lock {
  overflow: hidden;
}

.whpc49-ux-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.whpc49-ux-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whpc49-field.whpc49-ux-enhanced {
  overflow: visible;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-ux-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 12px;
  margin: 8px 0 0;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  cursor: pointer;
  text-align: left;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-ux-summary:focus {
  outline: 2px solid rgba(0, 0, 0, .18);
  outline-offset: 2px;
}

.whpc49-ux-summary-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.whpc49-ux-summary-state {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 7px;
}

.whpc49-ux-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.whpc49-ux-chip,
.whpc49-ux-empty {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.whpc49-ux-chip {
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

.whpc49-ux-chip--more {
  background: #111827;
  color: #fff;
}

.whpc49-ux-empty {
  padding-left: 0;
  color: #6b7280;
}

.whpc49-ux-open,
.whpc49-ux-confirm {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.whpc49-ux-open:hover,
.whpc49-ux-confirm:hover {
  background: #000;
  color: #fff;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options {
  position: fixed;
  z-index: 999999;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.whpc49-field.whpc49-ux-enhanced.whpc49-choices-open > .whpc49-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.whpc49-ux-sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 0 12px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.whpc49-ux-sheet-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.whpc49-ux-sheet-title {
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.whpc49-ux-sheet-state,
.whpc49-ux-footer-state {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.whpc49-ux-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.whpc49-ux-search-wrap {
  margin-top: 12px;
}

.whpc49-ux-search-input {
  width: 100% !important;
  height: 42px !important;
  border: 1px solid rgba(15, 23, 42, .14) !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  background: #f9fafb !important;
  color: #111827 !important;
  font-size: 14px !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-option {
  min-height: 44px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  border-radius: 0;
  background: #fff;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-option:hover {
  background: #fafafa;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options .whpc49-option__control {
  margin: 0;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options .whpc49-option__info {
  min-width: 0;
  flex: 1 1 auto;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options .whpc49-option__header {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options .whpc49-option__name {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options .whpc49-cat-title {
  margin: 14px 0 4px;
  padding: 8px 4px 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.whpc49-ux-sheet-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  margin-top: 8px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.whpc49-ux-filtered {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.whpc49-ux-filtered-group {
  display: none !important;
}

@media (max-width: 768px) {
  .whpc49-field.whpc49-ux-enhanced > .whpc49-ux-summary {
    align-items: stretch;
    gap: 10px;
  }

  .whpc49-field.whpc49-ux-enhanced > .whpc49-options {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 86vh;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-left: 14px;
    padding-right: 14px;
    transform: translateY(105%);
  }

  .whpc49-field.whpc49-ux-enhanced.whpc49-choices-open > .whpc49-options {
    transform: translateY(0);
  }

  .whpc49-ux-sheet-title {
    font-size: 18px;
  }

  .whpc49-ux-open,
  .whpc49-ux-confirm {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* v4.2.7 - Ajuste puntual de layout en modal UX: buscador + footer */
.whpc49-field.whpc49-ux-enhanced > .whpc49-options {
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-head,
.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer {
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-head {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 16px 0 14px !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-head .whpc49-ux-sheet-topline {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-head .whpc49-ux-search-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-head .whpc49-ux-search-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 8px 0 0 !important;
  padding: 12px 0 0 !important;
  min-height: 56px !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer .whpc49-ux-footer-state {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer .whpc49-ux-confirm {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 128px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer {
    gap: 10px !important;
  }

  .whpc49-field.whpc49-ux-enhanced > .whpc49-options > .whpc49-ux-sheet-footer .whpc49-ux-confirm {
    min-width: 118px !important;
    padding: 0 14px !important;
  }
}


/* v4.9.13 beta - total vivo compatible con sticky Elessi/Nasa, sin tocar el precio principal */
body.whpc49-sale-by-dozen-active #nasa-single-btn-clone .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .nasa-single-btn-clone .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active #whp-sticky-atc .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .whp-sticky-atc .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .nasa-sticky-add-to-cart .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .sticky-add-to-cart .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .sticky-atc .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active .single-product-fixed-add-to-cart .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active [class*="sticky"][class*="cart"] .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active [class*="fixed"][class*="cart"] .whpc49-dozen-live-total,
body.whpc49-sale-by-dozen-active [class*="single-btn-clone"] .whpc49-dozen-live-total{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
  font-weight:800 !important;
  font-size:14px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  margin:0 auto 0 18px !important;
  min-height:28px !important;
  pointer-events:none !important;
}


/* v4.9.13 beta - sticky real de Elessi/Nasa: .nasa-add-to-cart-fixed */
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed .nasa-wrap-content{
  position:relative !important;
}
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed .whpc49-dozen-live-total{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:absolute !important;
  left:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:60 !important;
  color:#fff !important;
  font-weight:800 !important;
  font-size:14px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  margin:0 !important;
  min-height:28px !important;
  pointer-events:none !important;
}
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed .nasa-title-clone .price:not(.whpc49-dozen-live-total),
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed .nasa-fixed-product-info .price:not(.whpc49-dozen-live-total){
  display:none !important;
}
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed .nasa-fixed-product-btn{
  margin-left:auto !important;
}

/* v4.9.14 beta - precio vivo en sticky Elessi sin romper botón */
.nasa-add-to-cart-fixed .whpc49-dozen-live-total--elessi{
  display:inline-flex !important;
  align-items:center;
  font-weight:800 !important;
  white-space:nowrap;
  margin:0 !important;
}
.nasa-add-to-cart-fixed .nasa-fixed-product-info .whpc49-dozen-live-total--elessi{
  color:inherit;
}
.nasa-add-to-cart-fixed .nasa-fixed-product-btn{
  flex:0 0 auto;
}
.nasa-add-to-cart-fixed .nasa-fixed-product-btn .single_add_to_cart_button:not(.disabled):not(.whpc49-atc-disabled){
  opacity:1 !important;
  pointer-events:auto !important;
}

/* v4.9.15 beta - barra propia para venta por conjunto/docena.
   No se toca la barra clonada de Elessi/Nasa porque su JS reconstruye el botón tarde. */
body.whpc49-sale-by-dozen-active .nasa-add-to-cart-fixed{
  display:none !important;
}
body.whpc49-sale-by-dozen-active .whpc49-dozen-sticky-bar{
  display:block !important;
}
.whpc49-dozen-sticky-bar{
  display:none;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:99998;
  padding:10px 72px;
  background:rgba(255,255,255,.92);
  box-shadow:0 -8px 24px rgba(15,23,42,.08);
  box-sizing:border-box;
}
.whpc49-dozen-sticky-inner{
  width:100%;
  min-height:42px;
  border-radius:14px;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 18px;
  box-sizing:border-box;
}
.whpc49-dozen-sticky-price{
  color:#fff !important;
  font-weight:800 !important;
  font-size:14px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  margin:0 !important;
  min-height:auto !important;
  position:static !important;
  transform:none !important;
  pointer-events:none !important;
}
.whpc49-dozen-sticky-submit{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  font-weight:800;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  cursor:pointer;
  padding:0;
  min-width:110px;
  text-align:right;
}
.whpc49-dozen-sticky-submit.disabled,
.whpc49-dozen-sticky-submit:disabled{
  opacity:.45;
  cursor:not-allowed;
}
@media (max-width: 768px){
  .whpc49-dozen-sticky-bar{padding:10px 14px;}
  .whpc49-dozen-sticky-inner{border-radius:12px;}
}
