/* AGENT-GUARD: Main catalog only; picker, desktop, permissions and amounts stay unchanged. */
.catalog-mobile-detail-toggle {
  display: none;
}

@media (max-width: 900px) {
  #catalogResultsTable tbody tr.is-mobile-compact {
    gap: 8px;
    padding: 10px 12px;
    box-shadow: none;
  }

  #catalogResultsTable tbody tr.is-mobile-compact .catalog-cell--model {
    position: relative;
    min-height: 44px;
    padding-right: 52px;
    touch-action: manipulation;
  }

  #catalogResultsTable .catalog-mobile-detail-toggle {
    position: absolute;
    inset: 0 0 auto auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    color: inherit;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  #catalogResultsTable .catalog-mobile-detail-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #catalogResultsTable .catalog-mobile-detail-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  #catalogResultsTable .catalog-mobile-detail-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
  }

  #catalogResultsTable tbody tr.is-mobile-compact:not(.is-mobile-detail-open) > td:not(.catalog-cell--model):not(.catalog-cell--description),
  #catalogResultsTable tr.is-mobile-compact:not(.is-mobile-detail-open) .catalog-mobile-sku,
  #catalogResultsTable tr.is-mobile-compact:not(.is-mobile-detail-open) .model-stack > :not(.catalog-mobile-head):not(strong) {
    display: none !important;
  }

  #catalogResultsTable tr.is-mobile-compact:not(.is-mobile-detail-open) .catalog-description-cell > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  #catalogResultsTable tr.is-mobile-compact .catalog-mobile-brand {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: 0.78rem;
  }

  #catalogResultsTable tbody tr.is-mobile-compact.is-mobile-detail-open .catalog-cell--select {
    right: 64px;
  }

  #catalogResultsTable tbody tr.is-mobile-compact > td[hidden] {
    display: none !important;
  }
}
