#search-panel {
  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s linear;
  padding-left: 40px;
  padding-right: 40px;
}

#search-panel.visible {
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

#search-panel__input {
  display: flex;
  justify-content: center;
  padding-top: 200px;
}

#search-panel__input__field {
  font-size: 46px;
  font-family: bodoni72;
  width: 100%;
  outline: none !important;
}

.search-panel__title-prodotti {
  font-size: 38px;
  font-family: bodoni72;
  margin-top: 40px;
  transition: opacity .3s ease-out;
}

#search-panel__results {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 4rem 2rem;
  padding-bottom: 32px;
}

#search-panel__closeBtn {
  position: absolute;
  top: 4rem;
  right: 4rem;
  cursor: pointer;
}

#search-panel__closeBtn:before {
  content: url('../images/icon/close.svg');
  position: relative;
  display: block;
  width: 28px;
}

.search-panel__title {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 19px;
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  transition: opacity .3s ease-out;
}

.search-panel__magnifying-glass {
  width: 22px;
  margin-right: 18px;
}

.hidden {
  opacity: 0;
}

#search-panel__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 2s linear infinite;
  z-index: 2;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

#search-panel__spinner .path {
  stroke: #3f3f3f;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg) translate(-50%, -50%);;
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.search-result__title {
  text-transform: uppercase;
  font-size: 18px;
}

.search-panel__title-no-results {
  font-size: 38px;
  font-family: bodoni72;
  margin-top: 40px;
  transition: opacity .3s ease-out;
}