.page-search-button {
  position: relative;
  overflow: visible;
  color: var(--text-color);
  width: 100%;
}

.page-search-button .input-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
}

.page-search-button .input-wrapper .subtitle {
  display: none;
}

.page-search-button .input-wrapper label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  align-items: center;
  padding: 0.5rem;
  height: 100%;
  width: var(--button-width);
  transition: width 0.2s;
}

.page-search-button .input-wrapper .label-text {
  flex-grow: 1;
}


.page-search-button .input-wrapper input {
  background: none;
  margin: 0;
  padding: 0;
  width: 3rem;
  border: none;
  border-bottom: 1px solid var(--search-color);
  transition: width 0.5s;
  flex-grow: 0;
  flex-shrink: 1;
  text-align: center;
  font-size: 1rem;
}

.page-search-button .input-wrapper input:focus {
  outline: none
}

.page-search-button:hover .input-wrapper,
.page-search-button:focus-within .input-wrapper {
  box-shadow: 0px 3px 6px #00000033;
  clip-path: inset(-5px 0px -5px -5px);
}

.page-search-button:hover .subtitle,
.page-search-button:focus-within .subtitle {
  display: block;
  font-size: 0.6875rem;
  color: var(--disabled-color);
}

.page-search-button:hover label,
.page-search-button:focus-within label {
  width: 13rem;
  flex-direction: row;
  font-size: 1.125rem;
}


.page-search-button:hover label .title,
.page-search-button:focus-within label .title {
  font-weight: 700;
  font-size: 1.125rem;
}

.page-search-button:hover label input,
.page-search-button:focus-within label input {
  font-size: inherit;
}

@media (max-width: 580px) {
  .page-search-button .long-title {
    display: none;
  }

  .page-search-button:hover .long-title,
  .page-search-button:focus-within .long-title {
    display: inline;
  }
}