/** SHIFT CUSTOM SEARCH BOX COMPONENT */

/* TOGGLE BUTTON */
.shift-custom-search-toggle {
    cursor: pointer;
    padding: 0px 30px !important;
    background: #fff !important;
    border: none !important;
    display: flex;
}
button.shift-custom-search-toggle svg {
    width: 22px;
    height: auto;
}
.shift-custom-search-toggle svg path {
  transition: fill 0.2s ease-in-out;
}

.shift-custom-search-toggle:hover svg path {
  fill: #03476c;
}

/* SPINNER ANIMATION */
.shift-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #03476c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* LOADING CONTAINER */
.shift-search-loading-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.shift-search-loading-container .shift-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #03476c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.shift-search-loading-container .shift-searching-text {
  font-family: var(--e-global-typography-c2bd698-font-family), Sans-serif;
  font-size: var(--e-global-typography-c2bd698-font-size);
}

/* SEARCH BOX CONTAINER */
.shift-custom-search-box {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  background: white;
  padding: 20px 0;
  box-shadow: none;
  z-index: 98;
  height: 71px;
}

.admin-bar .shift-custom-search-box {
  top: 112px;
}


/* ACTIVE STATE */
.shift-custom-search-box.active {
  display: flex;
  align-items: center;
}
.shift-search-input-wrapper {
    width: 1100px;
    display: flex;
;
}

/* SEARCH OVERLAY */
#shiftSearchOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 97;
  display: none;
}
#shiftSearchOverlay.active {
  display: block;
}

/* INPUT WRAPPER */
.shift-custom-search-box .search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 99;
}

/* INPUT FIELD */
#shift-custom-search-input {
  padding: 10px 0;
  font-size: 16px;
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--e-global-typography-c2bd698-font-family), Sans-serif;
  font-size: var(--e-global-typography-c2bd698-font-size);
  font-weight: var(--e-global-typography-c2bd698-font-weight);
  color: #000;
}

/* CLOSE BUTTON */
#shift-custom-search-close {
  display: none;
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}

/* RESULTS CONTAINER */
.shift-custom-search-results {
  display: none;
  width: 100%;
  background: #fff;
  padding: 20px 0;
  position: relative;
  z-index: 99;
}

/* INNER RESULTS CONTAINER */
.shift-custom-search-results-inner {
  border-top: 1px solid grey;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* RESULT ITEM */
.shift-custom-search-result-item {
  padding: 10px 0;
  cursor: pointer;
  font-family: var(--e-global-typography-c2bd698-font-family), Sans-serif;
  font-size: var(--e-global-typography-c2bd698-font-size);
  font-weight: var(--e-global-typography-c2bd698-font-weight);
}
.shift-custom-search-result-item:hover {
  color: gray;
}

/* RESPONSIVE TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
  .shift-custom-search-box {
    top: 80px;
    height: 71px;
  }
   .admin-bar .shift-custom-search-box {
    top: 110px;
  }
  .shift-custom-search-box .search-input-wrapper {
    padding: 0 60px;
  }
  .shift-custom-search-results {
    padding: 20px 60px;
  }
  .shift-search-input-wrapper {
    width: 100%;
    padding: 0 60px;
}
}

/* RESPONSIVE MOBILE */
@media (max-width: 767px) {
  .shift-custom-search-toggle {

    padding: 0px 10px  !important;
  
  
   
}
  .shift-custom-search-box {
    top: 138px;
    height: 71px;
  }
  .shift-custom-search-box .search-input-wrapper {
    padding: 0 20px;
  }
  .shift-custom-search-results {
    padding: 20px 20px;
  }
  .shift-search-input-wrapper {
    width: 100%;
    padding: 0 20px;
}
}

@media screen and (max-width: 782px) {
  .admin-bar .shift-custom-search-box {
    top: 126px;
  }
}

@media (max-width: 767px) {
  .shift-custom-search-box {
    top: 80px;
  }
  .admin-bar .shift-custom-search-box {
    top: 128px;
  }
}
