.pdp-image-with-text {
  color: var(--color);

  h2 {
    font-size: 38px;
    margin-top: 0;
    margin-bottom: 0;

    @media (max-width: 767px) {
      font-size: 28px;
      margin-bottom: 0;
    }
  }

  .pdp-iwt__container {
    display: flex;
    gap: 0;
  }
  
  @media screen and (max-width: 989px) {
    .pdp-iwt__container {
      flex-direction: column;
    }
  }

  @media screen and (min-width: 990px) {
    .pdp-iwt__container.text_first .pdp-iwt__text {
      order: -1;
    }
  }

  @media screen and (min-width: 990px) {
    .pdp-iwt__image.image--small {
      flex-shrink: 0;
      width: calc(42%);
    }

    .pdp-iwt__image.image--medium {
      width: calc(48.5%);
      flex-shrink: 0;
    }

    .pdp-iwt__image.image--large {
      flex-shrink: 0;
      width: calc(50%);
    }
  }

  .pdp-iwt__image-wrap {
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
    position: relative;

    @media screen and (max-width: 989px) {
      width: 80%;
      max-width: 400px;
      margin: 0 auto;
    }

    img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  @media screen and (min-width: 990px) {
    .pdp-iwt__image-wrap:not(.image--adapt) {
      height: 0;
      min-height: 100%;
      
      &.image--square {
        padding-bottom: 100%;
      }
      
      &.image--portrait {
        padding-bottom: 124%;
      }
      
      &.image--landscape {
        padding-bottom: 70%;
      }

      &.image--content {
        padding-bottom: 0;

        @media screen and (max-width: 989px) {
          min-height: 300px;
        }
      }

      img {
        position: absolute;
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
      }
    }
  }

  .pdp-iwt__heading {
    margin-bottom: 40px;

    @media screen and (max-width: 989px) {
      margin-bottom: 30px;
      text-align: center !important;
    }

    em {
      color: var(--highlight-color);
    }

    &.pdp-iwt__heading--left {
      text-align: left;
    }

    &.pdp-iwt__heading--center {
      text-align: center;
    }

    &.pdp-iwt__heading--right {
      text-align: right;
    }
  }

  .subheadig{
    margin-top: 35px;

    @media screen and (max-width: 989px) {
      max-width: 600px;
      margin: 0 auto;
      padding-bottom: 20px;
    }

    p:not(:first-child) {
      margin-top: 20px;
    }
  }

  .pdp-iwt__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .pdp-iwt__text {
    padding: 40px 25px;
    background-color: var(--bgcolor);

    @media screen and (min-width: 990px) {
      margin: 20px 0;
    }
  }

  .pdp-iwt__text {
    @media screen and (max-width: 989px) {
      margin: -20px 0 0 0;
      padding-top: 60px;
    }
  }

  .pdp-iwt__text-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    @media screen and (max-width: 989px) {
      max-width: 600px;
      margin: 0 auto;
    }
    @media screen and (max-width: 749px) {
      gap: 15px;
      max-width: 600px;
      margin: 0 auto;
    }
  }

  .pdp-iwt__text--right .pdp-iwt__text-wrap > * {
    align-self: flex-end;
    text-align: right;
  }

  .pdp-iwt__text--left .pdp-iwt__text-wrap > * {
    align-self: flex-start;
    text-align: left;
  }

  .pdp-iwt__text--center .pdp-iwt__text-wrap > * {
    align-self: center;
    text-align: center;
  }

  .pdp-iwt__text-text {
    p:not(:first-child) {
      margin-top: 20px;
    }
  }
  
  .pdp-iwt__text-text.has-border-left {
    border-left: 4px solid var(--highlight-color);
    padding-left: 25px;

    &:not(:first-child) {
      margin-top: 15px;
    }
  }

  .pdp-iwt__text-btn {
    color: var(--button-color);
    background-color: var(--button-bg-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    width: max-content;
    height: 50px;
    justify-content: center;
    padding: 0 30px;
    font-family: Poppins;
    font-size: 20px;
    line-height: 24px /* 120% */;
    gap: 10px;
    text-decoration: none;
    @media screen and (max-width: 749px) {
      font-size: 16px;
    }
  }

  .pdp-iwt__text-iwt {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--highlight-color);;
    border-radius: 25px;

    p {
      margin: 0;
    }

    .icon {
      width: 40px;
      flex-shrink: 0;
    }

    img, svg {
      display: block;
      width: 100%;
      height: auto;
      border: none;
      object-fit: contain;
      fill: var(--highlight-color);
    }
  }

  .full-width {
    .text_first .pdp-iwt__image {
      padding-right: 50px;
      @media screen and (max-width: 749px) {
        padding: 0 16px;
      }
    }
    .image_first .pdp-iwt__image {
      padding-left: 50px;
      @media screen and (max-width: 749px) {
        padding: 0 16px;
      }
    }
  }


  .pdp-iwt__heading + .subheadig{
    margin-top: 1rem;
    @media screen and (max-width: 749px) {
      padding: 0 16px 20px;
    }
  }
}