/*
 * Sosanh24h Astra Child v3.2.37 — mobile button tightening only.
 * Keep existing brand colors, URLs and plugin logic unchanged.
 */
@media (max-width: 740px) {
  /* Product-card actions on mobile: shorter height/width, same font size. */
  .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-wrap .ss24-grid > .ss24-card.ss24-hover-card > a.ss24-buy.ss24-compare-action {
    min-height: 24px !important;
    height: auto !important;
    width: max-content !important;
    max-width: calc(100% - 10px) !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
  }

  /* The main compare CTA above the tabs. */
  .ss24-detail-v2 .ss24-detail-primary-cta {
    min-height: 26px !important;
    height: auto !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    line-height: 1.2 !important;
  }

  /* Detail top-shop suggestions and the full offer table buttons. */
  .ss24-detail-v2 .ss24-detail-topshop > a.ss24-detail-go,
  .ss24-detail-v2 .ss24-detail-offer a.ss24-detail-go,
  .ss24-detail-v2 #ss24-offers .ss24-detail-offer > div:nth-of-type(3) a.ss24-detail-go,
  .ss24-detail-v2 #ss24-offers .ss24-detail-offer-filters button,
  .ss24-detail-v2 #ss24-offers .ss24-mobile-filter-toggle {
    min-height: 24px !important;
    height: auto !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
  }

  /* Keep the product and button aligned in each row of the full offer table. */
  .ss24-detail-v2 #ss24-offers .ss24-detail-offer {
    min-height: 48px !important;
    padding: 7px 7px !important;
    column-gap: 6px !important;
  }

  /* Slightly tighter card buttons on the homepage/category grid. */
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > a.ss24-buy,
  .ss24-wrap .ss24-grid > .ss24-card.ss24-hover-card > .ss24-product-image .ss24-hover-compare {
    box-shadow: none !important;
  }
}
