:root[theme='circle'] {
  --discount-badge-radius: 100vw;
}

:root[theme='rounded'] {
  --discount-badge-radius: 0.25rem;
}

.o-discount-tag {
  align-items: center;
  background: var(--button-buy-bg-color, oklch(75.9% 0.23 146));
  border-radius: var(--discount-badge-radius, 0);
  color: var(--button-buy-text-color, oklch(100% 0 0));
  font-weight: 500;
  line-height: 1;
  padding: 0.325rem 0.75rem;
  position: absolute;
  right: 1rem;
  top: 1rem;

  :is(.sellers-list, .body-multiseller) & {
    display: none;
  }
}

.o-price .o-price__value {
  font-size: var(--fs-2);
  font-weight: 800;
}

.o-price .o-price__symbol {
  color: oklch(80.5% 0 0);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.001em;
  margin-inline-end: 0.25rem;
}

.o-price-box {
  .price-label,
  .o-price__label {
    display: inline-flex;
    font-size: 0.75rem;
    line-height: 1;
  }
}

.o-price--regular {
  align-items: center;
  display: flex;
  gap: 0.125rem;
  line-height: 1;
  margin-block-end: 0.5rem;

  .text-center & {
    justify-content: center;
  }

  .o-price__value {
    color: oklch(64.1% 0 0);
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: line-through;
  }

  .o-price__discount-percent {
    align-items: center;
    background: hsl(from var(--discount-badge-background-color, hsl(163 87% 34%)) h s calc(l + 60));
    border: 1px solid var(--discount-badge-background-color, hsl(163 87% 34%));
    border-radius: var(--discount-badge-radius, 0);
    color: var(--discount-badge-background-color, hsl(163 87% 34%));
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 600;
    gap: 0.5rem;
    letter-spacing: -0.009em;
    margin-inline-start: 0.5rem;
    min-height: 28px;
    overflow: hidden;
    padding-inline-end: 0.5rem;
  }

  .discount-percent__percentage {
    align-items: center;
    align-self: stretch;
    background-color: var(--discount-badge-background-color, oklch(63.5% 0.13 166));
    border: 0;
    border-radius: var(--discount-badge-radius, 0);
    border-bottom-left-radius: 0;
    border-right: 1px solid var(--discount-badge-background-color, oklch(63.5% 0.13 166));
    border-top-left-radius: 0;
    color: var(--discount-badge-text-color, oklch(100% 0 0));
    display: flex;
    font-size: 0.625rem;
    font-weight: 600;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
  }

  .o-price__discount-percent .discount-percent__value .price {
    color: var(--discount-badge-background-color, oklch(63.5% 0.13 166));
    font-size: inherit;
    font-weight: inherit;
  }

  :is(.sellers-list, .grid-section, .list-product-info, .body-multiseller) & {
    margin-block-end: 0;
  }

  .body-multiseller & {
    justify-content: center;
  }

  :is(.grid-section, .sellers-list, .list-product-info, .body-multiseller) & .o-price__discount-percent {
    background: transparent;
    border: 0;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.125rem;
    margin-inline-start: 0.25rem;
    min-height: unset;
    padding: 0;
  }
}

.o-price__discount-infos {
  color: var(--discount-color, oklch(64.1% 0 0));
  display: block;
  font-weight: 500;
  line-height: 1.2;

  :is(.sellers-list, .cartpopup_producttotal, .body-multiseller) & {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

:is(.sellers-list, .body-multiseller) .o-price--special {
  line-height: 1.2;
}

:is(.sellers-list, .body-multiseller) .o-price--special .o-price__label {
  display: none;
}

:is(.sellers-list, .body-multiseller) .o-price--special .o-price__value .price {
  font-size: var(--fs-1);
}

.product-cart-total {
  .o-price-box {
    color: oklch(75.9% 0.23 146);
    font-size: 0.75rem;
    line-height: 1.2;
    text-wrap: balance;
  }

  .o-price-box * {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  .o-price__value {
    font-weight: 600;
  }

  .o-price__symbol {
    margin-inline-end: 0;
  }

  .o-price__discount-infos {
    display: inline;
  }
}

.cartpopup_producttotal .o-price-box span.price {
  float: unset;
}

.cartpopup_producttotal .o-price .o-price__value {
  font-size: inherit;
}

@scope (.am_element) {
  .o-discount-tag {
    display: none;
  }

  .price-label,
  .o-price__label {
    color: hsl(0 0% 20%);
  }

  .o-price .o-price__value {
    color: hsl(0 0% 20%);
    font-size: var(--fs-0);
    font-weight: 800;
  }

  .o-price__discount-infos,
  .o-installments {
    font-size: 0.75rem;
  }

  .o-price--regular {
    font-size: 0.75rem;
    line-height: 1;
    margin-block-end: 0.125rem;

    .o-price__value {
      color: oklch(64.1% 0 0);
      font-size: inherit;
      font-weight: 400;
    }
  }

  .o-price--regular .o-price__discount-percent {
    background: transparent;
    border: 0;
    font-weight: bold;
    gap: 0.125rem;
    min-height: unset;
    padding: 0;
  }
}
