/**
 * Product price hierarchy.
 *
 * Loaded after the installment simulator so the theme owns the final visual
 * presentation without changing the plugin's pricing calculations.
 */

.single-product .summary > .price .wcsp-container,
.single-product .woocommerce-variation-price .wcsp-container {
  align-items: stretch !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
}

.single-product .summary > .price .wcsp-container .payment.payment-card,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card {
  border: 0 !important;
  border-bottom: 1px solid var(--cd-line);
  order: 1;
  padding: 0 0 12px !important;
}

.single-product .summary > .price .wcsp-container .payment.payment-card::before,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card::before {
  content: "A partir de:";
  font-size: 10px;
}

.single-product .summary > .price .wcsp-container .payment.payment-card .payment-price,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .payment-price {
  color: var(--cd-ink);
  display: block !important;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.single-product .wcsp-container .payment.payment-card .payment-price del {
  color: var(--cd-ink);
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  opacity: 1;
}

.single-product .wcsp-container .payment.payment-card .payment-price del .amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.single-product .wcsp-container .payment.payment-card .payment-price del,
.single-product .wcsp-container .payment.payment-card .payment-price del .amount,
.single-product .wcsp-container .payment.payment-card .payment-price del bdi {
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
}

.single-product .wcsp-container .payment.payment-card .payment-price ins {
  color: var(--cd-cognac);
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.single-product .wcsp-container .payment.payment-card .payment-price ins .amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.single-product .cd-black-friday-sale-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.single-product .cd-black-friday-price-off {
  color: var(--cd-muted);
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 12px;
  white-space: nowrap;
}

@media (min-width: 783px) {
  .single-product .wcsp-container .payment.payment-card .payment-price del {
    color: var(--cd-muted);
    font-size: 16px;
    font-weight: 500;
  }

  .single-product .wcsp-container .payment.payment-card .payment-price del,
  .single-product .wcsp-container .payment.payment-card .payment-price del .amount,
  .single-product .wcsp-container .payment.payment-card .payment-price del bdi {
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
  }
}

.single-product .summary > .price .wcsp-container .payment.payment-card .price-from,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .price-from {
  display: none !important;
}

.single-product .summary > .price .wcsp-container .payment.payment-card .best_no_fee,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .best_no_fee {
  margin-top: 5px;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount {
  order: 2;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount::before,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount::before {
  color: var(--cd-muted);
  content: "Valor no Pix";
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 0;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-name,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-name {
  font-size: 16px;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-name .text,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-name .text {
  font-size: inherit;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-price,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-price {
  color: var(--cd-ink);
  font-size: clamp(30px, 2.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.single-product .variable-items-wrapper .variable-item {
  height: auto !important;
  min-height: 64px !important;
  padding: 8px 5px !important;
}

.single-product .variable-items-wrapper .variable-item .variable-item-contents {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
}

.single-product .variable-items-wrapper .variable-item .cd-variation-yield {
  color: var(--cd-muted);
  display: block;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.single-product .variable-items-wrapper .variable-item.selected .cd-variation-yield {
  color: currentColor;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-price bdi,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-price bdi {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-info,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-info {
  align-items: center;
  display: grid;
  gap: 5px 8px;
  grid-template-areas:
    "price label"
    "benefit benefit";
  grid-template-columns: max-content minmax(0, 1fr);
  padding-top: 0 !important;
  width: 100%;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-name,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-name {
  grid-area: label;
  white-space: nowrap;
}

.single-product .summary > .price .wcsp-container .payment.payment-card .best_no_fee .text,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .best_no_fee .text {
  color: var(--cd-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.single-product .summary > .price .wcsp-container .payment.payment-card .wcsp-toggle-all-installments,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .wcsp-toggle-all-installments {
  color: var(--cd-cognac);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-underline-offset: 3px;
}

.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-info::after,
.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-info::after {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(24, 141, 99, 0.22);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(24, 141, 99, 0.07);
  color: #169465;
  content: "5% de desconto no pix + envio prioritário";
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  grid-area: benefit;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  min-height: 32px;
  padding: 6px 13px;
  white-space: nowrap;
  width: fit-content;
}

@media (max-width: 782px) {
	.single-product .summary > .price .wcsp-container .payment.payment-card .payment-price:has(.cd-black-friday-price-off),
	.single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .payment-price:has(.cd-black-friday-price-off) {
		align-items: center;
		column-gap: 8px;
		display: grid !important;
		grid-template-columns: max-content max-content;
	}

	.single-product .payment-card .payment-price:has(.cd-black-friday-price-off) > del {
		grid-column: 1 / -1;
	}

	.single-product .summary > .price .wcsp-container .payment.payment-discount::before,
	.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount::before {
		margin-bottom: 0;
	}

	.single-product .summary > .price .wcsp-container .payment.payment-discount .payment-info,
	.single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-info {
		padding-top: 0 !important;
	}

	.single-product .wcsp-container .payment.payment-card .payment-price ins {
		display: contents;
	}

	.single-product .wcsp-container .payment.payment-card .payment-price ins .cd-black-friday-sale-label {
		display: block;
		grid-column: 1;
		grid-row: 2;
		margin: 0;
	}

	.single-product .wcsp-container .payment.payment-card .payment-price ins > .amount {
		grid-column: 1 / -1;
		grid-row: 3;
	}

	.single-product .payment-card .payment-price:has(.cd-black-friday-price-off) > .cd-black-friday-price-off {
		align-self: center;
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	.single-product .wcsp-container .payment.payment-card .payment-price del {
		font-size: 16px;
	}

	.single-product .cd-black-friday-price-off {
		font-size: 14px;
		margin-left: 8px;
	}

  .single-product.woocommerce div.product .product_title {
    font-size: 30px !important;
  }

  .single-product .shipping-simulator-wrapper label {
    font-size: 9px !important;
    white-space: nowrap;
  }

  .single-product #wc-shipping-simulator .shipping-simulator-wrapper label .text {
    font-size: 0 !important;
  }

  .single-product #wc-shipping-simulator .shipping-simulator-wrapper label .text::before {
    content: "Frete:";
    font-size: 10px;
  }

  .single-product .shipping-simulator-wrapper #zipcode {
    flex: 0 0 120px !important;
    font-size: 16px !important;
    min-width: 96px;
    padding-left: 4px;
    padding-right: 4px;
    width: 96px !important;
  }

  .single-product #wc-shipping-simulator,
  .single-product #fshipping-results,
  .single-product #fshipping-results .table-freight {
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
  }

  .single-product #fshipping-results .table-freight {
    table-layout: fixed;
  }

  .single-product #fshipping-results .table-freight th,
  .single-product #fshipping-results .table-freight td {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .single-product #fshipping-results .table-freight th:first-child,
  .single-product #fshipping-results .table-freight td:first-child {
    padding-right: 10px;
    width: auto;
  }

  .single-product #fshipping-results .table-freight th:last-child,
  .single-product #fshipping-results .table-freight td:last-child {
    text-align: right;
    white-space: nowrap;
    width: 82px;
  }

  .single-product #fshipping-results .table-freight .shipping-to td {
    max-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
    width: auto;
  }

  .single-product .summary > .price .wcsp-container .payment.payment-card .payment-info,
  .single-product .woocommerce-variation-price .wcsp-container .payment.payment-card .payment-info {
    border-radius: 0;
    padding: 0;
  }

  .single-product .summary > .price .wcsp-container .payment.payment-discount .payment-info,
  .single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-info {
    width: 100% !important;
  }

  .single-product .summary > .price .wcsp-container .payment.payment-discount .payment-price,
  .single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-price {
    font-size: clamp(30px, 8vw, 34px);
    width: auto !important;
  }

  .single-product .summary > .price .wcsp-container .payment.payment-discount .payment-name,
  .single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-name {
    width: auto !important;
  }

  .single-product .summary > .price .wcsp-container .payment.payment-discount .payment-info::after,
  .single-product .woocommerce-variation-price .wcsp-container .payment.payment-discount .payment-info::after {
    white-space: nowrap !important;
  }
}
