.statement-search-wrapper {
  position: relative;
  overflow: visible;
}

.statement-search-wrapper:focus-within {
  border-color: #5f5bc4 !important;
  box-shadow: 0 0 0 1px #5f5bc4 !important;
}

.statement-search-button,
.statement-search-clear {
  cursor: pointer;
}

.statement-search-button {
  color: #1a1a1a;
}

.statement-search-button:hover,
.statement-search-button:focus-visible {
  color: #5f5bc4;
  outline: none;
}

.statement-search-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  z-index: 1300;
  width: 344px;
  padding: 16px 20px;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(28, 33, 48, 0.18);
  transform: translateX(-50%);
}

.statement-search-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border-top: 10px solid #fff;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 2px rgba(28, 33, 48, 0.06));
}

.statement-search-tooltip[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .statement-search-tooltip {
    right: 0;
    left: auto;
    width: min(344px, calc(100vw - 32px));
    transform: none;
  }

  .statement-search-tooltip::after {
    left: 80%;
  }
}
