.banner-search-input .jiffy-find-location-wrapper {
  width: 70%;
}

.jiffy-find-location-wrapper {
  --jif-primary: #98002e;
  --jif-secondary: #f7d248;
  --jif-white: #fff;
  --jif-black: #000;
  --jif-grey: #f1f1f1;
  --jif-dark-grey: #9c9c9c;

  .jiffy-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  &.jiffy-search-wrapper {
    display: flex;
  }

  .jiffy-location-search {
    flex-grow: 1;

    .jiffy-location-search__field {
      position: relative;

      input {
        background-color: var(--jif-grey);
        border-radius: 30px;
        padding-right: 56px;
        padding-left: 25px;
        font-weight: 500;
      }

      input::placeholder {
        color: #333;
      }

      .jiffy-location-search__btn {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);

        width: 40px;
        height: 40px;
        border-radius: 50%;

        background: var(--jif-primary);
        border: 0;
        padding: 0;
        cursor: pointer;

        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .jiffy-location-search__icon {
        width: 18px;
        height: 18px;
        display: inline-flex;

        svg {
          width: 100%;
          height: 100%;
          display: block;
          fill: #f1f1f1;
        }
      }

      .jiffy-location-search__btn:focus-visible {
        outline: 2px solid var(--jif-primary);
        outline-offset: 2px;
      }
    }
  }

  .jiffy-find-location-search-results-map-wrapper {
    &#results-section {
      &.results-section-min-height {
        min-height: 530px;
      }
    }

    display: flex;

    #jiffy-location-map {
      width: 60%;
      border-radius: 15px;
    }

    #jiffy-location-results {
      width: 40%;
      margin-left: 1rem;

      ul.jiffy-location-list {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: 0;
        list-style: none;

        &.find-loc-page {
          justify-content: space-around;
        }

        li {
          display: flex;
          color: var(--jif-black);
          background-color: var(--jif-grey);
          padding: 1.25rem;
          border-radius: 15px;
          font-size: 14px;
          cursor: pointer;

          .card-left {
            flex-grow: 1;

            .jiffy-result-title {
              line-height: 1.1;
              font-weight: 600;
              font-size: 20px;
              margin-bottom: 4px;

              a,
              a:link,
              a:visited,
              a:hover,
              a:active {
                color: inherit;
              }

              a:hover {
                text-decoration: underline;
              }
            }

            .jiffy-loc-street {
            }

            .jiffy-loc-cityline {
              line-height: 1;
            }
          }
        }

        li.is-selected {
          color: var(--jif-white);
          background-color: var(--jif-primary);
          border: 1px solid var(--jif-primary);

          .card-right {
            svg {
              fill: var(--jif-secondary);
            }
          }
        }

        li:not(.is-selected):hover {
          background-color: var(--jif-dark-grey);

          .card-right {
            svg {
              fill: var(--jif-grey);
            }
          }
        }
      }

      .card-right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        svg {
          height: 25px;
          width: 25px;
          fill: var(--jif-dark-grey);
        }

        a {
          display: flex;
          padding: 0 !important;

          i {
            background-color: var(--jif-secondary);
            position: relative;
            border-radius: 9999px;
            height: 27px;
            width: 27px;
            margin: 0;
          }

          i::before {
            color: var(--jif-black);
            position: absolute;
            top: 23%;
            left: 26%;
          }
        }
      }

      .btn-wrapper {
        display: flex;

        a {
          margin-left: auto;
        }
      }
    }
  }
}

@media (max-width: 1000px) {
  .banner-search-input .jiffy-find-location-wrapper {
    width: 100%;
  }
  .jiffy-find-location-wrapper {
    &.jiffy-search-wrapper {
      display: block;
    }
    #results-section {
      flex-wrap: wrap;
      &.results-section-min-height {
        min-height: 980px;
      }
      #jiffy-location-map {
        flex: 1 1 100%;
        width: auto;
      }
      #jiffy-location-results {
        flex: 1 1 100%;
        width: auto;
        margin-top: 1rem;
        margin-left: 0;

        ul.jiffy-location-list {
          padding-left: 0;
          li {
            margin: 0.5rem 0;
          }
        }
      }
    }
  }

  .jiffy-search-wrapper {
    flex-wrap: wrap;
    .jiffy-location-search {
      flex-grow: 1;
    }
    .search-button-wrapper {
      flex-grow: 1;
      button {
        width: 100%;
        margin: 0.5rem 0 0 0 !important;
      }
    }
  }
}
