/*
 * Sosanh24h Astra Child 3.2.38
 * Fine-tune small-screen visual density only. Do not alter URLs, offer data,
 * filter behavior, desktop layouts or the existing blue/orange brand palette.
 */
@media (max-width: 740px) {
  /* Offers are already listed below the summary: remove the duplicate jump CTA. */
  .ss24-detail-v2 .ss24-detail-summary a.ss24-detail-primary-cta,
  .ss24-detail-v2 .ss24-detail-primary-cta {
    display: none !important;
  }

  /* Keep full prices visible within two-column product cards. */
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > .ss24-price,
  .ss-live-prices .ss24-wrap .ss24-card.ss24-hover-card > .ss24-price,
  .ss-category-results .ss24-wrap .ss24-card.ss24-hover-card > .ss24-price {
    font-size: clamp(12px, 3.35vw, 13px) !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
    letter-spacing: -0.18px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    color: #e65b25 !important;
    min-height: 23px !important;
    max-height: 36px !important;
    flex-basis: 34px !important;
    margin: 2px 0 !important;
  }

  /* Price of an individual seller, in the real comparison table. */
  .ss24-detail-v2 #ss24-offers .ss24-detail-offer > .ss24-detail-offer-price {
    font-size: clamp(11.8px, 3.25vw, 13px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.2px !important;
  }

  /* Compare and buy buttons: keep text font size, reduce only their box. */
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > .ss24-product-image .ss24-hover-compare,
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > a.ss24-buy:not(.ss24-compare-action),
  .ss24-detail-v2 #ss24-offers .ss24-detail-offer a.ss24-detail-go,
  .ss24-detail-v2 .ss24-detail-topshop a.ss24-detail-go {
    min-height: 23px !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    line-height: 1.17 !important;
    box-sizing: border-box !important;
  }
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > .ss24-product-image .ss24-hover-compare {
    max-width: calc(100% - 8px) !important;
  }
}
/* Very small screens: preserve price information rather than clipping it. */
@media (max-width: 350px) {
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > .ss24-price {
    font-size: 11.5px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    flex-basis: 34px !important;
  }
}
