/**
 * Advanced Product Badges — front-office custom badge styling.
 *
 * Layout only. Per-badge colours are applied inline from the merchant
 * configuration by front.js, so this file carries no hard-coded colours beyond
 * a neutral default for badges left unstyled.
 *
 * @author    Moshammer Group <info@moshammer.com>
 * @copyright Since 2026 Moshammer Group
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Wrapper the script creates when the theme has no badge container of its own. */
.advancedproductbadges-wrapper {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.advancedproductbadges-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  border-radius: 0.25rem;
  color: #ffffff;
  background-color: #e74c3c;
  pointer-events: auto;
}

/* When injected into a theme's own badge list item, sit inline cleanly. */
li > .advancedproductbadges-badge,
.product-flags .advancedproductbadges-badge,
.elementor-badges-wrapper .advancedproductbadges-badge,
.elementor-badges .advancedproductbadges-badge {
  margin: 0 0 0.25rem 0;
}
