/* Native purchase controls remain in place, including in Page Designer blocks. */
@media (max-width: 767px) {
  body#product .product-actions .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body#product .product-actions .product-quantity .qty {
    display: flex !important;
    align-self: flex-start;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 100%;
  }

  body#product .product-actions .product-quantity .bootstrap-touchspin {
    display: flex !important;
    align-items: stretch;
    float: none !important;
    width: auto !important;
  }

  body#product .product-actions .product-quantity #quantity_wanted {
    flex: 0 0 48px;
    width: 48px !important;
    height: 46px !important;
    float: none !important;
    margin: 0;
    box-sizing: border-box;
  }

  body#product .product-actions .product-quantity .input-group-btn-vertical {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 30px;
    width: 30px !important;
    float: none !important;
  }

  body#product .product-actions .product-quantity .input-group-btn-vertical .btn {
    width: 30px !important;
    height: 23px !important;
    min-height: 0 !important;
    margin: 0 0 0 -1px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  body#product .product-actions .product-quantity .input-group-btn-vertical .btn i {
    top: 2px;
    left: 6px;
    font-size: 18px;
  }

  body#product .product-actions .product-quantity .add {
    display: block !important;
    flex: 0 0 auto;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  body#product .product-actions .product-quantity .add-to-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 16px !important;
    line-height: 1.35 !important;
    text-align: center;
  }

  body#product .product-actions .product-quantity .add-to-cart .material-icons {
    flex: 0 0 auto;
    margin: 0;
    font-size: 24px;
    line-height: 1;
  }
}
