.macro-product-reviews-header {
  display: contents;
}

.macro-product-reviews-price {
  display: none;
}

@media (max-width: 767.98px) {
  .macro-product-reviews-header {
    display: none;
  }

  .macro-product-reviews-price {
    display: block;
  }

  /* The native variant refresh can return the merchant widget inside the price. */
  .macro-product-with-reviews > .product-prices #feedatyBlock_home {
    display: none;
  }

  .macro-product-reviews-price .storefront-reviews--compact {
    min-height: 0;
    margin: 0 0 8px;
    padding: 4px 0;
  }

  .macro-product-reviews-price .storefront-reviews__summary {
    justify-content: flex-start;
    gap: 4px 8px;
  }

  .macro-product-reviews-price .storefront-reviews__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .macro-product-reviews-price .storefront-reviews__total {
    font-size: 11px;
  }

  .macro-product-reviews-price .storefront-reviews__stars span {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }

  .macro-product-reviews-price .storefront-reviews img.storefront-reviews__brand {
    width: 54px;
  }

  .macro-product-purchase-flow,
  .macro-product-purchase-flow #add-to-cart-or-refresh {
    display: flex;
    flex-direction: column;
  }

  .macro-product-purchase-flow > .product-actions {
    order: -1;
    min-width: 0;
  }

  .macro-product-purchase-flow #add-to-cart-or-refresh > .product-discounts {
    order: 1;
    margin-top: 12px;
  }
}

@media (max-width: 359.98px) {
  .macro-product-reviews-price .storefront-reviews__summary {
    flex-wrap: nowrap;
    column-gap: 4px;
  }

  .macro-product-reviews-price .storefront-reviews__stars {
    gap: 2px;
  }

  .macro-product-reviews-price .storefront-reviews__stars span {
    width: 12px;
    height: 12px;
  }

  .macro-product-reviews-price .storefront-reviews .storefront-reviews__total {
    min-width: 0;
    font-size: 11px;
  }

  .macro-product-reviews-price .storefront-reviews img.storefront-reviews__brand {
    flex: 0 0 36px;
    width: 36px;
  }
}
