/**
 * Product long description — Show more / Show less (InFront behaviour, Sintech colours).
 * Desktop only (≥992px); full description on smaller screens.
 */

@media (min-width: 992px) {
  #main-product-wrapper .aips-mfr-replica > .aips-mfr-section--highlight {
    margin-bottom: 0 !important;
  }

  #main-product-wrapper .aips-mfr-replica > .ift-desc-expand__actions {
    padding-top: 0.75rem !important;
    margin: 0 !important;
    display: block;
    position: relative;
    z-index: 2;
  }

  #main-product-wrapper .aips-mfr-replica .ift-desc-expand__preview {
    position: relative;
  }

  #main-product-wrapper .aips-mfr-replica .ift-desc-expand__preview > .aips-mfr-section:last-child {
    margin-bottom: 0 !important;
  }

  #main-product-wrapper .aips-mfr-replica .ift-desc-expand__preview .ift-desc-expand__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.7) 50%,
      #fff 100%
    );
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s ease;
  }

  #main-product-wrapper .aips-mfr-replica.is-expanded .ift-desc-expand__preview .ift-desc-expand__fade {
    opacity: 0;
    visibility: hidden;
  }

  #main-product-wrapper .ift-desc-expand__toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 22px;
    border: 1px solid #f0c4cb;
    border-radius: 999px;
    background: #fff;
    color: #c8102e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  #main-product-wrapper .ift-desc-expand__toggle:hover {
    background: #fff5f6;
    border-color: #f5a3ae;
    color: #8b0c21;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.12);
  }

  #main-product-wrapper .ift-desc-expand__toggle:focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
  }

  #main-product-wrapper .ift-desc-expand__icon {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  #main-product-wrapper .aips-mfr-replica.is-expanded .ift-desc-expand__icon,
  #main-product-wrapper .ift-desc-expand--height.is-open .ift-desc-expand__icon {
    transform: rotate(180deg);
  }

  #main-product-wrapper .ift-desc-expand__more.is-collapsed {
    display: none;
  }

  #main-product-wrapper .ift-desc-expand--height {
    position: relative;
  }

  #main-product-wrapper .ift-desc-expand--height .ift-desc-expand__body {
    position: relative;
    overflow: visible;
    max-height: none;
    transition: max-height 0.45s ease;
  }

  #main-product-wrapper .ift-desc-expand--height.is-collapsed .ift-desc-expand__body {
    overflow: hidden;
    max-height: calc(520px + 6rem);
  }

  #main-product-wrapper .ift-desc-expand--height.is-open .ift-desc-expand__body {
    max-height: none !important;
    overflow: visible !important;
  }

  #main-product-wrapper .ift-desc-expand--height .ift-desc-expand__body .ift-desc-expand__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.7) 50%,
      #fff 100%
    );
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s ease;
  }

  #main-product-wrapper .ift-desc-expand--height.is-open .ift-desc-expand__fade,
  #main-product-wrapper .ift-desc-expand--height.is-short .ift-desc-expand__fade {
    opacity: 0;
    visibility: hidden;
  }

  #main-product-wrapper .ift-desc-expand--height .ift-desc-expand__actions {
    padding-top: 0.75rem !important;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  #main-product-wrapper .ift-desc-expand--height.is-short .ift-desc-expand__toggle {
    display: none;
  }

  #main-product-wrapper .ift-desc-expand--height.is-short .ift-desc-expand__body {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 991.98px) {
  #main-product-wrapper .ift-desc-expand__toggle,
  #main-product-wrapper .ift-desc-expand__fade {
    display: none !important;
  }

  #main-product-wrapper .ift-desc-expand__more.is-collapsed {
    display: block !important;
  }

  #main-product-wrapper .ift-desc-expand--height .ift-desc-expand__body {
    max-height: none !important;
    overflow: visible !important;
  }
}
