/* Snaptools Tool Search */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-search-card {
  position: relative;
  overflow: visible;
}

.tool-search-box {
  position: relative;
  max-width: 760px;
  margin: 24px auto 14px;
}

.tool-search-input {
  width: 100%;
  min-height: 58px;
  padding: 16px 54px 16px 20px;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tool-search-input:focus {
  border-color: #4A90E2;
  box-shadow: 0 16px 44px rgba(74, 144, 226, .18);
}

.tool-search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef4fb;
  color: #59708c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.tool-search-clear.is-visible {
  display: grid;
}

.tool-search-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px auto 18px;
}

.tool-search-keywords button {
  border: 1px solid #d8e6f6;
  border-radius: 999px;
  background: #f7fbff;
  color: #315b89;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tool-search-keywords button:hover,
.tool-search-keywords button:focus-visible {
  background: #eaf4ff;
  border-color: #b8d7f6;
}

.tool-search-status {
  min-height: 24px;
  margin: 8px auto 10px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.tool-search-results {
  max-width: 960px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.tool-search-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-search-result:hover,
.tool-search-result:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .1);
  border-color: #bfdbfe;
}

.tool-search-result-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f1f7ff;
  font-size: 22px;
}

.tool-search-result strong {
  display: block;
  margin-bottom: 4px;
  color: #10233f;
  font-size: 15px;
}

.tool-search-result small {
  display: block;
  color: #64748b;
  line-height: 1.55;
}

.tool-search-result em {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #315b89;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.tool-search-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
  color: #64748b;
}

@media (max-width: 720px) {
  .tool-search-input {
    min-height: 54px;
    border-radius: 15px;
    font-size: 16px;
  }
  .tool-search-results {
    grid-template-columns: 1fr;
  }
  .tool-search-result {
    padding: 14px;
    border-radius: 16px;
  }
}
