.atomx-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fafafa;
  color: #222;
}

.atomx-search-summary__status {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.atomx-search-summary__clear {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #222;
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.atomx-search-summary__clear:focus-visible {
  outline: 3px solid #b98700;
  outline-offset: 3px;
}

.atomx-search-is-loading button[type="submit"] {
  opacity: 0.7;
}

.atomx-native-search-menu {
  max-width: calc(100vw - 24px);
  max-height: 440px;
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .atomx-ref-search input[name="s"],
  #search_widget input[name="s"] {
    font-size: 16px;
  }

  .atomx-ref-search button[type="submit"] {
    min-width: 44px;
    min-height: 44px;
  }

  .atomx-search-summary {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .atomx-search-summary__status {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .atomx-search-summary__clear {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }
}

.atomx-smart-search-suggestion {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #111;
  background: #f5f5f5;
  color: #222;
  font-size: 1rem;
  line-height: 1.5;
}

.atomx-smart-search-suggestion__label {
  font-weight: 600;
}

.atomx-smart-search-suggestion__link {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.atomx-smart-search-suggestion__link:hover {
  color: #444;
}

.atomx-smart-search-suggestion__link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.atomx-smart-search-recovery {
  width: 100%;
  max-width: 980px;
  margin: 1.5rem auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.07);
  color: #151515;
  text-align: left;
}

.atomx-smart-search-recovery__eyebrow {
  margin: 0 0 0.35rem;
  color: #765000;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.atomx-smart-search-recovery__title {
  margin: 0;
  color: #111;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.atomx-smart-search-recovery__body {
  max-width: 700px;
  margin: 0.65rem 0 1.25rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.atomx-smart-search-recovery__form {
  margin: 0;
}

.atomx-smart-search-recovery__label {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: #222;
  font-size: 0.9rem;
  font-weight: 700;
}

.atomx-smart-search-recovery__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.atomx-smart-search-recovery__input,
.atomx-smart-search-recovery__submit,
.atomx-smart-search-recovery__link,
.atomx-smart-search-recovery__catalog {
  min-height: 48px;
}

.atomx-smart-search-recovery__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid #c8c8c8;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.4;
}

.atomx-smart-search-recovery__input:focus {
  border-color: #111;
  outline: 3px solid rgba(244, 180, 0, 0.42);
  outline-offset: 2px;
}

.atomx-smart-search-recovery__submit {
  padding: 0.75rem 1.35rem;
  border: 2px solid #111;
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
}

.atomx-smart-search-recovery__submit:hover {
  border-color: #2f2f2f;
  background: #2f2f2f;
}

.atomx-smart-search-recovery__browse-title {
  margin: 1.4rem 0 0.7rem;
  color: #222;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.atomx-smart-search-recovery__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atomx-smart-search-recovery__link-item {
  margin: 0;
  padding: 0;
}

.atomx-smart-search-recovery__link,
.atomx-smart-search-recovery__catalog {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.atomx-smart-search-recovery__link {
  padding: 0.7rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #202020;
}

.atomx-smart-search-recovery__link:hover {
  border-color: #b98700;
  background: #fff8e5;
  color: #111;
  transform: translateY(-2px);
}

.atomx-smart-search-recovery__catalog {
  width: fit-content;
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  border: 2px solid #111;
  background: transparent;
  color: #111;
}

.atomx-smart-search-recovery__catalog:hover {
  background: #111;
  color: #fff;
}

.atomx-smart-search-recovery__submit:focus-visible,
.atomx-smart-search-recovery__link:focus-visible,
.atomx-smart-search-recovery__catalog:focus-visible {
  outline: 3px solid #b98700;
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .atomx-smart-search-suggestion {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .atomx-smart-search-recovery {
    margin-top: 1rem;
    padding: 1.15rem;
    border-radius: 16px;
  }

  .atomx-smart-search-recovery__body {
    font-size: 0.95rem;
  }

  .atomx-smart-search-recovery__field-row {
    grid-template-columns: 1fr;
  }

  .atomx-smart-search-recovery__submit,
  .atomx-smart-search-recovery__catalog {
    width: 100%;
  }

  .atomx-smart-search-recovery__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .atomx-smart-search-recovery__link,
  .atomx-smart-search-recovery__catalog {
    transition: none;
  }

  .atomx-smart-search-recovery__link:hover {
    transform: none;
  }
}
