/* Project overrides applied on top of the vendored legacy theme (loaded after custom.css).
   Fixes the search-card action row: the theme's inline-block + float:right + 15px margins
   overflow the ~300px card when three buttons render (Suna + Contacteaza + Vizualizare),
   stacking icons over labels. Scoped to the search results grid (.business .strip). */

.business .strip ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.business .strip ul li {
  display: inline-flex;
  margin-right: 0;
  float: none;
}

.business .strip ul li:last-child {
  float: none;
  margin-left: auto;
}

.business .strip ul li:first-child {
  font-size: 11px;
}

.business .strip ul li:first-child i {
  font-size: 11px;
  top: 0;
}

.business .strip ul li a {
  white-space: nowrap;
}

/* Product card action buttons on the company detail page: the theme has no
   desktop rules for ul.d-flex.buttons, so the items collapse into icon
   slivers. Lay them out as a wrapping flex row with readable buttons. */
.product-item ul.buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.product-item ul.buttons li {
  margin: 0;
  float: none;
  width: 100%;
}

.product-item ul.buttons li span {
  display: flex;
  width: 100%;
}

.product-item ul.buttons li a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: 6px;
}

.product-item .loc_close_phone {
  background: #004dda;
}

/* Contact form subject select: the Nice Select plugin replaces the <select>
   with a floated auto-width div, which shrinks it and displaces the label.
   Make both the native select and the injected replacement full-width blocks. */
/* !important: overrides the vendored Nice Select plugin's own float/width rules.
   No display rule on the native select: the plugin hides it and shows .nice-select. */
.form-group .nice-select {
  display: block !important;
  float: none !important;
  width: 100% !important;
}

.form-group select.form-control {
  float: none !important;
  width: 100% !important;
}

/* Breathing room between the blue search band and the breadcrumb row. */
.dir-alp-tit .breadcrumb {
  margin-top: 15px;
}

/* Search page: result-type radios live in the left sidebar, stacked vertically. */
#sidebar .category_filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
