/* Price unit. */
.tdpf-price-unit {
  display: inline-block;
  margin-left: 2px;
  color: #526173;
  font-size: .58em;
  font-weight: 400;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

/* Product facts. */
.tdpf-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
  padding: 13px 15px;
  background: #e9fbf1;
  border-radius: 5px;
  color: #172b3a;
}

.td-product-summary .product-title-container > .is-divider.small {
  display: none !important;
}

.td-product-summary .price,
.td-product-summary .price-wrapper .price {
  color: #b71c1c !important;
  font-size: 1.2rem;
  font-weight: 800;
}

.tdpf-fact {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.tdpf-fact-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #18794e;
  font-size: 12px;
  line-height: 1.3;
}

.tdpf-fact-icon {
  color: #15945a;
  font-weight: 800;
}

.tdpf-fact strong {
  color: #172b3a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Promotions box and numbered list. */
.tdpf-promotions {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  margin: 14px 0 18px;
  padding: 9px 15px 14px;
  border: 1px solid #176bff !important;
  border-radius: 16px !important;
  color: #172b3a;
}

.tdpf-promotions legend {
  display: table;
  width: auto;
  min-width: 0;
  margin-left: 6px;
  margin-right: auto;
  padding: 0 5px;
  background: #fff;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: #176bff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tdpf-promotion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tdpf-promo;
}

.tdpf-promotion-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  color: #263445;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  counter-increment: tdpf-promo;
}

.tdpf-promotion-list li + li {
  margin-top: 8px;
}

.tdpf-promotion-list li::before {
  content: counter(tdpf-promo);
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #dceeff;
  color: #2678d5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Keep rich promotion text and links within the list column. */
.tdpf-promotion-list li > .tdpf-promo-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tdpf-promotion-list li > .tdpf-promo-text * {
  display: inline;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tdpf-promotion-list li > .tdpf-promo-text br {
  display: block;
}

.tdpf-promotion-list li a {
  color: #176bff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.tdpf-promotion-list li a:hover {
  text-decoration: underline !important;
}

/* Custom product price, discount, and VAT badge. */
.tdpf-price-custom {
  display: block !important;
  margin: 12px 0 16px !important;
  color: #333 !important;
  font-size: 15px !important;
}

.tdpf-price-custom .tdpf-row-gia-ban {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
  flex-wrap: wrap !important;
}

.tdpf-price-custom .tdpf-row-gia-niem-yet {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.tdpf-price-custom .tdpf-label {
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.tdpf-price-custom .tdpf-row-gia-niem-yet .tdpf-label {
  color: #666 !important;
  font-size: 14px !important;
}

.tdpf-price-custom .tdpf-gia-sale {
  color: #e53935 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.tdpf-price-custom .tdpf-don-vi {
  color: #333 !important;
  font-size: 14px !important;
}

.tdpf-price-custom .tdpf-gia-goc {
  color: #999 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}

.tdpf-price-custom .tdpf-badge-percent {
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  background: #fdecec !important;
  color: #e53935 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.tdpf-price-custom .tdpf-tiet-kiem {
  color: #2e7d32 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.tdpf-vat-badge {
  display: inline-block !important;
  margin-left: 6px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: #e53935 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

@media (max-width: 849px) {
  .tdpf-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 3px;
    margin: 12px 0 16px;
    padding: 12px 6px;
  }

  .tdpf-fact {
    gap: 4px;
  }

  .tdpf-fact-label {
    gap: 3px;
    font-size: 10px;
    line-height: 1.2;
  }

  .tdpf-fact-icon {
    font-size: 10px;
  }

  .tdpf-fact strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .tdpf-promotions {
    margin: 12px 0 16px;
    padding: 8px 11px 12px;
    border-radius: 14px;
  }

  .tdpf-promotions legend {
    font-size: 13px;
  }

  .tdpf-promotion-list li {
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 7px;
    font-size: 14px;
    line-height: 1.45;
  }

  .tdpf-promotion-list li::before {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }
}

/* 2. LOGO HÃNG BÊN PHẢI TIÊU ĐỀ SẢN PHẨM - Trang sản phẩm đơn */
.single-product .product-title.td-product-title-has-brand-logo {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.single-product .product-title .td-product-brand-logo {
  flex: 0 0 auto;
  width: 88px !important;
  height: 58px !important;
  object-fit: contain;
  padding: 0 !important;
  margin: 0 0 0 auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 549px) {
  .single-product .product-title .td-product-brand-logo {
    width: 70px !important;
    height: 46px !important;
  }
}
