.jsmg-order-row {
  display: grid;
  grid-template-columns: 95px 1fr 110px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 2px;
}

.jsmg-thumb img {
  width: 85px;
  max-height: 70px;
  object-fit: contain;
}

.jsmg-product-details strong {
  display: block;
  color: #003b70;
  font-size: 15px;
  line-height: 1.25;
}

.jsmg-product-details span {
  display: block;
  color: #555;
  font-size: 13px;
  margin-top: 3px;
}

.jsmg-price {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  text-align: right;
}

/* Tighten qty fields */
.gform_wrapper input[type="number"] {
  max-width: 75px;
}

/* Hide the qty labels if they feel repetitive */
.gfield_label:has(+ .ginput_container_number) {
  font-size: 13px;
  color: #555;
}

/* Mobile */
@media (max-width: 650px) {
  .jsmg-order-row {
    grid-template-columns: 70px 1fr;
  }

  .jsmg-order-action {
    grid-column: 2;
  }

  .jsmg-thumb img {
    width: 65px;
  }

  .jsmg-price {
    text-align: left;
  }
}
/* Tighten overall Gravity Forms spacing */
.gform_wrapper .gfield {
    margin-bottom: 8px !important;
}

/* Tighten spacing between product rows */
.jsmg-order-row {
    margin-bottom: 2px;
}
/* Tighten Gravity Forms field spacing */
.gform-theme--framework .gfield,
.gform_wrapper .gfield,
.gform-body .gfield {
  margin-block-end: 6px !important;
  margin-bottom: 6px !important;
}

/* Tighten custom product row spacing */
.jsmg-order-row {
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Tighten number/quantity fields */
.gform-theme--framework .gfield--type-number,
.gform_wrapper .gfield--type-number {
  margin-top: -4px !important;
  margin-bottom: 8px !important;
}

/* Make qty input smaller */
.gform-theme--framework input[type="number"],
.gform_wrapper input[type="number"] {
  max-width: 70px !important;
  min-height: 34px !important;
  padding: 4px 8px !important;
}
/* Pull quantity fields up under each product row */
.gform-theme--framework .gfield--type-number {
  margin-top: -18px !important;
  margin-bottom: -4px !important;
  padding-top: 0 !important;
}

/* Tighten the quantity label/input area */
.gform-theme--framework .gfield--type-number .gfield_label {
  margin-bottom: 2px !important;
}

.gform-theme--framework .ginput_container_number {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Reduce space after each qty field */
.gform-theme--framework .gfield--type-number + .gfield--type-html {
  margin-top: -8px !important;
}