/**
 * Copyright since 2026 Textil del Hogar
 * @author Textil del Hogar
 * @copyright Since 2026 Textil del Hogar
 * @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */
/* Isolated from the native .product-flag selectors and their !important rules. */
.tdh-promo-labels {
  position:absolute; inset:0; z-index:3; pointer-events:none;
  --tdh-promo-left-top:8px; --tdh-promo-right-top:8px;
}
.tdh-promo-label {
  position:absolute; display:block; width:max-content; max-width:calc(50% - 12px);
  padding:5px 7px; border-radius:3px; border:0;
  background:var(--tdh-label-bg, #1c1c1a); color:var(--tdh-label-fg, #fff);
  font:800 12px/1.2 var(--font-display, sans-serif); letter-spacing:0;
  text-align:center; overflow-wrap:anywhere; box-shadow:none; pointer-events:none;
}
.tdh-promo-label[hidden] { display:none !important; }
.tdh-promo-label--left { left:8px; top:var(--tdh-promo-left-top); }
.tdh-promo-label--right { right:8px; top:var(--tdh-promo-right-top); }
.tdh-promo-labels:not([data-positioned]) .tdh-promo-label:nth-child(n+2) { visibility:hidden; }
.tdh-promo-labels[data-compact] .tdh-promo-label { max-width:calc(100% - 12px); padding:1px 4px; font-size:11px; line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Keep native indicators legible while making room on two-column mobile cards. */
.product-miniature .tdh-has-compact-labels .product-flags,
.wishlist-product .tdh-has-compact-labels .product-flags { gap:2px !important; }
.product-miniature .tdh-has-compact-labels .product-flags li.product-flag,
.product-miniature .tdh-has-compact-labels .tdh-top,
.wishlist-product .tdh-has-compact-labels .product-flags li.product-flag { font-size:11px !important; line-height:1 !important; padding:2px 6px !important; min-height:0 !important; height:auto !important; }
.wishlist-product-image { position:relative; }
@media (max-width:640px) {
  .tdh-promo-label { padding:4px 5px; font-size:11px; max-width:calc(50% - 10px); }
  .tdh-promo-label--left { left:6px; }
  .tdh-promo-label--right { right:6px; }
}
