.search-control {
  font-family: sans-serif;
  color: black;
  background: white;
  width: 210px;
  border-radius: 24px;
  z-index: 9999;
  padding: 0;
  margin: 0;
  /*border: 1px solid rgba(0,0,0,0.1);*/
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.search-control.glass {
  background-color: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  outline: 2px solid rgba(255,255,255,0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
}

.search-control > * {
  user-select: none;
}

.search-form {
  padding: 0;
  margin: 0;
}

.search-control:focus-within {
  width: 376px;
}

.search-control:focus-within:has(.search-list:not(:empty)) {
  border-radius: 12px;
  padding-bottom: 6px;
}

@media (max-width: 460px) {
  .search-box: {
    max-width: 90vw;
  }
  .search-control {
    max-width: 90vw;
  }
}

.search-input-container {
  display: flex;
  padding: 0px;
  padding-right: 6px;
  padding-bottom: 1px;
}

.search-input {
  width: 100%;
  font-size: 17px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 0px;
  outline: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 12px 4px 9px 2px;
  margin: 0;
  margin-left: 16px;
  user-select: text !important;
}

.search-control:has(.search-list:not(:empty)) .search-input:focus {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  padding: 8px;
  margin: 0;
  font-size: 32px;
  line-height: 1px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.search-button:hover {
  color: rgba(65, 105, 255, 1);
}

.search-clear {
  font-size: 30px;
}

.search-submit {
  font-size: 22px;
}

.search-input:placeholder-shown ~ .search-clear, .search-input:placeholder-shown ~ .search-submit {
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.search-list-container {
  max-height: 0px;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0);
  transition: all 0.3s ease;
}

.search-list-wrapper {
  background-color: red;
  padding: 6px;
  margin: 6px;
}

.search-control:focus-within:has(.search-list:not(:empty)) .search-list-container {
  max-height: 281px;  /* 40*7=280 + 1px border + top padding */
  overflow: auto;
  margin-top: 2px;
  border-top: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.search-list {
  padding: 0;
  margin: 0px;
  list-style-type: none;
}

.search-list li {
  font-size: 17px;
  line-height: 40px;
  padding: 0px;
  padding-left: 16px;
  padding-right: 4px;
  height: 40px;
  display: flex;
  cursor: pointer;
  overflow: hidden;
}

.search-list li:hover {
  background: rgba(0,0,0,0.1);
}

.search-delete {
  font-size: 24px;
  height: 40px;
  width: 40px;
}

@media (hover: hover) and (pointer: fine) {
  .search-delete {
    display: none;
  }
  li:hover .search-delete {
    display: inline;
  }
}

.search-item-text {
  font-size: inherit;
  width: 100%;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-menu {
  font-size: 22px;
  width: 40px;

  transform: scaleX(1.25);

  margin-left: 10px;
  margin-top: 0px;
  margin-right: -14px;

  opacity: 0.75;
}



