.wpgs-input {
  background-color: #fff;
  color: #575757;
  border-color: #fff;

  border-radius: 10px;
  box-shadow: inset 0 0 6px 0 rgba(0, 0, 0, 0.2);
  color: #575757;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  padding: 10px 15px;
  width: 360px;
  max-width: 100%;
}

.wpgs-input:focus,
.wpgs-input:focus-visible {
  outline: none;
}

.wpgs-submit {
  background-color: transparent;
  border: none;
  appearance: none;
  cursor: pointer;
  margin: 0;
  padding: 0;

  position: absolute;
  top: 7px;
  right: 10px;
}

.wpgs-form {
  position: relative;
}

.wpgs-form:after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 100%;
  border-width: 2px;
  border-color: transparent #575757 transparent transparent;
  border-style: solid;
  position: absolute;
  top: 10px;
  right: 10px;
  animation: wpgs-rotate 1s linear infinite;
  display: none;
}

.wpgs-form.loading:after {
  display: block;
}

.loading .wpgs-submit {
  display: none;
}

.wpgs-results-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 99;
  padding: 10px;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2);
  display: none;
  flex-flow: column;
  gap: 10px;
}

.wpgs-results-container.active {
  display: flex;
}

.wpgs-nr {
  text-align: center;
  margin-bottom: 0;
}

.wpgs-results-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #575757;
  border-bottom: 1px solid #575757;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.wpgs-results-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  align-items: center;
  margin-bottom: 10px;
  transition-duration: 0.25s;
}

.wpgs-results-item:hover {
  background-color: #eee;
}

.wpgs-results-item:last-child {
  margin-bottom: 0;
}

.wpgs-results-item-thumb-holder {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #fff;
}

.wpgs-results-item-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wpgs-results-item-title {
  width: calc(100% - 60px);
  font-size: 14px;
  color: #575757;
  margin-bottom: 0;
  line-height: 1.1;
  margin-left: auto;
}

.wpgs-results-item-title strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.wpgs-results-cat-item {
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  transition-duration: 0.25s;
}

.wpgs-results-cat-item:hover {
  background-color: #eee;
}

.wpgs-results-cat-item:last-child {
  margin-bottom: 0;
}

.wpgs-results-cat-title {
  font-size: 15px;
  font-weight: 500;
  color: #575757;
  margin-bottom: 0;
}

.wpgs-results-cat-tree {
  font-size: 13px;
  color: #888;
  margin-bottom: 0;
}

.wpgs-mobile-button {
  display: none;
}

@media (max-width: 991.98px) {
  .wpgs-form-holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    justify-content: center;
    padding-top: 100px;
    display: none;
  }

  .wpgs-form-holder.active {
    display: flex;
  }

  .wpgs-form {
    width: calc(100% - 40px);
    height: fit-content;
  }

  .wpgs-input {
    width: 100%;
  }

  .wpgs-results-container {
    max-height: 300px;
    overflow-y: auto;
  }

  .wpgs-mobile-button {
    display: flex;
    cursor: pointer;
    transition-duration: 0.25s;
  }

  .wpgs-mobile-button:hover {
    opacity: 0.7;
  }
}

@keyframes wpgs-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
