/* Native variant rows only; Quick Buy, gallery and desktop keep their layout. */
@media (max-width: 767px) {
  body.type-product #variants .variant-table .table-row {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #c9c9c9 !important;
  }

  body.type-product #variants .variant-table .variant-name-wrapper {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center !important;
    gap: 4px 12px;
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.type-product #variants .variant-table .variant-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 96px !important;
    margin: 0 !important;
  }

  body.type-product #variants .variant-table .variant-image a,
  body.type-product #variants .variant-table .variant-image img {
    display: block;
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain;
  }

  body.type-product #variants .variant-table .variant-image + div {
    grid-column: 2;
    width: auto !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.type-product #variants .variant-table .variant-name {
    width: auto !important;
    max-width: 100%;
    white-space: normal;
  }

  body.type-product #variants .variant-table .variant-name-wrapper > .var-dostupnost {
    position: static !important;
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    align-self: start;
    text-align: left;
  }

  body.type-product #variants .variant-table .table-row > .price {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.type-product #variants .variant-table .table-row > .cart {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  body.type-product.template-13 #variants .variant-table .variant-name-wrapper {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  body.type-product.template-13 #variants .variant-table .variant-image {
    width: 128px !important;
  }

  body.type-product.template-13 #variants .variant-table .variant-image a,
  body.type-product.template-13 #variants .variant-table .variant-image img {
    width: 128px !important;
    height: 128px !important;
    max-width: 128px !important;
    max-height: 128px !important;
  }
}
