.price-matrix-option-row {
  display: flex;
  max-width: 400px;
}
.price-matrix-option-row .product-custom-option {
  width: auto;
  max-width: 100%;
  padding-right: 5px;
}
.price-matrix-option-row .price-matrix-dimension-input {
  border-radius: 0;
}
.price-matrix-option-row .field .control {
  display: block;
  overflow: auto;
}
.price-matrix-option-row .product-custom-option {
  margin-bottom: 0;
}
.price-matrix-option-row .between-text {
  width: 81%;
  margin-bottom: 1.5em;
}
.price-matrix-width,
.price-matrix-height,
.price-matrix-extra {
  flex-grow: 2;
  width: 40%;
}
.price-matrix-width {
  padding-right: 5px;
}
.option-row-single {
  flex-wrap: nowrap;
}
.option-row-single .price-matrix-width,
.option-row-single .price-matrix-height,
.option-row-single .price-matrix-extra {
  flex-grow: 4;
  width: 80%;
}
.option-row-single .optInfo {
  width: 111%;
}
.price-matrix-price {
  line-height: 52px;
  font-weight: bold;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.price-matrix-price div {
  white-space: nowrap;
  text-align: right;
}
.price-matrix-unit {
  padding: 6px 5px;
  display: inline-block;
  font-weight: bold;
}
.option-row-type-text .product-custom-option {
  width: 90px;
  max-width: 100%;
  float: left;
  border-color: #555;
  color: #111;
}
.option-row-type-text .mage-error {
  clear: both;
}
.option-row-type-text .price-matrix-price {
  padding-top: 2px;
}
@media (min-width: 970px) and (max-width: 1144px),
(min-width: 620px) and (max-width: 800px),
(max-width: 400px) {
  #product_addtocart_form .price-matrix-option-row {
    flex-wrap: wrap;
  }
  .price-matrix-width, .price-matrix-height {
    flex: 1 0 49%;
    padding-right: 3px;
  }
  .option-row-type-text .price-matrix-price {
    padding-top: 0;
    margin-top: -1em;
    margin-bottom: 1em;
  }
  .price-matrix-price {
    line-height: normal;
  }
}
@media (min-width: 1145px),
(min-width: 800px) and (max-width: 970px),
(min-width: 400px) and (max-width: 620px) {
  .price-matrix-price {
    justify-content: flex-start;
  }
}
