/* Structural CSS only. Visual styling belongs to the module's Custom CSS field in Back Office. */
.shbn {
  width: 100%;
  margin-bottom: 24px;
}

.shbn__tabs {
  display: flex;
}

.shbn__tab {
  appearance: none;
  cursor: pointer;
}

.shbn__panel {
  display: none;
}

.shbn__panel.is-active {
  display: block;
}

.shbn__items {
  display: grid;
}

.shbn__item {
  display: flex;
  min-width: 0;
}

.shbn__item-image-wrap {
  display: block;
}

.shbn__item-image {
  display: block;
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .shbn__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.shbn__item { flex-direction: column; }
.shbn__item-title { display: block; overflow-wrap: anywhere; }
.shbn__item-image { object-fit: contain; }
.shbn__item-image-wrap[hidden] { display: none !important; }

@media (max-width: 767.98px) {
  .shbn__tabs, .shbn__items {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .shbn__tabs { flex-wrap: nowrap; }
  .shbn__tab { flex: 0 0 auto; }
  .shbn__items { display: flex; flex-wrap: nowrap; }
  .shbn__item { flex: 0 0 auto; }
}

/* 1.1.2: show every tile in automatic rows on desktop/tablet.
   Override the former Back Office CSS rule that hid tiles 5+ on tablets.
   Mobile keeps the existing one-row horizontal scrolling behavior. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .shbn[data-shbn] .shbn__items > .shbn__item:nth-child(n + 5) {
    display: flex;
  }
}
