/* Desktop keeps the original native table layout. */
.clw-card-label { display: none; }
.clw-card-value { display: contents; }

@media (max-width: 768px) {
  body #main-content .clw-product-cards-wrap {
    min-width: 0;
    max-width: 100%;
    overflow: visible !important;
  }

  body #main-content table.clw-product-cards {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 20px 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  body #main-content .clw-product-cards > colgroup { display: none; }

  /* Keep accessible column headings, with visible field labels on each card. */
  body #main-content .clw-product-cards > thead {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body #main-content .clw-product-cards > tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 18px;
  }

  body #main-content .clw-product-cards > tbody > tr {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding: 18px;
    border: 1px solid #bdcbbf;
    background: #fff;
  }

  body #main-content .clw-product-cards > tbody > tr > :is(th, td) {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e0e6e2;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body #main-content .clw-product-cards > tbody > tr > :last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body #main-content .clw-product-cards > tbody > tr > :is(th, td)::before {
    display: none;
    content: none;
  }

  body #main-content .clw-product-cards .clw-card-label {
    display: block;
    margin: 0 0 4px;
    color: #52665a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }

  body #main-content .clw-product-cards .clw-card-value,
  body #main-content .clw-product-cards .clw-card-value :is(p, a, span, strong) {
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body #main-content .clw-product-cards .clw-card-value {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  body #main-content .clw-product-cards .clw-card-value > :last-child { margin-bottom: 0; }

  body #main-content .clw-product-cards .clw-card-identity {
    padding-top: 0;
    padding-bottom: 16px;
  }

  body #main-content .clw-product-cards .clw-card-identity > .clw-card-label { display: none; }

  body #main-content .clw-product-cards .clw-card-identity .clw-card-value,
  body #main-content .clw-product-cards .clw-card-identity .clw-card-value :is(p, a, strong, span) {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
  }

  body #main-content .clw-product-cards .clw-card-identity .pm-model-identity { display: block; }

  body #main-content .clw-product-cards .clw-card-identity img {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    height: 160px !important;
    margin: 0 0 14px;
    object-fit: contain;
  }

  body #main-content .clw-product-cards .clw-card-value .btn { width: 100%; }
}
