/* Adjust the Highlight color to match the Client's site/OEM.

If dark background is requested, adjust the highlight color, and p/ul color to contrast with it appropriately */

  :root {
    /* Summary Section Parent */
    --hsd-mod-summary-section-background: #f8f8f8;

    /* Color for Heading AND Border */
    --hsd-mod-summary-section-highlight-color: #007cc0;

    /* p / ul */
    --hsd-mod-ss-p-ul-color: #000;
  }

  .hsd-mod-summary-section {
    display: flex;
    flex-flow: column;
    gap: 12px;

    max-width: 1440px;
    width: 100%;
    padding: 32px 2rem 44px;
    margin: 32px 0;
    box-sizing: border-box;

    background: var(--hsd-mod-summary-section-background) !important;
    border-left: 4px solid var(--hsd-mod-summary-section-highlight-color) !important;

    transition: all 0.1s ease-out;
  }
  .hsd-mod-summary-section:hover {
    padding-left: calc(2rem - 4px);

    border-left: 8px solid var(--hsd-mod-summary-section-highlight-color) !important;
  }

  .hsd-mod-summary-section span {
    margin: 0 0 8px !important;

    font-size: clamp(16px, 2vw, 18px) !important;
    color: var(--hsd-mod-summary-section-highlight-color) !important;
    text-transform: uppercase !important;
  }

  .hsd-mod-summary-section p,
  .hsd-mod-summary-section ul {
    margin: 0 !important;

    font-size: clamp(12px, 2vw, 14px) !important;
    color: var(--hsd-mod-ss-p-ul-color) !important;
  }

  @media screen and (max-width: 767px) {
    .hsd-mod-summary-section ul {
      padding-left: 20px !important;
    }
    .hsd-mod-summary-section li {
      margin-bottom: 8px !important;
    }
  }

  /* Content w/ Lifestyles customizable root variables */
:root {
  /* cwl = Content w/ Lifestyles */

  /* Accent Class */
  --hsd-mod-cwl-50-50-accent-background-color: #000;
  --hsd-mod-cwl-50-50-accent-text-color: #fff;
  --hsd-mod-cwl-50-50-accent-link-color: #fff;
}

/* Module Parent */
.hsd-mod-content-w-lifestyle-50-50 {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  justify-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 1rem auto;
}

/* Image Cont */
.hsd-mod-cwl-50-50-img {
  width: 100%;
  height: 100%;
}
.hsd-mod-cwl-50-50-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content Cont */
.hsd-mod-cwl-50-50-content {
  margin: 1rem;
  padding: 4rem;
  box-sizing: border-box;
}

/*  ** Optional Classes ** */

/* Reverse Class */
/* (swaps image and content position when added) */
.hsd-mod-cwl-50-50-reverse {
  grid-template-columns: 50% 50%;
}
.hsd-mod-cwl-50-50-reverse .hsd-mod-cwl-50-50-content {
  order: 1;
}

/* Accent styling */
.hsd-mod-cwl-50-50-accent {
  color: var(--hsd-mod-cwl-50-50-accent-text-color) !important;
  background-color: var(--hsd-mod-cwl-50-50-accent-background-color);
}
.hsd-mod-cwl-50-50-accent a {
  color: var(--hsd-mod-cwl-50-50-accent-link-color) !important;
}

/* Split 1 image: stack two images vertically to look like one image */
.hsd-mod-cwl-50-50-img--stacked {
  height: auto;
}

.hsd-mod-cwl-50-50-img--stacked img {
  display: block;
  width: 100%;
  height: auto !important;
  margin: 0;
  padding: 0;
}

/* Media Query for mobile */
@media screen and (max-width: 767px) {
  /* Module Parent */
  .hsd-mod-content-w-lifestyle-50-50 {
    grid-template-columns: 1fr;
  }

  /* Content Cont */
  .hsd-mod-cwl-50-50-content {
    margin: 1rem;
    padding: 1rem;
  }

  /* Have the content above the image */
  .hsd-mod-content-w-lifestyle-50-50 .hsd-mod-cwl-50-50-content {
    order: 2;
  }
}
