/* Existing desktop product-detail price. */
@media(min-width:768px){.type-detail #content .price-final-holder{font-size:22px!important}}

/* Discounted prices on Shoptet product cards. */
.products-block.products .product .p-in .p-bottom .prices.discount:has(> .price-standard > span:not(:empty)) {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 4px 7px !important;
}

.products-block.products .product .p-in .p-bottom .prices.discount > .price-standard {
  order: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.products-block.products .product .p-in .p-bottom .prices.discount > .price-standard > span:first-child {
  color: #686868 !important;
  text-decoration: line-through;
}

.products-block.products .product .p-in .p-bottom .prices.discount > .price-standard:not(:empty) ~ .price-final {
  order: 1;
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100%;
}

.products-block.products .product .p-in .p-bottom .prices.discount > .price-standard:not(:empty) ~ .price-final > strong {
  display: inline-block;
  padding: 1px 0.35em;
  background-color: #b48317;
  color: #000 !important;
  white-space: nowrap;
}

/* Let the price pair use the full card width when it cannot share a row with quick add. */
@media (max-width: 767px) {
  .products-block.products .product .p-in .p-bottom:has(.prices.discount > .price-standard > span:not(:empty)) {
    flex-wrap: wrap !important;
    row-gap: 5px;
  }
  .products-block.products .product .p-in .p-bottom > div:has(> .prices.discount > .price-standard > span:not(:empty)) {
    flex: 1 1 max-content !important;
    min-width: 0;
  }
  .products-block.products .product .p-in .p-bottom .prices.discount:has(> .price-standard > span:not(:empty)) {
    flex: 1 1 auto !important;
    min-width: 0;
  }
  .products-block.products .product .p-in .p-bottom:has(.prices.discount > .price-standard > span:not(:empty)) > .bjp-quick-add {
    margin-inline-start: auto;
  }
}
