/* =========================================================
   SEARCH OVERLAY
========================================================= */

.af-search-overlay {

  position: fixed;
  inset: 0;

  background: rgba(15,23,42,.45);

  backdrop-filter: blur(10px);

  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transition: .25s ease;
}

.af-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* BOX */

.af-search-box {

  position: fixed;

  top: 80px;
  left: 50%;

  transform: translateX(-50%) translateY(-10px);

  width: min(760px, calc(100% - 32px));

  background: #ffffff;

  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(0,0,0,.18);

  z-index: 100000;

  opacity: 0;
  visibility: hidden;

  transition: .25s ease;
}

.af-search-box.active {

  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* INPUT */

.af-search-input-wrap {
  padding: 22px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#afSearchInput {

  width: 100%;

  border: none;
  outline: none;

  font-size: 18px;
  font-weight: 500;

  background: transparent;

  color: #111827;
}

/* RESULTS */

.af-search-results {

  max-height: 520px;
  overflow-y: auto;

  padding: 10px;
}

.af-search-item {

  display: block;

  padding: 16px 18px;

  border-radius: 18px;

  text-decoration: none;

  transition: .2s ease;
}

.af-search-item:hover {
  background: rgba(0,113,227,.06);
}

.af-search-item strong {

  display: block;

  color: #111827;

  font-size: 15px;
  font-weight: 700;
}

.af-search-item span {

  display: block;

  margin-top: 4px;

  color: #6b7280;

  font-size: 13px;
}

/* MOBILE */

@media (max-width: 768px) {

  .af-search-box {
    top: 70px;
    width: calc(100% - 18px);
  }

}
/* =========================================================
   APPLE SEARCH BUTTON FIX
========================================================= */

#afSearchOpen,
.af-search-icon {

  width: 32px !important;
  height: 32px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  outline: none !important;

  background: transparent !important;

  box-shadow: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  border-radius: 999px !important;

  cursor: pointer !important;

  color: #1d1d1f !important;

  opacity: .72;

  transition:
    opacity .2s ease,
    background .2s ease,
    transform .2s ease;
}

#afSearchOpen:hover,
.af-search-icon:hover {

  opacity: 1;

  background:
    rgba(0,0,0,.05) !important;
}

#afSearchOpen:focus,
.af-search-icon:focus {

  outline: none !important;
  box-shadow: none !important;
}

#afSearchOpen svg,
.af-search-icon svg {

  width: 15px !important;
  height: 15px !important;

  display: block !important;

  pointer-events: none;
}