.apc-product-media {
  float: left;
  width: 300px;
  margin: 0 20px 15px 0;
}

.apc-product-media #piGal {
  float: none;
  width: 100%;
}

.apc-product-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 9px;
  overflow: hidden;
  width: 250px;
}

.apc-product-thumbnail {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dfe4;
  border-radius: 3px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 55px;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  width: 55px;
}

.apc-product-thumbnail:hover,
.apc-product-thumbnail:focus,
.apc-product-thumbnail.is-active {
  border-color: #39b7dc;
  box-shadow: 0 0 0 1px #39b7dc;
  outline: 0;
}

.apc-product-thumbnail img {
  display: block;
  height: 44px;
  max-height: 44px;
  max-width: 47px;
  object-fit: contain;
  width: 47px;
}

.apc-product-video {
  background: #000;
  margin-top: 12px;
  width: 100%;
}

.apc-product-video iframe {
  border: 0;
  display: block;
  height: 169px;
  width: 100%;
}

.apc-product-description {
  clear: both;
  display: block;
  margin: 18px 0 8px;
  padding: 0 8px;
  width: 100%;
  color: #333;
  line-height: 1.45;
}

.apc-icecat-specs {
  color: #334e62;
  font-size: 14px;
  line-height: 1.45;
}

.apc-icecat-specs h2,
.apc-icecat-specs h3,
.apc-icecat-specs h4 {
  color: #246f9b;
  font-weight: 600;
  margin: 18px 0 10px;
}

.apc-icecat-specs .demo-msg,
.apc-icecat-specs .icecatlive-gallery-wrapper,
.apc-icecat-specs .icecatlive-right-wrapper {
  display: none !important;
}

.apc-icecat-specs table,
.apc-icecat-specs .-icecat-table {
  border-collapse: collapse;
  margin: 0 0 18px;
  width: 100%;
}

.apc-icecat-manual table {
  border: 1px solid #dedede;
  table-layout: fixed;
}

.apc-icecat-manual th,
.apc-icecat-manual td {
  border-bottom: 1px solid #dedede;
  padding: 12px 14px;
}

.apc-icecat-manual th,
.apc-icecat-manual td:first-child {
  background: #f4f4f4;
  color: #333;
  font-weight: 600;
  width: 34%;
}

.apc-icecat-manual th[colspan] {
  background: #ededed;
  color: #111;
  font-size: 15px;
  width: auto;
}

.apc-icecat-manual tr:nth-child(even) td:not(:first-child) {
  background: #fafafa;
}

.apc-icecat-manual .apci-source {
  color: #6d7e89;
  font-size: 12px;
  margin-top: 10px;
  text-align: right;
}

.apc-icecat-mercadolibre table {
  font-size: 12px;
  margin-right: auto;
  max-width: 680px;
  table-layout: fixed;
  width: 100%;
}

.apc-icecat-mercadolibre caption {
  color: #506779;
  font-size: 12px;
  line-height: 1.35;
  padding: 0 0 7px;
  text-align: left;
}

.apc-icecat-mercadolibre th,
.apc-icecat-mercadolibre td {
  line-height: 1.3;
  padding: 7px 9px;
}

.apc-icecat-mercadolibre th:not([colspan]) {
  width: 42%;
}

.apc-icecat-mercadolibre th[colspan] {
  font-size: 12px;
  padding: 7px 9px;
}

.apc-icecat-specs .for-featuregroups > .-header {
  display: none;
}

.apc-icecat-specs .-icecat-table {
  border: 0;
  display: grid;
  gap: 16px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apc-icecat-specs .-icecat-col-left,
.apc-icecat-specs .-icecat-col-right {
  min-width: 0;
}

.apc-icecat-specs tr,
.apc-icecat-specs .-icecat-tableRow {
  border-bottom: 0;
}

.apc-icecat-specs th,
.apc-icecat-specs td,
.apc-icecat-specs .-icecat-tableRow > div,
.apc-icecat-specs .-icecat-tableRow > span {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.apc-icecat-specs th,
.apc-icecat-specs .-icecat-tableRowHead,
.apc-icecat-specs .-title {
  background: #f0f0f0;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
}

.apc-icecat-specs .-icecat-feature-group {
  border: 1px solid #eeeeee;
  border-radius: 0;
  margin-bottom: 15px;
  overflow: hidden;
}

.apc-icecat-specs .-icecat-tableRow {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  min-height: 32px;
}

.apc-icecat-specs .-icecat-tableRow:nth-child(odd),
.apc-icecat-specs tbody tr:nth-child(even) {
  background: #f3f3f3;
}

.apc-icecat-specs .-icecat-ds_label .-text {
  border-bottom: 1px dotted #777;
}

.apc-icecat-specs .-icecat-yes::before {
  color: #009b62;
  content: "\2713";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.apc-icecat-specs .-icecat-no::before {
  color: #f01818;
  content: "\00d7";
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.apc-icecat-specs img {
  height: auto;
  max-width: 100%;
}

.apc-icecat-specs ul,
.apc-icecat-specs ol {
  padding-left: 22px;
}

.apc-icecat-empty {
  background: #f5f9fc;
  border: 1px solid #dce7ee;
  border-radius: 6px;
  color: #60798b;
  padding: 14px;
}

/* Tarjetas uniformes de productos similares. */
#tabs4 > .row {
  display: flex;
  flex-wrap: wrap;
}

#tabs4 > .row > [class*="col-"] {
  display: flex;
  margin-bottom: 15px;
}

#tabs4 .thumbnail {
  align-items: center;
  border-color: #dce4ea;
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(36, 95, 145, .07);
  display: flex;
  flex-direction: column;
  height: 165px;
  justify-content: space-between;
  margin-bottom: 0;
  overflow: hidden;
  padding: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

#tabs4 .thumbnail:hover {
  border-color: #46b8da;
  box-shadow: 0 5px 14px rgba(36, 95, 145, .14);
}

#tabs4 .thumbnail > a:first-child {
  align-items: center;
  display: flex;
  height: 92px;
  justify-content: center;
  width: 100%;
}

#tabs4 .thumbnail > a:first-child img {
  height: auto;
  max-height: 88px;
  max-width: 150px;
  object-fit: contain;
  width: auto;
}

#tabs4 .thumbnail .caption {
  min-height: 44px;
  padding: 6px 5px 0;
  width: 100%;
}

#tabs4 .thumbnail .caption h5 {
  display: -webkit-box;
  height: 34px;
  line-height: 17px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Tarjetas uniformes de visto recientemente. */
.recently_viewed > .row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

.recently_viewed > .row > h3 {
  flex: 0 0 100%;
  width: 100%;
}

.recently_viewed > .row > [itemprop="itemListElement"] {
  display: flex;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail {
  align-items: center;
  border-color: #dce4ea;
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(36, 95, 145, .07);
  display: flex;
  flex-direction: column;
  height: 185px !important;
  margin-bottom: 15px;
  overflow: hidden;
  padding: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail:hover {
  border-color: #46b8da;
  box-shadow: 0 5px 14px rgba(36, 95, 145, .14);
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > a:first-of-type {
  align-items: center;
  display: flex;
  flex: 0 0 92px;
  justify-content: center;
  width: 100%;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > a:first-of-type img {
  border: 0;
  height: auto;
  margin: 0 auto;
  max-height: 88px;
  max-width: 150px;
  object-fit: contain;
  padding: 0;
  width: auto;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > .caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 7px 5px 0;
  width: 100%;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > .caption > p:first-child {
  display: -webkit-box;
  height: 36px;
  line-height: 18px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > .caption hr {
  margin: 7px 0;
}

.recently_viewed [itemprop="itemListElement"] > .thumbnail > .caption [itemprop="offers"] {
  margin: auto 0 0;
}

/* Las fichas extensas se muestran compactas hasta que el usuario las expande. */
.apc-specs-collapsible {
  position: relative;
}

.apc-specs-collapsible.is-collapsed {
  max-height: 660px;
  overflow: hidden;
}

.apc-specs-collapsible.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
  bottom: 0;
  content: "";
  height: 75px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.apc-specs-controls {
  padding: 8px 6px 16px;
  text-align: left;
}

.apc-specs-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #337ab7;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 6px 4px;
}

.apc-specs-toggle:hover,
.apc-specs-toggle:focus {
  color: #245f91;
  outline: 0;
  text-decoration: none;
}

.apc-specs-toggle:focus {
  box-shadow: 0 0 0 2px rgba(70, 184, 218, .28);
}

.apc-specs-toggle .fa {
  font-size: 12px;
  margin-left: 4px;
}

@media (max-width: 850px) {
  .apc-product-media {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .apc-product-thumbnails {
    max-width: 100%;
  }

  .apc-icecat-specs .-icecat-table {
    display: block;
  }

  .apc-icecat-specs .-icecat-tableRow {
    display: block;
  }

  .apc-icecat-specs th,
  .apc-icecat-specs td,
  .apc-icecat-specs .-icecat-tableRow > div,
  .apc-icecat-specs .-icecat-tableRow > span {
    display: block;
    padding: 8px 10px;
    width: 100%;
  }

  #tabs4 .thumbnail,
  .recently_viewed [itemprop="itemListElement"] > .thumbnail {
    width: 100%;
  }

  .apc-specs-collapsible.is-collapsed { max-height: 620px; }
}
