.mortgage-link-cta .custom-block {
    border-radius: 10px;
    height: 160px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.0901960784);
    margin: 1.2rem;
}
.mortgage-link-cta .custom-block img {
    height: 100%;
    width: 500px;
    min-width: 500px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}
.mortgage-link-cta .custom-block .info {
    padding: 0.2rem 1rem;
    max-width: 100%;
}
.mortgage-link-cta .custom-block .info p {
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mortgage-link-cta .slick-dots {
    bottom: -3.5rem;
}
.mortgage-link-cta .slick-arrow {
    background-color: #df3226;
    padding: 0.5rem 0.6rem 0.3rem 0.6rem;
    width: auto;
    height: auto;
    border-radius: 2rem;
    z-index: 5;
    top: 50%;
}
.mortgage-link-cta .slick-prev {
    left: -0.6rem;
}
.mortgage-link-cta .slick-prev:before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="transform: rotate(90deg)" width="24" height="24" fill="%23ffffff" viewBox="0 0 24 24"><path d="M12 17.414 3.293 8.707l1.414-1.414L12 14.586l7.293-7.293 1.414 1.414L12 17.414z"/></svg>');
    opacity: 1;
    line-height: normal;
}
.mortgage-link-cta .slick-next {
    right: -0.6rem;
}
.mortgage-link-cta .slick-next:before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="transform: rotate(270deg)" width="24" height="24" fill="%23ffffff" viewBox="0 0 24 24"><path d="M12 17.414 3.293 8.707l1.414-1.414L12 14.586l7.293-7.293 1.414 1.414L12 17.414z"/></svg>');
    opacity: 1;
    line-height: normal;
}

@media screen and (max-width: 900px) {
    .mortgage-link-cta .header {
        padding: 1rem;
    }
    .mortgage-link-cta .custom-block {
        height: auto;
    }
    .mortgage-link-cta .custom-block img {
        width: 100%;
        min-width: 100%;
        border-radius: 10px 10px 0 0;
    }
    .mortgage-link-cta .slick-arrow {
        background-color: #df3226;
        padding: 0;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 2rem;
        z-index: 5;
        top: 42%;
    }
    .mortgage-link-cta .slick-prev {
        left: -10px;
    }
    .mortgage-link-cta .slick-prev:before {
        content: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10px" x="0px" y="0px"	 viewBox="0 0 55.753 55.753" style="enable-background:new 0 0 55.753 55.753;" xml:space="preserve" fill="%23ffffff"><g><path d="M12.745,23.915c0.283-0.282,0.59-0.52,0.913-0.727L35.266,1.581c2.108-2.107,5.528-2.108,7.637,0.001		c2.109,2.108,2.109,5.527,0,7.637L24.294,27.828l18.705,18.706c2.109,2.108,2.109,5.526,0,7.637 c-1.055,1.056-2.438,1.582-3.818,1.582s-2.764-0.526-3.818-1.582L13.658,32.464c-0.323-0.207-0.632-0.445-0.913-0.727 c-1.078-1.078-1.598-2.498-1.572-3.911C11.147,26.413,11.667,24.994,12.745,23.915z"/></g></svg>');
        opacity: 1;
        line-height: normal;
    }
    .mortgage-link-cta .slick-next {
        right: -10px;
    }
    .mortgage-link-cta .slick-next:before {
        content: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10px" x="0px" y="0px" viewBox="0 0 55.753 55.753" style="enable-background:new 0 0 55.753 55.753;transform: rotate(180deg);" xml:space="preserve" fill="%23ffffff"><g><path d="M12.745,23.915c0.283-0.282,0.59-0.52,0.913-0.727L35.266,1.581c2.108-2.107,5.528-2.108,7.637,0.001		c2.109,2.108,2.109,5.527,0,7.637L24.294,27.828l18.705,18.706c2.109,2.108,2.109,5.526,0,7.637 c-1.055,1.056-2.438,1.582-3.818,1.582s-2.764-0.526-3.818-1.582L13.658,32.464c-0.323-0.207-0.632-0.445-0.913-0.727 c-1.078-1.078-1.598-2.498-1.572-3.911C11.147,26.413,11.667,24.994,12.745,23.915z"/></g></svg>');
        opacity: 1;
        line-height: normal;
    }
}

.mortgage-section {
  margin-bottom: 20px;

  @media screen and (max-width: 430px) {
    display: block;
    padding: 16px;
  }

  .description {
    margin-right: 40px;
    padding: 24px;
    background: var(--color-white);
    box-shadow: var(--box-shadow-xl);
    border-radius: var(--border-radius-medium);

    @media screen and (max-width: 430px) {
      max-width: unset;
      width: 100%;
      margin-right: 0;
      margin-left: 20px !important;
    }

    h3 {
      font-size: 1.25rem;
      color: var(--color-black);
    }

    .mortgage__content {
      li::marker {
        font-weight: 700;
        font-size: var(--font-size-p);
        line-height: var(--line-height-6);
        color: var(--color-red);
      }
    }
  }

  .mobile-scenario-section {
    display: none;

    @media screen and (max-width: 430px) {
      display: block;
      text-align: center;

      h3 {
        font-weight: 600;
        line-height: var(--line-height-8);
        color: var(--color-black);
        padding: 40px 20px 14px;
      }

      .scenario-button-wrapper {
        font-size: 0;

        .btns1 {
          border-right: none;
          border-radius: 6px 0 0 6px;
        }

        .btns2 {
          border-left: none;
          border-radius: 0 6px 6px 0;
        }

        .btn-scenario {
          background: var(--color-white);
          border: 1px solid var(--color-outline);
          padding: 12px;
          width: 50%;
          font-size: var(--font-size-p);
          font-weight: 700;
        }

        .active {
          border-bottom: 8px solid var(--color-red);
          padding-bottom: 5px;
        }
      }
    }
  }

  .mortgage-container {
    flex: 1;
    max-width: 697px;
    padding: 18px 16px 30px;
    background: var(--color-white);
    box-shadow: var(--box-shadow-xl);
    border-radius: var(--border-radius-medium);
    border-bottom: 8px solid var(--color-red);

    .wrapper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);

      @media screen and (max-width: 430px) {
        display: block;
      }

      .mortgage-amount-wrapper {
        display: contents;

        > div {
          margin-bottom: 20px;

          @media screen and (max-width: 430px) {
            margin-bottom: 0;
          }
        }
      }

      .calc-label {
        display: flex;
        align-items: center;
        font-weight: 400;
        font-size: var(--font-size-p);
        line-height: var(--line-height-6);
        color: var(--color-black);
        padding: 8px;
        justify-content: space-between;
      }

      .mortgage-amount {
        display: block;
      }

      .input-wrapper {
        display: flex;
        border: 1px solid var(--color-outline);
        border-radius: var(--border-radius-medium);

        .prefix {
          padding: 12px 0 0 12px;
          color: var(--color-black);
          font-weight: 700;
        }

        .suffix {
          padding: 12px 14px 0 4px;
          color: var(--color-black);
          font-weight: 700;
        }

        input {
          border: none !important;
          height: 46px;
          color: var(--color-black);
          line-height: var(--line-height-6);
          padding: 12px 16px;
        }

        .input {
          box-shadow: none;
          max-width: 100%;
          width: 100%;
        }
      }

      .only-mobile {
        display: none;
      }
      
      .scenario-label {
        color: var(--color-grey-light-text);
      }

      .dropdown-container {
        padding: 8px;

        @media screen and (max-width: 430px) {
          padding: 8px 0;
          display: none;
        }
      }

      @media screen and (max-width: 430px) {
        .dropdown-container.active-field {
          display: block;
        }
      }

      .select-css {
        width: 100%;
        background-position: right 1em top 50%;
        border: 1px solid var(--color-outline);
        border-radius: var(--border-radius-medium);
        font-weight: 400;
        font-size: var(--font-size-p);
        line-height: var(--line-height-6);
        color: var(--color-black);
        padding: 12px 12px;
        max-height: 46px;
        box-shadow: none;
      }

      .monthly-payment-wrapper {
        display: contents;

        @media screen and (max-width: 430px) {
          display: block;
          box-shadow: var(--box-shadow-xl);
          border-radius: var(--border-radius-medium);
          background: var(--color-white);
          padding: 24px;
          margin-top: 40px;
        }
      }

      .total-payment-label {
        color: var(--color-black);
        text-transform: capitalize;
        font-weight: 600;
        font-size: var(--font-size-p);
        line-height: var(--line-height-6);
        padding: 0 8px;
        margin-top: 40px;

        @media screen and (max-width: 430px) {
          font-size: var(--font-size-h3-mobile);
          line-height: var(--line-height-8);
          text-align: center;
          margin-top: 0;
          margin-bottom: 24px;
        }
      }

      .total-payment-wrapper {
        display: contents;

        @media screen and (max-width: 430px) {
          display: flex;
        }
      }

      .monthly_details {
        display: none;
      }

      .information.f-13.error {
        display: block;
        color: var(--color-red);
      }

      .information.f-13 {
        display: none;
      }

      .total-payment-summary {
        font-weight: 600;
        font-size: 32px;
        line-height: 44px;
        color: #000000;
        display: flex;
        align-items: center;
        padding: 0 12px;
        margin-top: 40px;

        @media screen and (max-width: 430px) {
          margin-top: 0;
          flex: 1;
          display: block;
          text-align: center;
          font-size: var(--font-size-h3-mobile);
          line-height: var(--line-height-8);

          .details {
            display: none;
          }

          .show-details {
            display: block;
          }
        }
      }

      @media screen and (max-width: 430px) {
        .s1-div {
          border-right: 1px solid var(--color-devider);
        }

        .scenario-label {
          font-weight: 400;
          font-size: var(--font-size-p);
          line-height: var(--line-height-6);
          padding-bottom: 16px;
          color: var(--color-grey-light-text);
        }
      }

      .payment-output {
        font-weight: 600;
        font-size: var(--font-size-h2-desktop);
        line-height: 44px;
        color: var(--color-black);
        display: flex;
        align-items: center;
        padding: 0 12px;

        @media screen and (max-width: 430px) {
          text-align: center;
          font-size: var(--font-size-h3-mobile);
          line-height: var(--line-height-8);
          display: block;
          padding-bottom: 24px;
        }
      }

      @media screen and (max-width: 430px) {
        .scenario-sub-label {
          font-weight: 400;
          font-size: var(--font-size-b-title);
          line-height: var(--line-height-5);
          color: #666;
          padding-bottom: 8px;
        }

        .scenario-output {
          font-weight: 400;
          font-size: var(--font-size-b-title);
          line-height: var(--line-height-5);
          color: var(--color-black);
          padding-bottom: 16px;
        }

        .monthly_details {
          display: block;
          text-align: center;
          padding-top: 14px;

          button {
            background-color: var(--color-white);
            border: none;
            font-weight: 600;
            font-size: var(--font-size-p);
            line-height: var(--line-height-6);
            text-align: center;
            color: var(--color-red);
          }
        }
      }
    }
  }

  .mortgage-container .mortgage-amount-wrapper .input-container {
    padding: 8px;

    @media screen and (max-width: 430px) {
      padding: 6px 0 22px;
    }
  }

  .mortgage-container .input-container {
    padding: 8px;

    @media screen and (max-width: 430px) {
      padding: 6px 0 22px;
      display: none;
    }
  }

  @media screen and (max-width: 430px) {
    .mortgage-container .input-container.active-field {
      display: block;
    }

    .only-mobile {
      display: block !important;
    }
  }
  
}

@media screen and (max-width: 820px) {
  .mortgage-section .description {
    margin-left: 40px;
  }

  .mortgage-section .w-40 {
    width: 90%;
  }

  .mortgage-section .mortgage-container {
    max-width: 90%;
    margin-left: 40px;
    margin-top: 20px;
  }

  .mortgage-section .mortgage-container .wrapper .hide-mobile {
    display: block !important;
  }

  .mortgage-section .monthly-payment-wrapper .total-payment-label .hide-mobile {
    display: inline !important;
  }

  @media screen and (max-width: 430px) {
    .mortgage-section .mortgage-container {
      max-width: unset;
      width: 100%;
      box-shadow: unset;
      padding: 38px 0 0 0;
      border-bottom: none;
      margin: 0;
    }

    .mortgage-section .mortgage-container .wrapper .hide-mobile {
      display: none !important;
    }
  }

}