.ac-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 12px;
}

.ac-list-heading .ac-list-title {
  margin: 0;
}

.ac-list-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ac-list-tool {
  position: relative;
}

.ac-list-tool summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #526d80;
  border-radius: 8px;
  background: #15344a;
  color: #e8f0f5;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.ac-list-tool summary::-webkit-details-marker {
  display: none;
}

.ac-list-tool[open] summary {
  border-color: #ff8a2b;
  box-shadow: 0 0 0 2px #ff8a2b33;
}

.ac-list-popover {
  position: absolute;
  z-index: 20;
  top: 43px;
  right: 0;
  width: min(330px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid #49657a;
  border-radius: 10px;
  background: #102b3e;
  box-shadow: 0 12px 32px #06172580;
  color: #e5edf3;
}

.ac-search-popover form > label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.ac-search-popover form > div {
  display: flex;
  gap: 7px;
}

.ac-search-popover input[type="search"] {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 7px 9px;
  border: 1px solid #607c90;
  border-radius: 7px;
  background: #f3f6f8;
  color: #102b3e;
  font: inherit;
}

.ac-search-popover button {
  height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: #ff7b20;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.ac-search-popover form > a {
  display: inline-block;
  margin-top: 8px;
  color: #ffc477;
  font-size: 11px;
}

.ac-alpha-popover {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.ac-alpha-popover a {
  display: grid;
  place-items: center;
  min-height: 31px;
  border: 1px solid #486479;
  border-radius: 6px;
  background: #17374e;
  color: #e8f0f5;
  font-size: 11px;
  font-weight: 800;
}

.ac-alpha-popover a:first-child {
  grid-column: span 2;
}

.ac-alpha-popover a[aria-current="page"] {
  border-color: #ff8a2b;
  background: #ff7b20;
  color: #fff;
}

.ac-list-results,
.ac-list-empty {
  margin: 0 0 10px;
  color: #aac0d0;
  font-size: 12px;
}

.ac-list-empty {
  padding: 18px;
  border: 1px solid #345166;
  border-radius: 10px;
  background: #0d293e;
  text-align: center;
}

@media (max-width: 650px) {
  .ac-list-tools {
    gap: 5px;
  }

  .ac-list-tool summary {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .ac-list-popover {
    top: 40px;
  }

  .ac-search-popover {
    right: -48px;
  }
}
