.custom-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(var(--color-background));
}

.custom-section__content {
  margin-top: var(--m-margin-top);
  margin-left: var(--m-margin-left);
  margin-bottom: var(--m-margin-bottom);
  margin-right: var(--m-margin-right);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.custom-section__content .group{
    margin-top: var(--m-margin-top);
    margin-left: var(--m-margin-left);
    margin-bottom: var(--m-margin-bottom);
    margin-right: var(--m-margin-right);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.custom-section .block-heading,
.custom-section .subheading {
  width: 100%;
}

.custom-section .custom-html-block {
  background-color: rgb(var(--color-background));
}

.custom-section .subheading,
.custom-section .rte {
  word-break: break-word;
}

/* .custom-section .product-card {
  flex: 1;
} */

.custom-section[data-border-top="false"] {
  border-top-style: none;
  border-top-width: 0px;
}
.custom-section[data-border-top="true"] {
  border-top-style: solid;
  border-top-width: 1px;
  border-color:var(--border-color);
}
.custom-section[data-border-bottom="false"] {
  border-bottom-style: none;
  border-bottom-width: 0px;
}
.custom-section[data-border-bottom="true"] {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-color:var(--border-color);
}

@media (min-width: 992px) {
    .custom-section__content {
      margin-top: var(--pc-margin-top);
      margin-left: var(--pc-margin-left);
      margin-bottom: var(--pc-margin-bottom);
      margin-right: var(--pc-margin-right);
    }

    .custom-section__content .group{
      margin-top: var(--pc-margin-top);
      margin-left: var(--pc-margin-left);
      margin-bottom: var(--pc-margin-bottom);
      margin-right: var(--pc-margin-right);
    }
}

.custom-section .product-card.qd-custom-product-card:has(.block-product-card.unavailable:not([data-shopline-editor-block])) {
  display: none;
}

.custom-section [id|=shopline-block-template]:has(>.slideshow) {
  max-width: 100%;
}