/* Aequivo – styles limited to this module. */
.aequivo-degressive {
  box-sizing: border-box;
  clear: both;
  width: 100%;
  max-width: 480px;
  margin: 12px 0 16px;
  color: #54595f;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.aequivo-degressive[hidden],
.aequivo-degressive [hidden] {
  display: none !important;
}

.aequivo-degressive *,
.aequivo-degressive *::before,
.aequivo-degressive *::after {
  box-sizing: border-box;
}

.aequivo-degressive .aequivo-degressive__title {
  margin: 0 0 9px;
  color: #54595f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.aequivo-degressive__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.aequivo-degressive .aequivo-degressive__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 104px;
  width: 100%;
  margin: 0;
  padding: 9px 5px;
  border: 1px solid #dfe2e6;
  border-radius: 7px;
  background: #ffffff;
  color: #54595f;
  box-shadow: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.aequivo-degressive .aequivo-degressive__card:hover:not(:disabled) {
  border-color: #ffb705;
  background: #fffaf0;
}

.aequivo-degressive .aequivo-degressive__card.is-selected {
  border-color: #ffb705;
  box-shadow: 0 0 0 1px #ffb705;
}

.aequivo-degressive .aequivo-degressive__card:focus-visible {
  outline: 2px solid #54595f;
  outline-offset: 3px;
}

.aequivo-degressive .aequivo-degressive__card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.aequivo-degressive__quantity {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.aequivo-degressive__discount {
  display: block;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff3d1;
  color: #54595f;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.aequivo-degressive__card.is-selected .aequivo-degressive__discount {
  background: #ffb705;
}

.aequivo-degressive__price {
  display: block;
  margin-top: 1px;
  color: #54595f;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}

.aequivo-degressive__unit {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}

.aequivo-degressive .aequivo-degressive__context {
  margin: 8px 0 0;
  color: #54595f;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.aequivo-degressive[aria-busy="true"] .aequivo-degressive__price {
  opacity: 0.6;
}

.aequivo-degressive__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.aequivo-cart-reminder {
  margin: 5px 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #54595f;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.aequivo-cart-reminder a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #ffb705;
  text-underline-offset: 3px;
}

.aequivo-cart-reminder a:hover {
  color: #54595f;
  text-decoration-thickness: 2px;
}

.aequivo-cart-reminder a:focus {
  outline: 2px solid #ffb705;
  outline-offset: 3px;
  border-radius: 2px;
}

.aequivo-native-price-hidden {
  display: none !important;
}

/* The current CE template gives its regular price an underline and oversized
   type. Keep an eligible product sheet compact after its AJAX refresh, while
   retaining the native price elements and accessibility labels. */
.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices {
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 4px 6px;
  max-width: 100%;
  color: #54595f;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.3;
}

.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-product-price-regular,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-product-price-regular {
  display: block;
  flex: 0 0 100%;
  margin: 0;
  padding: 0;
  color: #767b80;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: line-through;
}

.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-product-price,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-product-price {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #54595f;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices .ce-product-price > span:not(.screen-reader-text),
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices .ce-product-price > span:not(.screen-reader-text) {
  white-space: nowrap;
}

.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices .ce-product-badge-sale,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices .ce-product-badge-sale {
  display: inline-block;
  min-width: 0;
  margin: 0;
  padding: 2px 5px;
  border: 0;
  border-radius: 3px;
  background: #ffb705;
  color: #54595f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: normal;
  text-transform: none;
}

.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-tax-shipping-delivery-label,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices > .ce-tax-shipping-delivery-label {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #54595f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

/* A freshly replaced CE fragment has not received its server quote yet.
   Keep the provisional native badge out of the layout until its short label is ready. */
.elementor .elementor-widget-product-price.aequivo-degressive-price-widget .ce-product-prices:not(.aequivo-degressive-native-prices) .ce-product-badge-sale,
.elementor .elementor-widget-prestashop-product-price.aequivo-degressive-price-widget .ce-product-prices:not(.aequivo-degressive-native-prices) .ce-product-badge-sale {
  display: none;
}

/* Only the redundant price badge of a pure tier in the main result list.
   The separate green badge and real promotions retain their existing styles. */
#js-product-list [data-elementor-type="product-miniature"] > article.aequivo-degressive-listing-tier .elementor-widget-product-miniature-price .ce-product-badge-sale {
  display: none !important;
}

@media (max-width: 480px) {
  .aequivo-degressive__cards {
    gap: 6px;
  }

  .aequivo-degressive .aequivo-degressive__card {
    min-height: 100px;
    padding: 8px 3px;
    border-radius: 6px;
  }

  .aequivo-degressive__price {
    font-size: 15px;
  }

  .aequivo-degressive__quantity {
    font-size: 12px;
  }

  .aequivo-degressive__discount {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aequivo-degressive .aequivo-degressive__card {
    transition: none;
  }
}
