/* Wyszukiwarka w nagłówku: pole z lupą po prawej, która jest przyciskiem „Szukaj”. */

.xs-search {
  flex: 0 1 360px;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 6px 0 18px;
  border-radius: var(--xs-radius);
  background: var(--xs-surface);
  border: 1px solid var(--xs-line);
  box-shadow: 0 1px 2px rgba(20, 20, 21, 0.04);
  color: var(--xs-muted);
}

.xs-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--xs-text);
  font-size: 15px;
}

.xs-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--xs-radius);
  background: transparent;
  color: var(--xs-muted);
}

.xs-search button:hover {
  background: var(--xs-bg);
  color: var(--xs-text);
}

@media (max-width: 900px) {
  .xs-search {
    order: 10;
    flex: 1 1 100%;
    min-width: 0;
    display: none;
  }

  body.xs-search-open .xs-search {
    display: flex;
  }
}
