/* Replace the visual amount only. WooCommerce remains the price authority. */
.twsc-price-original {
  display: none !important;
}

.price.twsc-catalog-offer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 12px;
  color: var(--global-palette3, #2f364c);
  line-height: 1.45;
  font-family: inherit;
}

/* Keep the native catalog price axis. A column here would center amounts
 * when the home collection aligns the native price row's items centrally. */
.price.twsc-catalog-offer--catalog {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  min-width: 0;
}

.twsc-catalog-offer--catalog .twsc-catalog-offer__tax {
  flex-basis: 100%;
}

.twsc-catalog-offer__amounts {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.twsc-catalog-offer .twsc-catalog-offer__before {
  color: #717887;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

.twsc-catalog-offer .twsc-catalog-offer__price {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  background: transparent;
}

.twsc-catalog-offer__label,
.twsc-catalog-offer__tax {
  display: block;
  max-width: 29em;
  color: #646d7e;
  font-size: 13px;
  font-weight: 400;
}

.twsc-catalog-offer--product {
  margin: 12px 0 20px;
}

.twsc-catalog-offer--product .twsc-catalog-offer__price {
  font-size: clamp(24px, 3vw, 30px);
}

.twsc-catalog-offer--product .twsc-catalog-offer__before,
.twsc-catalog-offer--product .twsc-catalog-offer__label {
  font-size: 14px;
}

.twsc-catalog-offer--search {
  margin: 4px 0 0;
  gap: 2px;
}

.twsc-catalog-offer--search .twsc-catalog-offer__price {
  font-size: 15px;
}

.twsc-catalog-offer--search .twsc-catalog-offer__before,
.twsc-catalog-offer--search .twsc-catalog-offer__label {
  font-size: 12px;
}

.twsc-catalog-offer-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid #e0e5eb;
  border-left: 3px solid #69849b;
  border-radius: 5px;
  background: #f8fafb;
  color: var(--global-palette3, #2f364c);
  font-family: inherit;
  line-height: 1.55;
}

.twsc-catalog-offer-notice__title {
  font-size: 14px;
  font-weight: 600;
}

.twsc-catalog-offer-notice__terms {
  color: #5c6675;
  font-size: 13px;
}

@media (max-width: 600px) {
  .twsc-catalog-offer__amounts { gap: 6px; }
  .twsc-catalog-offer--catalog .twsc-catalog-offer__price { font-size: 17px; }
  .twsc-catalog-offer__label { font-size: 13px; }
  .twsc-catalog-offer-notice { padding: 13px 14px; margin-bottom: 18px; }
  .twsc-catalog-offer-notice__terms { font-size: 14px; }
}

/* Match the native card's existing size container. Two genuine amounts stay
 * together even in a two-column mobile grid beside the site's card padding. */
@container twce-card-details (max-width: 170px) {
  .twsc-catalog-offer--catalog .twsc-catalog-offer__amounts { gap: 5px; }
  .twsc-catalog-offer--catalog .twsc-catalog-offer__before { font-size: 11px; }
  .twsc-catalog-offer--catalog .twsc-catalog-offer__price { font-size: 15px; }
}

@container twce-card-details (max-width: 135px) {
  .twsc-catalog-offer--catalog .twsc-catalog-offer__amounts { gap: 4px; }
  .twsc-catalog-offer--catalog .twsc-catalog-offer__before { font-size: 10px; }
  .twsc-catalog-offer--catalog .twsc-catalog-offer__price { font-size: 13px; }
}
