/**
 * SML shopping cart desktop presentation.
 *
 * Scoped to the Commerce cart form View.
 * Presentation only; no cart behavior changes.
 */
@media (min-width: 992px) {

  /* Cart table structure. */
  .view-commerce-cart-form table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  /* Consistent table spacing. */
  .view-commerce-cart-form th,
  .view-commerce-cart-form td {
    box-sizing: border-box;
    padding: 15px 10px;
    vertical-align: middle;
  }

  /* Item column. */
  .view-commerce-cart-form th.views-field-purchased-entity,
  .view-commerce-cart-form td.views-field-purchased-entity {
    width: 43%;
    text-align: left;
    overflow-wrap: break-word;
  }

  /* Unit price column. */
  .view-commerce-cart-form th.views-field-unit-price,
  .view-commerce-cart-form td.views-field-unit-price {
    width: 14%;
    text-align: right;
    white-space: nowrap;
  }

  /* Quantity column. */
  .view-commerce-cart-form th.views-field-edit-quantity,
  .view-commerce-cart-form td.views-field-edit-quantity {
    width: 13%;
    text-align: center;
  }

  /*
   * Replace the visual QUANTITY heading with QTY.
   * Preserve the original heading in the HTML.
   */
  .view-commerce-cart-form th.views-field-edit-quantity {
    position: relative;
    font-size: 0;
  }

  .view-commerce-cart-form th.views-field-edit-quantity::after {
    content: "QTY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
  }

  /* Remove column. */
  .view-commerce-cart-form th.views-field-remove-button,
  .view-commerce-cart-form td.views-field-remove-button {
    width: 16%;
    text-align: center;
  }

  /* Item total column. */
  .view-commerce-cart-form th.views-field-total-price,
  .view-commerce-cart-form td.views-field-total-price {
    width: 14%;
    text-align: right;
    white-space: nowrap;
  }

  /* Product name. */
  .view-commerce-cart-form td.views-field-purchased-entity a {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
  }

  .view-commerce-cart-form td.views-field-purchased-entity a:hover {
    text-decoration: underline;
  }

  /* Quantity input. */
  .view-commerce-cart-form td.views-field-edit-quantity input {
    display: block;
    width: 72px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
  }

  /* Remove button. */
  .view-commerce-cart-form td.views-field-remove-button input,
  .view-commerce-cart-form td.views-field-remove-button button {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Cart action buttons. */
  .view-commerce-cart-form .form-actions input,
  .view-commerce-cart-form .form-actions button,
  .view-commerce-cart-form .form-actions a {
    margin-right: 8px;
    margin-bottom: 8px;
  }

  /*
   * Hide redundant subtotal on the cart page.
   * Retain the final Total and all Commerce calculations.
   */
  body.path-cart .order-total-line__subtotal {
    display: none;
  }
}
