html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save) {
  position:relative!important;
  display:inline-flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%;
  padding-block:13px 6px!important;
  overflow:visible!important;
  border:0!important;
  border-radius:6px 6px 10px 10px!important;
  color:#fff5df!important;
  background:linear-gradient(145deg,#285846,#15362d)!important;
  box-shadow:inset 0 0 0 1px #e1bd7f, inset 0 0 0 3px #fff5df16,0 3px 8px #16291f46!important;
}
html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save)::before,
html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save)::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  pointer-events:none;
}
html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save)::before {
  top:-19px!important;
  width:3px!important;
  height:27px!important;
  border-radius:3px;
  background:repeating-linear-gradient(135deg,#ffdf9b 0 2px,#aa783a 2px 4px)!important;
  box-shadow:0 0 1px #362519;
  z-index:1;
}
html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save)::after {
  top:4px!important;
  width:8px!important;
  height:8px!important;
  border-radius:50%;
  background:radial-gradient(circle,#0e281e 34%,#e4c181 45%,#b9894b 67%,transparent 72%)!important;
}
html.mm-christmas-discount body :is(#products,.products,.gallery-slider,.p-image,.flags-extra) .flag.flag-discount:has(>.price-save) > :is(.price-save,.price-standard,.price-standard span) {
  color:inherit!important;
}
html.mm-christmas-discount body.type-product .gallery-slider > .flags-extra > .flag-discount:has(>.price-save) {
  padding-inline:12px!important;
}
/* Anchor the percentage tag to the photo on cards and in the main gallery. */
html.mm-christmas-discount :is(body .product a.image,body.type-product .gallery-slider,body.type-product .p-image,body.type-index #homepageProducts2 a.image,body.type-category #products .product a.image:has(.flags-default)) > .flags-extra:has(>.flag-discount>.price-save) {
  top:17px!important;
  bottom:auto!important;
  left:auto!important;
  right:9px!important;
  width:auto!important;
  height:auto!important;
}
html.mm-christmas-discount :is(body .product a.image,body.type-product .gallery-slider,body.type-product .p-image,body.type-index #homepageProducts2 a.image,body.type-category #products .product a.image:has(.flags-default)) > .flags-extra > .flag.flag-discount:has(>.price-save) {
  margin:0!important;
}
html.mm-christmas-discount body .flags-extra .flag.flag-discount:has(>.price-save) > .price-standard {
  display:none!important;
}
html.mm-christmas-discount body .flags-extra .flag.flag-discount > .price-save {
  white-space:nowrap;
}
@media (max-width:479px) {
  html.mm-christmas-discount :is(body .product a.image,body.type-product .gallery-slider,body.type-product .p-image,body.type-index #homepageProducts2 a.image,body.type-category #products .product a.image:has(.flags-default)) > .flags-extra:has(>.flag-discount>.price-save) {
    right:6px!important;
  }
}

/* The icon is part of the background, independent of the theme's flag pseudo-elements. */
html.mm-christmas-discount body .flags-default .flag.flag-action,
html.mm-christmas-discount.mm-category-ready body.type-category #products .product .flags-default .flag.flag-action {
  display:inline-flex!important;
  align-items:center;
  width:auto!important;
  min-width:0!important;
  max-width:100%;
  padding:5px 8px 5px 22px!important;
  border:1px solid #e0bc78!important;
  border-radius:5px 10px 10px 5px!important;
  background:#862f3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f4d391' d='M8 0 10 6 16 8 10 10 8 16 6 10 0 8 6 6Z'/%3E%3C/svg%3E") no-repeat 6px center / 11px 11px!important;
  color:#fff5df!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:nowrap;
  box-shadow:0 2px 6px #43192338;
}
html.mm-christmas-discount body .flags-default .flag.flag-action::before,
html.mm-christmas-discount body .flags-default .flag.flag-action::after,
html.mm-christmas-discount.mm-category-ready body.type-category #products .product .flags-default .flag.flag-action::before,
html.mm-christmas-discount.mm-category-ready body.type-category #products .product .flags-default .flag.flag-action::after {
  content:none!important;
  display:none!important;
}
