
/* AC7 Premium Factory Search */

.ac7-factory-search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.ac7-factory-search.is-open {
  z-index: 150;
}

.ac7-factory-search
select.ac7-factory-native {
  display: none !important;
}

.ac7-factory-entry {
  position: relative;
  width: 100%;
}

.ac7-factory-entry .ac7-factory-input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 45px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(
    --pu-border,
    #35465d
  );
  background: var(
    --pu-input,
    #101c2c
  );
  color: var(
    --pu-text,
    #eef4ff
  );
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  outline: none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease;
}

.ac7-factory-entry .ac7-factory-input:focus {
  border-color: #4d98ff;
  box-shadow:
    0 0 0 3px rgba(77,152,255,.18);
}

.ac7-factory-entry .ac7-factory-input::placeholder {
  color: var(--pu-muted, #a8bad0);
  font-weight: 400;
}

.ac7-factory-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #5b9fff;
  font-size: 24px;
  pointer-events: none;
  z-index: 1;
}

.ac7-factory-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 285px;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  border: 1px solid var(
    --pu-border,
    #35465d
  );
  background: var(
    --pu-surface,
    #17263b
  );
  box-shadow:
    0 16px 38px rgba(0,0,0,.28);
  z-index: 160;
}

.ac7-factory-results[hidden] {
  display: none !important;
}

.ac7-factory-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--pu-text, #eef4ff);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.ac7-factory-option small {
  font-size: 11px;
  color: var(--pu-muted, #a8bad0);
  font-weight: 500;
}

.ac7-factory-option:hover,
.ac7-factory-option.is-active {
  background: var(
    --pu-primary-soft,
    rgba(77,152,255,.18)
  );
  border-color: rgba(77,152,255,.30);
}

.ac7-factory-empty,
.ac7-factory-hint {
  padding: 13px;
  text-align: center;
  color: var(--pu-muted, #a8bad0);
  font-size: 12px;
}

.ac7-factory-hint {
  border-top: 1px solid var(
    --pu-border,
    #35465d
  );
}

@media (max-width: 600px) {
  .ac7-factory-entry .ac7-factory-input {
    min-height: 46px;
    font-size: 16px;
  }

  .ac7-factory-results {
    max-height: 245px;
  }

  .ac7-factory-option {
    padding: 13px;
  }
}
