/* Whapido Promociones 4.0.102: beneficio y condición en una misma pill, en el mismo renglón. */
.whapido-promo-pill-wrap{
    display:block;
    width:100%;
    margin:0 0 7px;
    line-height:1;
}
.whapido-promo-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    max-width:100%;
    min-height:18px;
    padding:4px 8px;
    border:1px solid #f59e0b;
    border-radius:999px;
    background:#fff7ed;
    color:#9a3412;
    box-shadow:0 1px 0 rgba(15,23,42,.03);
    font-size:10px;
    line-height:1.05;
    font-weight:850;
    letter-spacing:.05px;
    vertical-align:middle;
}
.whapido-promo-pill__icon{
    flex:0 0 auto;
    font-size:10px;
    line-height:1;
}
.whapido-promo-pill__body{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:0;
    min-width:0;
    flex-wrap:nowrap;
}
.whapido-promo-pill__label{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.whapido-promo-pill__conditions{
    display:block;
    color:#b45309;
    font-size:9px;
    line-height:1.15;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
    margin-left:6px;
}
.whapido-promo-pill__conditions::before{
    content:'·';
    display:inline-block;
    margin-right:6px;
    color:#d97706;
    font-weight:800;
}
/* En ficha individual puede respirar un poco más. */
.whapido-promo-pill-wrap--single{
    margin-bottom:8px;
}
.whapido-promo-pill-wrap--single .whapido-promo-pill{
    min-height:24px;
    padding:5px 10px;
    font-size:11px;
}
.whapido-promo-pill-wrap--single .whapido-promo-pill__icon{
    font-size:11px;
}
.whapido-promo-pill-wrap--single .whapido-promo-pill__conditions{
    font-size:10px;
}
/* Whapido Tablas: mantener el badge encima del título dentro de la celda. */
.wcpt-cell .whapido-promo-pill-wrap,
.wcpt-table .whapido-promo-pill-wrap{
    margin-bottom:5px;
}
.wcpt-cell .whapido-promo-pill,
.wcpt-table .whapido-promo-pill{
    max-width:100%;
}
.wcpt-cell .whapido-promo-pill__conditions,
.wcpt-table .whapido-promo-pill__conditions{
    font-size:8.8px;
}


/* 4.0.105 - Venta por Docena: precio promocional estable en barra AGREGAR.
 * El texto real que actualiza el theme queda como fuente de cálculo, pero se oculta
 * visualmente mientras Promociones expone su precio en data-whapido-dpe-price. */
#whp-sticky-atc[data-sale-by-dozen="1"] .whp-btn-price.whapido-dpe-docena-price{
    font-size:0 !important;
}
#whp-sticky-atc[data-sale-by-dozen="1"] .whp-btn-price.whapido-dpe-docena-price::after{
    content:attr(data-whapido-dpe-price);
    font-size:14px;
    font-weight:800;
    line-height:inherit;
    white-space:nowrap;
}

/* 4.0.107 - COMBOS: presentación compacta y modal. Sólo capa visual. */
.whapido-combos-entry{display:block;width:100%;margin:0 0 10px;line-height:1}
.whapido-combos-pill{display:inline-flex;align-items:center;gap:7px;min-height:27px;padding:5px 8px 5px 11px;border:1px solid #0f172a;border-radius:999px;background:#0f172a;color:#fff;font:800 10px/1 inherit;letter-spacing:.08em;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.12)}
.whapido-combos-pill:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.16)}
.whapido-combos-pill__count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#fff;color:#0f172a;font-size:10px;letter-spacing:0}
html.whapido-combos-lock{overflow:hidden}
.whapido-combos-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:22px}
.whapido-combos-modal.is-open{display:flex}
.whapido-combos-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(2px)}
.whapido-combos-modal__dialog{position:relative;width:min(760px,100%);max-height:min(82vh,760px);overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.28);display:flex;flex-direction:column}
.whapido-combos-modal__head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid #e5e7eb}
.whapido-combos-modal__eyebrow{display:block;margin:0 0 4px;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.13em}
.whapido-combos-modal__head h3{margin:0;color:#0f172a;font-size:22px;line-height:1.15}
.whapido-combos-modal__close{flex:0 0 auto;width:34px;height:34px;border:0;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:24px;line-height:30px;cursor:pointer}
.whapido-combos-modal__body{padding:14px;overflow:auto;background:#f8fafc}
.whapido-combo-card{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;margin:0 0 10px;border:1px solid #e2e8f0;border-radius:15px;background:#fff}
.whapido-combo-card:last-child{margin-bottom:0}
.whapido-combo-card__media img,.whapido-combo-card__placeholder{display:block;width:82px;height:82px;border-radius:12px;object-fit:cover;background:#f1f5f9}
.whapido-combo-card__placeholder{display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:30px;font-weight:900}
.whapido-combo-card__content{min-width:0;display:flex;flex-direction:column;gap:5px}
.whapido-combo-card__title{color:#0f172a;font-size:15px;line-height:1.2}
.whapido-combo-card__summary{color:#475569;font-size:12px;line-height:1.35}
.whapido-combo-card__price{color:#0f172a;font-size:16px;font-weight:900}
.whapido-combo-card__price del{color:#94a3b8;font-weight:600;margin-right:5px}
.whapido-combo-card__price ins{text-decoration:none}
.whapido-combo-card__saving{color:#15803d;font-size:12px;font-weight:800}
.whapido-combo-card__action{display:flex;align-items:center;justify-content:flex-end}
.whapido-combo-card__button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:0;border-radius:999px;background:#0f172a;color:#fff!important;text-decoration:none!important;font:900 11px/1 inherit;letter-spacing:.04em;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none}
.whapido-combo-card__button:hover{background:#1e293b;color:#fff!important}
.whapido-combo-card__hint{max-width:145px;color:#64748b;font-size:10px;line-height:1.3;text-align:right}
@media(max-width:640px){
  .whapido-combos-modal{padding:10px;align-items:flex-end}
  .whapido-combos-modal__dialog{width:100%;max-height:88vh;border-radius:20px 20px 10px 10px}
  .whapido-combos-modal__head{padding:17px 16px 13px}.whapido-combos-modal__head h3{font-size:19px}
  .whapido-combo-card{grid-template-columns:68px minmax(0,1fr);gap:11px}
  .whapido-combo-card__media img,.whapido-combo-card__placeholder{width:68px;height:68px}
  .whapido-combo-card__action{grid-column:1/-1;justify-content:stretch}
  .whapido-combo-card__button{width:100%}.whapido-combo-card__hint{max-width:none;text-align:left}
}


/* 4.0.108 - Entrada de combos más visible + convivencia con Whapido Combos. */
.whapido-combos-pill{
  gap:6px;min-height:32px;padding:6px 9px 6px 11px;border:0;
  background:linear-gradient(135deg,#ff7200,#ff991f);color:#fff;
  box-shadow:0 6px 16px rgba(255,114,0,.24);font-size:10.5px;
}
.whapido-combos-pill:hover{background:linear-gradient(135deg,#f06400,#ff8a00);box-shadow:0 8px 20px rgba(255,114,0,.32)}
.whapido-combos-pill__icon{font-size:14px;line-height:1;filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}
.whapido-combos-pill__count{min-width:20px;height:20px;background:#fff;color:#c44f00;font-weight:900}
.whapido-combo-card__kind{align-self:flex-start;display:inline-flex;width:max-content;padding:3px 6px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.08em;line-height:1}
.whapido-combo-card__kind--promo{background:#fff7ed;color:#c2410c}
.whapido-combo-card__kind--real_combo{background:#e0f2fe;color:#0369a1}
.whapido-combo-card__from{font-size:11px;font-weight:800;color:#64748b;margin-right:3px;text-transform:uppercase;letter-spacing:.04em}
/* El theme clona el resumen dentro de la barra fija AGREGAR. No repetimos COMBOS ahí. */
#whp-sticky-atc .whapido-combos-entry,
#whp-sticky-atc .whapido-combos-modal,
.whp-sticky-atc .whapido-combos-entry,
.whp-sticky-atc .whapido-combos-modal{display:none!important}
@media(min-width:900px){
  .whapido-combos-modal__dialog{width:min(840px,92vw)}
  .whapido-combo-card{grid-template-columns:92px minmax(0,1fr) auto;padding:14px;gap:16px}
  .whapido-combo-card__media img,.whapido-combo-card__placeholder{width:92px;height:92px}
  .whapido-combo-card__title{font-size:16px}
  .whapido-combo-card__summary{font-size:12.5px}
  .whapido-combo-card__price{font-size:17px}
}
