/* Smart collections: keep labels readable without covering the product image. */
.product-photo {
  position: relative;
}

.product-photo__labels-aside {
  position: absolute;
  left: -54px;
  top: 6px;
  z-index: 3;
  width: 48px;
}

.product-photo__labels-aside .product-photo__labels {
  position: static;
}

.product-photo__labels {
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 3;
}

.product-photo__label--marketplace {
  width: auto;
  min-width: 42px;
  height: auto;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #d7c400;
  border-radius: 4px;
  color: #fff;
  background: #30343a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}

.product-photo__label--marketplace .product-photo__label-icon {
  margin-right: 4px;
  color: #e5d314;
}

.product-photo__label--marketplace .product-photo__label-text {
  position: static;
  display: inline;
  color: inherit;
  text-transform: none;
  transform: none;
}

@media (min-width: 768px) {
  .product-photo__labels {
    left: -2px;
    top: 6px;
  }
}

@media (max-width: 767px) {
  .product-photo__labels-aside {
    position: static;
    width: auto;
    min-height: 28px;
    margin: 0 0 6px;
  }

  .product-photo__labels {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-photo__label--marketplace {
    min-height: 24px;
    padding: 3px 5px;
    font-size: 10px;
  }
}
