.header-wrapper .header .location-wrapper .location {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  padding: 0.5rem 0;
  background: linear-gradient(238deg, #384F6E -11.12%, #5B5B5B 111.5%);

  @media(width >=1200px) {
    background: unset;
    padding: 0;
    height: unset;
    justify-content: left;
  }
}

.location .location-btn {
  font-family: var(--font-primary-nexa);
  font-size: var(--body-font-size-xxxs);
  font-weight: 400;
  line-height: 1rem;
  color: #f2f2f2;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;

  @media(width >=1200px) {
    font-size: 0.625rem;
    line-height: 0.75rem;
    background-color: #18171A;
  }

  @media(width >=1200px) {
    font-size: var(--body-font-size-xs);
    line-height: 1.25rem;
  }

  &::after {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    background-image: url('/icons/dropdown_small.svg');
    background-size: contain;
    background-repeat: no-repeat;

    @media(width >=1200px) {
      background-image: url('/icons/dropdown.svg');
      width: 1.5rem;
      height: 1.5rem;
    }
  }

  span {
    overflow: hidden;
    white-space: nowrap;
    text-align: center;

    @media(width >=1200px) {
      max-width: 70px;
      text-align: right;
    }

    @media (width >=1366px) {
      max-width: none;
    }
  }
}

.location .geo-location {
  z-index: 1;
  position: absolute;
  top: calc(var(--nav-height) + 3rem);
  left: 0;
  right: 0;
  width: 100%;
  background-color: #FFF;

  @media(width >=1200px) {
    top: var(--nav-height);
    left: unset;
    left: 13rem;
    width: 20rem;
  }

  @media(width >=1200px) {
    left: 11.5rem;
    width: 25rem;
  }
  @media(width >= 1920px) {
    width: 36.5rem;
  }

  p {
    margin: unset;
  }
}

.location .geo-location .geo-location_heading {
  background-color: #f2f2f2;
  padding: 1.5rem 1.25rem 1.5625rem;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 40% 80%, 36% 100%, 0% 100%);
  display: flex;
  justify-content: space-between;

  .geo-location__text {
    font-family: var(--font-primary-nexa);
    font-size: var(--body-font-size-xxs);
    font-weight: 500;
    line-height: 1.25rem;
    color: #18171a;
    width: 70%;

    @media(width >=1200px) {
      font-size: var(--body-font-size-xxxs);
      width: 15rem;
    }

    @media(width >=1200px) {
      font-size: var(--body-font-size-xs);
      width: 18.75rem;
    }
  }
}

.geo-location .close__icon {
  content: "";
  display: inline-block;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('/icons/close__icon.svg');
  background-size: contain;
  background-repeat: no-repeat;

  @media(width >=1200px) {
    display: none;
  }
}

.location .geo-location .detect-location {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: left;
  padding-top: 24px;

  @media(width >=1200px) {
    padding: 1rem;
    gap: 1rem;
  }

  @media(width >=1200px) {
    padding: 1.5rem 1.25rem;
    gap: unset;
  }
}

.location .geo-location .detect-location .detect-location__box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location .geo-location .detect-location .separator {
  display: flex;
  justify-content: center;
  font-size: var(--body-font-size-xxxs);
  font-weight: 500;
  line-height: 1rem;
  color: #18171a;
  border: none;

  @media(width >=1200px) {
    font-size: var(--body-font-size-xxs);
    line-height: 1.25rem;
    margin-block: 32px;
  }
}

.location .geo-location .detect-location .detect-location__text {
  padding: 6px 0;
  font-family: var(--font-primary-nexa);
  font-size: var(--body-font-size-xxs);
  font-weight: 400;
  line-height: 1.25rem;
  color: #515151;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #b2b2b2;
  cursor: pointer;

  @media(width >=1200px) {
    font-size: var(--body-font-size-xxxs);
  }

  @media(width >=1200px) {
    font-size: var(--body-font-size-xs);
  }
}

.location .geo-location .detect-location .detect-location__text::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('/icons/detect_location.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.location .geo-location .detect-location .detect-location__box .top__cities {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
  padding-bottom: 8px;

  @media(width >=1200px) {
    padding-bottom: 0;
  }

  &::-webkit-scrollbar {
    display: none;
  }

  .selected__top__city {
    border: 1px solid #b2b2b2;
    border-radius: 1.125rem;
    padding: 0.25rem 0.75rem;
    color: #767879;
    font-family: var(--font-primary-nexa);
    font-size: var(--body-font-size-xxs);
    font-weight: 400;
    line-height: 1.25rem;
    text-align: center;
    cursor: pointer;
  }

  .selected__top__city.active {
    border: none;
    color: #fff;
    background-color: #000;
  }
}

.location .geo-location .detect-location .search-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-primary-nexa);
  font-size: var(--body-font-size-xxs);
  font-weight: 400;
  line-height: 1.25rem;
  padding-top: 8px;

  @media(width >=1200px) {
    padding-top: 0;
  }

  .search-box {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #b2b2b2;
  }

  .search {
    color: var(--primary-main);
    border: none;
    outline: none;
    width: 95%;
    box-sizing: border-box;
    font-family: var(--font-primary-nexa);
    font-size: var(--body-font-size-xxs);
    font-weight: 400;
    line-height: 1.25rem;

    &::placeholder {
      color: #515151;
    }

    @media(width>=1200px) {
      font-size: var(--body-font-size-xxxs);
      line-height: 1rem;
    }

    @media(width >=1200px) {
      font-size: var(--body-font-size-xs);
      line-height: 1.25rem;
    }
  }

  .search-box::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('/icons/location_search.svg');
    background-size: contain;
    background-repeat: no-repeat;
  }
}

.location .geo-location .detect-location .search-location .suggested-places {
  display: none;
  flex-direction: column;
  align-items: left;
  max-height: 11rem;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

  .suggested__city {
    padding: 0.75rem;
    color: var(--secondary-main);
    text-transform: capitalize;

    strong {
      color: var(--primary-main);
    }
  }

  .suggested__city:hover {
    background-color: #f2f2f2;
    color: #18171A;
    cursor: pointer;
  }

  .suggested__city.active-city::after {
    content: "";
    display: inline-flex;
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background-image: url('/icons/tick.svg');
    background-size: contain;
    background-repeat: no-repeat;
  }
}

.location .geo-location .detect-location .search-location .error-message {
  display: flex;
  gap: 1rem;
  align-items: center;

  &>div {
    padding-top: 12px;
  }
}

.location .geo-location .detect-location .search-location .error-message div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  p:first-child {
    color: #18171A;
    font-size: var(--body-font-size-xxs);
  }

  p {
    font-family: var(--font-primary-nexa);
    font-size: var(--body-font-size-xxxs);
    font-weight: 400;
    line-height: 1.12rem;
    color: #515151;
  }
}

.location .geo-location .detect-location .search-location .error-message::before {
  content: "";
  width: 12px;
  height: 45px;
  background: url('/icons/exclamation.svg') no-repeat center;
}

@media(width >=768px) {
  .location .geo-location .geo-location_heading {
    padding-bottom: 32px;
  }
}

.location .geo-location .detect-location .search-location .suggested-places .suggested__city {
  padding-left: 16px;
  padding-right: 32px;
  &.active-city::after {
    width: 24px;
    height: 24px;
  }
}

@media(width>=1200px) {
  .location .geo-location .geo-location_heading {
    padding-bottom: 29px;
  }

  .location .geo-location .detect-location .detect-location__text {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .location .geo-location .detect-location .detect-location__box {
    gap: 20px;
  }

  .location .geo-location .detect-location .search-location .search-box {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .location .geo-location .detect-location .search-location .error-message div {
    p:first-child {
      font-size: var(--body-font-size-xs);
    }

    p {
      font-size: var(--body-font-size-xxs);
    }
  }
}
