/**
 * Price stack: strikethrough list → featured Pix → installments (card).
 * Targets Woo Custom Installments markup inside product cards and single product.
 */

.product-price .woo-custom-installments-group,
.woocommerce ul.products .woo-custom-installments-group,
.single-product .summary .woo-custom-installments-group,
#woo-custom-installments-product-price {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  text-align: center;
}

.woocommerce ul.products li.product .product-details .product-price,
.woocommerce ul.products li.product .product-details .product-price .price {
  display: block !important;
  width: 100%;
  text-align: center;
  margin-top: 0.85rem !important;
}

/* Order: list → pix → parcels (override WCI inline design orders) */
.woo-custom-installments-group > .woo-custom-installments-group-main-price {
  order: 1 !important;
  display: block;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.woo-custom-installments-group > .woo-custom-installments-offer,
.woo-custom-installments-group .woo-custom-installments-offer {
  order: 2 !important;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0;
  color: inherit;
  white-space: nowrap;
  text-align: center;
}

.woo-custom-installments-group > .woo-custom-installments-card-container,
.woo-custom-installments-group .woo-custom-installments-card-container {
  order: 3 !important;
  display: block;
  margin: 0.15rem auto 0;
  line-height: 1.25;
  text-align: center;
  width: 100%;
}

/* Hide badges / economy / ticket in this stack */
.woo-custom-installments-group > .woo-custom-installments-economy-pix-badge,
.woo-custom-installments-group > .woo-custom-installments-ticket-discount {
  display: none !important;
}

/* Icons off — keep the typography-led layout from the reference */
.woo-custom-installments-group .wci-icon-price,
.woo-custom-installments-group .wci-icon-main-price,
.woo-custom-installments-group .wci-icon-best-installments {
  display: none !important;
}

/* 1) List / card total — always struck through, centered */
.woo-custom-installments-group-main-price > .woo-custom-installments-price {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.2;
  color: #9a9a9a !important;
  text-decoration: line-through;
}

.woo-custom-installments-group-main-price > .woo-custom-installments-price .amount,
.woo-custom-installments-group-main-price > .woo-custom-installments-price .amount bdi {
  display: inline !important;
  width: auto !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  text-align: center !important;
}

/* On sale: keep regular struck; hide the sale total (Pix is the highlight) */
.woo-custom-installments-group-main-price > .woo-custom-installments-price.sale-price {
  display: none !important;
}

.woo-custom-installments-group-main-price > .woo-custom-installments-price.original-price.has-discount {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

/* 2) Featured Pix */
.woo-custom-installments-group .woo-custom-installments-offer .discount-before-price {
  display: none !important;
}

.woo-custom-installments-group .woo-custom-installments-offer .discounted-price,
.woo-custom-installments-group .woo-custom-installments-offer .discounted-price .amount,
.woo-custom-installments-group .woo-custom-installments-offer .discounted-price .amount bdi {
  display: inline !important;
  width: auto !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.15;
  color: #231f5a !important;
}

.woo-custom-installments-group .woo-custom-installments-offer .discount-after-price {
  display: inline !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  color: #8a8a8a !important;
  line-height: 1.2;
  white-space: nowrap;
}

/* 3) Installments on card */
.woo-custom-installments-group .woo-custom-installments-details-without-fee,
.woo-custom-installments-group .woo-custom-installments-details {
  display: inline;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.25;
}

.woo-custom-installments-group .woo-custom-installments-details .amount,
.woo-custom-installments-group .woo-custom-installments-details .amount bdi {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.woo-custom-installments-group .woo-custom-installments-details .cf-price-de,
.woo-custom-installments-group .woo-custom-installments-details .cf-price-card {
  font-weight: 400 !important;
  color: #8a8a8a;
}

/* —— Single product: same hierarchy as cards, left-aligned under title —— */
body.single-product .summary .woo-custom-installments-group,
body.single-product .summary #woo-custom-installments-product-price,
body.single-product .summary .woo-custom-installments-price-container {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.2rem;
  width: 100%;
  text-align: left !important;
  margin: 0.75rem 0 1rem !important;
}

body.single-product .summary .woo-custom-installments-group > .woo-custom-installments-group-main-price {
  text-align: left !important;
}

body.single-product .summary .woo-custom-installments-group > .woo-custom-installments-offer,
body.single-product .summary .woo-custom-installments-group .woo-custom-installments-offer {
  justify-content: flex-start !important;
  margin: 0 !important;
  text-align: left !important;
}

body.single-product .summary .woo-custom-installments-group > .woo-custom-installments-card-container,
body.single-product .summary .woo-custom-installments-group .woo-custom-installments-card-container {
  margin: 0.15rem 0 0 !important;
  text-align: left !important;
}

/* Override Additional CSS that forced 35px main / 16px pix+parcelas */
body.single-product .summary .woo-custom-installments-group-main-price,
body.single-product .summary .woo-custom-installments-group-main-price .woo-custom-installments-price,
body.single-product .summary .woo-custom-installments-group-main-price .woo-custom-installments-price .amount,
body.single-product .summary .woo-custom-installments-group-main-price .woo-custom-installments-price .amount bdi {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #9a9a9a !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

body.single-product .summary .woo-custom-installments-group-main-price > .woo-custom-installments-price {
  display: flex !important;
  justify-content: flex-start !important;
  text-decoration: line-through;
}

body.single-product .summary .woo-custom-installments-group-main-price > .woo-custom-installments-price.sale-price {
  display: none !important;
}

body.single-product .summary .woo-custom-installments-offer .discounted-price,
body.single-product .summary .woo-custom-installments-offer .discounted-price .amount,
body.single-product .summary .woo-custom-installments-offer .discounted-price .amount bdi {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #231f5a !important;
  line-height: 1.15 !important;
}

body.single-product .summary .woo-custom-installments-offer .discount-after-price {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #8a8a8a !important;
}

body.single-product .summary .woo-custom-installments-card-container,
body.single-product .summary .woo-custom-installments-card-container .woo-custom-installments-details,
body.single-product .summary .woo-custom-installments-card-container .woo-custom-installments-details .amount,
body.single-product .summary .woo-custom-installments-card-container .woo-custom-installments-details .amount bdi {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.25 !important;
}

body.single-product .summary .woo-custom-installments-card-container .cf-price-de,
body.single-product .summary .woo-custom-installments-card-container .cf-price-card {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #8a8a8a !important;
}

body.single-product .summary .woo-custom-installments-group .wci-icon-price,
body.single-product .summary .woo-custom-installments-group .wci-icon-main-price,
body.single-product .summary .woo-custom-installments-group .wci-icon-best-installments,
body.single-product .summary .woo-custom-installments-offer .discount-before-price {
  display: none !important;
}

