/* Brand lines carousel */
/* #content-wrapper is a flex item (min-width:auto): without this the carousel's intrinsic width
   widens it and clips the listing. This stylesheet loads on manufacturer pages with a carousel only. */
body#manufacturer #content-wrapper { min-width: 0; }
.prbl {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 30px;
  max-width: 100%;
  overflow: hidden;
}
.prbl__carousel { width: 100%; }
.prbl__heading {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.prbl__carousel .owl-stage-outer { overflow: hidden; padding: 2px; margin: -2px; }

.prbl .prbl-card {
  display: block;
  width: 100%;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.prbl-card:hover, .prbl-card:focus { color: inherit; text-decoration: none; }
.prbl-card__img {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%; /* square */
  background: #fbeef3;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.prbl-card__img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; /* fills the whole block; non-square images are centre-cropped */
}
/* Selected frame drawn over the image, so the image still fills the whole block */
.prbl-card__img:after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  pointer-events: none;
  transition: border-color .2s;
}
.prbl-card__title {
  display: block;
  margin-top: 12px;
  line-height: 22px;
  height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1rem;
}
.prbl-card__title strong { font-weight: 500; }
.prbl-card__suffix { text-transform: none; color: #8a8a8a; letter-spacing: .02em; }
.prbl-card__subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  line-height: 1.35;
  min-height: 2.7em; /* 2 lines: all cards equal height */
  font-size: .9375rem;
  color: #707070;
}
.prbl-card.is-active .prbl-card__img { background: #fbe3ee; }
.prbl-card.is-active .prbl-card__img:after { border-color: #c9187d; }
.prbl-card.is-active .prbl-card__title strong,
.prbl-card.is-active .prbl-card__suffix { color: #c9187d; }

/* Description of the selected line */
.prbl-desc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 34px;
  background: #fbeef3;
  border-radius: 8px;
}
.prbl-desc[hidden], .prbl-desc__item[hidden] { display: none; }
.prbl-desc__items, .prbl-desc__item { flex: 1 1 auto; }
.prbl-desc__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 400; color: #c9187d; letter-spacing: .08em; text-transform: uppercase; }
.prbl-desc__title strong { font-weight: 500; }
.prbl-desc__text { max-width: 900px; font-size: 1rem; line-height: 1.6; }
.prbl-desc__text p:last-child { margin-bottom: 0; }
.prbl .prbl-desc__reset {
  flex: 0 0 auto;
  margin-left: 30px;
  white-space: nowrap;
  background: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.prbl .prbl-desc__reset:hover { background: #000; color: #fff; }

/* Nav arrows: inside the carousel box (no horizontal page scroll), vertically centred on the image */
.prbl .prbl__carousel .owl-nav { margin: 0; }
.prbl .prbl__carousel .owl-nav button.owl-prev,
.prbl .prbl__carousel .owl-nav button.owl-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  opacity: 1;
}
.prbl .prbl__carousel .owl-nav button.owl-prev { left: 8px; }
.prbl .prbl__carousel .owl-nav button.owl-next { right: 8px; }
.prbl .prbl__carousel .owl-nav.disabled { display: none; }
@media (max-width: 767px) {
  .prbl .prbl__carousel .owl-nav button.owl-prev,
  .prbl .prbl__carousel .owl-nav button.owl-next { width: 30px; height: 30px; }
  .prbl .prbl__carousel .owl-nav button.owl-prev { left: 4px; }
  .prbl .prbl__carousel .owl-nav button.owl-next { right: 4px; }
}
.prbl .go-left-owl,
.prbl .go-right-owl { display: block; position: relative; width: 100%; height: 100%; }
.prbl .go-left-owl:before,
.prbl .go-right-owl:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: solid #000;
  border-width: 2px 2px 0 0;
}
.prbl .go-left-owl:before { transform: translate(-30%, -50%) rotate(-135deg); }
.prbl .go-right-owl:before { transform: translate(-70%, -50%) rotate(45deg); }
.prbl .owl-dots { margin-top: 14px; text-align: center; }

@media (max-width: 767px) {
  /* Mobile: title may wrap to 2 lines; front.js gives all titles the height of the longest one,
     so the subtitles start on one line without an empty line under short titles */
  .prbl-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    height: auto;
    max-height: 36px;
    margin-top: 10px;
    line-height: 18px;
    font-size: .875rem;
    letter-spacing: .05em;
  }
  .prbl-card__subtitle { -webkit-line-clamp: 3; min-height: 3.9em; margin-top: 2px; line-height: 1.3; font-size: .8125rem; }
  .prbl-desc { flex-direction: column; align-items: stretch; margin-top: 20px; padding: 16px; }
  .prbl-desc__title { font-size: 1.0625rem; }
  .prbl-desc__text { font-size: .875rem; line-height: 1.5; }
  /* Same specificity as the desktop rule, or its margin-left pushes the full-width button out of the box */
  .prbl .prbl-desc__reset { margin: 16px 0 0; width: 100%; white-space: normal; }
}
