.amz-tecdoc-media {
  margin: 1.5rem 0 1.75rem;
  padding: 1.1rem 1rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafbfc;
  clear: both;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.amz-tecdoc-media--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.amz-tecdoc-media__credit {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.amz-tecdoc-media__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.amz-tecdoc-media__criteria,
.amz-tecdoc-media__oem,
.amz-tecdoc-media__pdfs,
.amz-tecdoc-media__compat {
  margin-bottom: 1rem;
}

.amz-tecdoc-media__col > :last-child {
  margin-bottom: 0;
}

.amz-tecdoc-media__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

.amz-tecdoc-media__table th,
.amz-tecdoc-media__table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: top;
}

.amz-tecdoc-media__table th {
  width: 40%;
  color: #4b5563;
  font-weight: 600;
}

.amz-tecdoc-media__table tr.is-immediate th {
  color: #111827;
}

.amz-tecdoc-media__oem ul,
.amz-tecdoc-media__pdfs ul,
.amz-tecdoc-media__compat ul {
  margin: 0;
  padding-left: 1.1rem;
}

.amz-tecdoc-media__oem li,
.amz-tecdoc-media__pdfs li,
.amz-tecdoc-media__compat li {
  margin: 0.25rem 0;
}

/* Long vehicle lists stay readable without stretching the page forever. */
.amz-tecdoc-media__compat ul.automoto-tecdoc-compatibility {
  max-height: 28rem;
  overflow: auto;
  padding-right: 0.5rem;
}

@media (max-width: 768px) {
  .amz-tecdoc-media--split {
    grid-template-columns: 1fr;
  }
}

/* Motor theme: keep main product slider visible before variation change.
   Only the active slide (or the first one before flexslider starts) is forced
   visible; forcing every <li> breaks the fade and stacks all images. */
.single-product #prod-slider,
.single-product .prod-slider-wrap,
.single-product .prod-slider,
.single-product .prod-slider .slides,
.single-product .prod-slider .slides img {
  opacity: 1 !important;
  visibility: visible !important;
}

.single-product .prod-slider .slides > li.flex-active-slide,
.single-product .prod-slider .slides:not(:has(> li.flex-active-slide)) > li:first-child {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Product page: no image → placeholder icon in the gallery slot (same as list). */
.amz-prod-noimage .slides li {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
    border-radius: 8px;
}
.amz-prod-noimage img.woocommerce-placeholder {
    width: 100%;
    max-width: 420px;
    height: auto;
    opacity: .85;
}
