/**=====================
  Home scss
==========================**/
.autocomplete-results {
  margin-top: 8px;
  border-radius: 6px !important;
  position: absolute;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  z-index: 999;
  padding: 14px;

  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #ddd;
  }

  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: rgba(229, 232, 234, 0.4);
  }

  .autocomplete-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &.no-result{
      justify-content: center;
    }

    &:hover {
      img {
        box-shadow: 3px 3px 9px #22222261;
      }

      h5 {
        color: var(--primary-color);
        margin-left: 10px;

        [dir="rtl"] & {
          margin-left: unset;
          margin-right: 10px;
        }
      }
    }

    +.autocomplete-item {
      border-top: 1px solid rgba(221, 221, 221, 0.52);
      padding-top: 10px;
      margin-top: 10px;
    }

    img {
      object-fit: cover;
      margin-right: 10px;
      width: 94px;
      height: 60px;
      border-radius: 5px;
      transition: all 0.15s ease-in-out;

      [dir="rtl"] & {
        margin-right: unset;
        margin-left: 10px;
      }
    }

    h5 {
      font-size: 16px;
      font-weight: 500;
      transition: all 0.15s ease-in-out;
    }
  }
}


.slick-list {
  margin: 0 -15px;

  @media (max-width: 767.98px) {
    margin: 0 -5px;
  }

  .slick-track {
    .slick-slide {
      height: auto;
      >div {
        margin: 0 15px;

        @media (max-width: 767.98px) {
          margin: 0 5px;
        }
      }
    }
  }
}

.service-list-section {
  position: relative;

  .slick-prev {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;

    @media (max-width: 1440px) {
      top: -65px;
    }

    @media (max-width: 767px) {
      top: -55px;
    }

    &.slick-arrow {
      right: 30px;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 0;
      }

      &.swiper-button-disabled {
        background-image: url("@/svg/preview-disable.svg") !important;
      }
    }
  }


  .slick-next {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;

    @media (max-width: 1440px) {
      top: -65px;
    }

    @media (max-width: 767px) {
      top: -55px;
    }

    &.slick-arrow {
      right: 0;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 30px;
      }

      &.swiper-button-disabled {
        background-image: url("@/svg/next-disable.svg") !important;
      }
    }
  }
  .cart{
    .cart-items{
      .cart-title{
        .avatar-placeholder{
          min-width: 45px;
          height: 45px;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 20px;
          text-transform: capitalize;
          box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 7px;
          border-radius: 100%;
          background: rgb(245, 246, 247);
        }
      }
    }
  }
}

.offer-banner-slider {
  .offer-banner {
    width: 100%;

    .banner-img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 10px;
    }
  }

  .slick-prev {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;

    @media (max-width: 1440px) {
      top: calc(-50px + (-65 - -50) * ((100vw - 320px) / (1441 - 320)));
    }

    &.slick-arrow {
      background-image: url("@/svg/preview.svg");
      right: 30px;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 0;
      }

      &.swiper-button-disabled {
        background-image: url("@/svg/preview-disable.svg") !important;
      }
    }
  }

  .slick-next {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;

    @media (max-width: 1440px) {
      top: calc(-50px + (-65 - -50) * ((100vw - 320px) / (1441 - 320)));
    }

    &.slick-arrow {
      background-image: url("@/svg/next.svg") !important;
      right: 0;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 30px;
      }

      &.swiper-button-disabled {
        background-image: url("@/svg/next-disable.svg") !important;
      }
    }
  }
}

.job-request-section {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 285px;
  border-radius: 8px;
  z-index: 0;
  overflow: hidden;

  &::before {
    @extend %bg-primary-color;
    opacity: 0.2;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 8px;
    height: 100%;
    z-index: -1;
    border: 1px solid var(--primary-color);
    opacity: 0.8;
  }

  @media (max-width: 1199px) {
    height: auto;
  }

  .job-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    gap: 110px;

    @media (max-width: 1199px) {
      display: block;
      text-align: center;
    }

    .job-request-content {
      width: calc(100% - 110px - 460px);

      @media (max-width: 1199px) {
        width: 100%;
        text-align: left;
      }

      a {
        display: inline-block;
      }

      h3 {
        margin-bottom: calc(14px + (20 - 14) * ((100vw - 320px) / (1920 - 320)));
        font-weight: 700;
        font-size: calc(18px + (32 - 18) * ((100vw - 320px) / (1920 - 320)));
        color: $title-color;
        width: 80%;

        @media (max-width: 1399px) {
          width: 100%;
          font-weight: 600;
        }
      }

      .book-now-btn {
        @media (max-width: 1199px) {
          margin-inline: auto;
        }
      }
    }
  }
}