/* Worldprom Promociones – cinta diagonal sobre la foto, precio de promoción en el cuadro de cantidades y aviso en la ficha */

/* Cinta diagonal en la esquina superior derecha (como la de OFERTA, pero al otro lado) */
.wpp-cintas{position:absolute;top:0;right:0;width:118px;height:118px;overflow:hidden;z-index:5;pointer-events:none}
.wpp-cintas span{position:absolute;top:26px;right:-38px;width:170px;padding:6px 0;transform:rotate(45deg);text-align:center;font-weight:800;font-size:12px;letter-spacing:.06em;line-height:1.2;text-transform:uppercase;white-space:nowrap;box-shadow:0 2px 5px rgba(0,0,0,.3)}
.woocommerce-product-gallery .wpp-cintas{width:150px;height:150px}
.woocommerce-product-gallery .wpp-cintas span{top:34px;right:-46px;width:210px;font-size:14px;padding:8px 0}
/* La lupa de la galería pasa a la izquierda para no tapar la cinta */
.woocommerce-product-gallery.wpp-con-cinta .woocommerce-product-gallery__trigger{right:auto !important;left:14px !important}
@media (max-width:600px){
	.wpp-cintas{width:84px;height:84px}
	.wpp-cintas span{top:17px;right:-32px;width:130px;font-size:9px;padding:4px 0}
	.woocommerce-product-gallery .wpp-cintas{width:120px;height:120px}
	.woocommerce-product-gallery .wpp-cintas span{top:26px;right:-40px;width:180px;font-size:12px;padding:6px 0}
}

/* Cuadro de cantidades: tarjetas del tramo con promoción */
.single-product .worldprom-tier-selector table[data-tiered-pricing-table].wpp-con-bf tbody{padding-top:10px !important;row-gap:14px !important}
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table].wpp-con-bf tbody tr{height:auto !important;min-height:52px !important}
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf{position:relative;justify-content:flex-start;padding-top:10px !important;border-color:var(--wpp-f,#111);box-shadow:0 0 0 1px var(--wpp-f,#111),0 2px 6px rgba(0,0,0,.12)}
.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td:nth-child(3){display:none}
.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf .wpp-bf-tag{position:absolute;top:-9px;left:50%;transform:translateX(-50%);padding:2px 7px;border-radius:3px;background:var(--wpp-f,#111);color:var(--wpp-c,#f5c518);font-size:9px;font-weight:800;letter-spacing:.05em;line-height:1.3;text-transform:uppercase;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio{display:flex !important;flex-direction:column;align-items:center;gap:0;padding:0 !important;line-height:1.15;white-space:nowrap}
.wpp-bf-precio del{color:#8a8f98;font-size:.7rem;font-weight:500}
.wpp-bf-precio strong{display:inline-block;margin-top:1px;padding:1px 5px;border-radius:3px;background:var(--wpp-f,#111);color:var(--wpp-c,#f5c518);font-size:.8rem;font-weight:800}
.wpp-bf-precio strong::after{content:" c/u";font-size:.68rem;font-weight:600}
.wpp-bf-precio small{color:#0a7a3d;font-size:.64rem;font-weight:700}

/* Resumen bajo la cantidad */
.wpp-bf-resumen{box-sizing:border-box;width:100%;flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px;padding:8px 10px;border-radius:8px;background:var(--wpp-f,#111);color:#fff}
.wpp-bf-resumen__tag{padding:2px 8px;border-radius:3px;background:var(--wpp-c,#f5c518);color:var(--wpp-f,#111);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.wpp-bf-resumen__precio del{color:#b9bcc3;font-size:.9rem}
.wpp-bf-resumen__precio strong{color:var(--wpp-c,#f5c518);font-size:1.25rem;font-weight:800}
.wpp-bf-resumen__precio small{color:#ddd;font-size:.8rem}
.wpp-bf-resumen__nota{flex-basis:100%;color:#e6e6e6;font-size:.75rem}
.wpp-bf-resumen__nota:empty{display:none}
.worldprom-price-summary.wpp-bf-activo [data-price-savings]{color:#0a7a3d}

/* Aviso con los tramos en la ficha */
.wpp-aviso{border:2px solid #111;border-radius:8px;padding:12px 16px;margin:0 0 18px;background:#fffbe6}
.wpp-aviso__titulo{margin:0 0 4px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.wpp-aviso__titulo span{font-weight:500;text-transform:none;letter-spacing:0;color:#555}
.wpp-aviso ul{margin:0 0 8px 1.1em;padding:0}
.wpp-aviso li{margin:2px 0}
.wpp-aviso__nota{margin:0;font-size:12px;color:#555}
/* La tarjeta elegida mantiene los colores de la promoción (el tema y el plugin de precios pintan la fila activa) */
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio{background:transparent !important}
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio del{color:#8a8f98 !important}
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio strong,
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio .wpp-bf-tag{background:var(--wpp-f,#111) !important;color:var(--wpp-c,#f5c518) !important}
body.single-product .worldprom-tier-selector table[data-tiered-pricing-table] tbody tr.wpp-bf td.wpp-bf-precio small{color:#0a7a3d !important}
.worldprom-price-summary .wpp-bf-resumen .wpp-bf-resumen__precio strong{color:var(--wpp-c,#f5c518) !important}
.worldprom-price-summary .wpp-bf-resumen .wpp-bf-resumen__precio del{color:#b9bcc3 !important}
