.bpls-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.bpls-search-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bpls-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0 !important;
  outline: none !important;
  background: #ffffff;
  color: #222222;
  font-size: 15px;
  line-height: 44px;
  box-shadow: none !important;
}

.bpls-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.bpls-submit {
  flex: 0 0 46px;
  width: 46px;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  background: #222222;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.bpls-submit:hover,
.bpls-submit:focus {
  opacity: 0.86;
}

.bpls-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  z-index: 100000;
}

.bpls-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  text-decoration: none !important;
  color: #222222 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
}

.bpls-result-item:last-child {
  border-bottom: 0;
}

.bpls-result-item:hover,
.bpls-result-item:focus,
.bpls-result-item.is-active {
  background: #f6f6f6;
}

.bpls-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f0f0f0;
  overflow: hidden;
}

.bpls-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bpls-thumb-empty {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bpls-result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bpls-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bpls-material {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bpls-message {
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
}

.bpls-error {
  color: #b00020;
}

.bpls-notice {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #666666;
}

@media (max-width: 767px) {
  .bpls-wrapper {
    max-width: 100%;
  }

  .bpls-input {
    height: 42px;
    font-size: 14px;
    line-height: 42px;
  }

  .bpls-submit {
    flex-basis: 44px;
    width: 44px;
  }

  .bpls-result-item {
    min-height: 58px;
    padding: 9px 10px;
  }

  .bpls-thumb {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}
