@media (max-width: 760px) {
  .product-grid .product-layout.out-of-stock .caption,
  .product-grid .product-layout:has(.nwa-popup-button) .caption {
    flex-wrap: wrap;
  }

  .product-grid .product-layout.out-of-stock .price,
  .product-grid .product-layout:has(.nwa-popup-button) .price {
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 100%;
    margin-right: 0 !important;
  }

  .product-grid .product-layout.out-of-stock .buttons-wrapper,
  .product-grid .product-layout.out-of-stock .button-group,
  .product-grid .product-layout.out-of-stock .cart-group,
  .product-grid .product-layout:has(.nwa-popup-button) .buttons-wrapper,
  .product-grid .product-layout:has(.nwa-popup-button) .button-group,
  .product-grid .product-layout:has(.nwa-popup-button) .cart-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    overflow: hidden;
  }

  .product-grid .product-layout.out-of-stock .btn-cart,
  .product-grid .nwa-popup-button {
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid .product-layout.out-of-stock .btn-cart .btn-text,
  .product-grid .nwa-popup-button .btn-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

html.phone .product-grid .product-layout.out-of-stock .caption,
html.phone .product-grid .product-layout:has(.nwa-popup-button) .caption {
  flex-wrap: wrap;
}

html.phone .product-grid .product-layout.out-of-stock .price,
html.phone .product-grid .product-layout:has(.nwa-popup-button) .price {
  width: 100% !important;
  max-width: 100%;
  flex: 1 1 100%;
  margin-right: 0 !important;
}

html.phone .product-grid .product-layout.out-of-stock .buttons-wrapper,
html.phone .product-grid .product-layout.out-of-stock .button-group,
html.phone .product-grid .product-layout.out-of-stock .cart-group,
html.phone .product-grid .product-layout:has(.nwa-popup-button) .buttons-wrapper,
html.phone .product-grid .product-layout:has(.nwa-popup-button) .button-group,
html.phone .product-grid .product-layout:has(.nwa-popup-button) .cart-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  overflow: hidden;
}

html.phone .product-grid .product-layout.out-of-stock .btn-cart,
html.phone .product-grid .nwa-popup-button {
  width: 100% !important;
  max-width: 100%;
  flex: 1 1 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.phone .product-grid .product-layout.out-of-stock .btn-cart .btn-text,
html.phone .product-grid .nwa-popup-button .btn-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
