/* Weekly estimate and suggestions under the alert form's chip field
   (js/alert-profile-check.js fills .alert-check), the zero-result note in
   the form's status box (js/tender-alerts.js, .alert-form-status--guard), and
   the followed buyer chips and options of the chip field (at the end).
   Loaded next to css/service-subpages.css, which draws the chip field and the
   status box, on every page with an alert form. Solid colours only. */

/* Without a tier class the box holds only the empty live line and takes no
   space. It stays displayed so the live region is in place before it speaks. */
.alert-check {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.78);
  text-align: left;
}
/* Page and section rules set their own p size, the check keeps the field's. */
.alert-check p,
.alert-check li { margin: 0; font-size: inherit; line-height: inherit; }
.alert-check--ok,
.alert-check--low,
.alert-check--zero { margin-top: 0.5rem; }
.alert-check__line { color: var(--color-ink); }
.alert-check--ok .alert-check__line { color: rgba(15, 23, 42, 0.78); }

/* Low and zero: a quiet amber panel, so the warning reads as advice. */
.alert-check--low,
.alert-check--zero {
  padding: 0.6rem 0.8rem 0.7rem;
  background: #fffbeb;
  border: 1px solid #fde7a6;
  border-left: 3px solid #d97706;
  border-radius: 2px;
}
.alert-check__more,
.alert-check__note { margin-top: 0.35rem !important; }
.alert-check__note { color: var(--color-ink); }

.alert-check__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.alert-check__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  background: #fff;
  border: 1px dashed #93b4f5;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.alert-check__chip:hover,
.alert-check__chip:focus-visible {
  background: #eef4fd;
  border-style: solid;
  border-color: var(--color-cobalt);
}
.alert-check__chip:focus-visible { outline: 2px solid var(--color-cobalt); outline-offset: 2px; }
.alert-check__chip--cpv { border-color: #86d6a4; }
.alert-check__chip--cpv:hover,
.alert-check__chip--cpv:focus-visible { background: #f0fdf4; border-color: #16a34a; }
.alert-check__plus { font-weight: 700; color: var(--color-cobalt); }
.alert-check__chip--cpv .alert-check__plus { color: #166534; }
.alert-check__code { font-weight: 600; color: #166534; font-variant-numeric: tabular-nums; }
.alert-check__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.alert-check__count { color: rgba(15, 23, 42, 0.62); white-space: nowrap; }

.alert-check__notices {
  margin: 0.3rem 0 0;
  padding: 0 0 0 1.1rem;
}
.alert-check__notices li { margin: 0.15rem 0 0; }
.alert-check__notice { color: var(--color-ink); font-weight: 600; }
a.alert-check__notice { text-decoration: underline; text-underline-offset: 2px; }
.alert-check__notice-meta { color: rgba(15, 23, 42, 0.62); white-space: nowrap; }
.alert-check__expert { margin-top: 0.45rem !important; }
.alert-check__expert a { color: var(--color-cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 480px) {
  .alert-check__label { max-width: 10rem; }
}

/* Zero-result note on submit (js/tender-alerts.js). */
.alert-form-status--guard .alert-form-status__text { margin: 0; color: var(--color-ink); }
.alert-form-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.alert-form-status .alert-form-status__btn { font-size: 0.88rem; padding: 0.5rem 0.9rem; min-height: 0; border-radius: 2px; }
.alert-form-status .alert-form-status__btn--quiet {
  background: #fff;
  border: 1px solid var(--color-cobalt);
  border-radius: 2px;
  color: var(--color-cobalt);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
}
.alert-form-status .alert-form-status__btn--quiet:hover,
.alert-form-status .alert-form-status__btn--quiet:focus-visible { background: #eef4fd; }

/* Followed buyer (ajánlatkérő) chips and options in the chip field
   (js/alert-keyword-chips.js). The chip carries a small kicker and a warm
   cream tone, apart from the blue keyword and green CPV chips. */
.kw-chip--buyer {
  background: #faf6ec;
  border-color: #e3d6b8;
}
.kw-chip__kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c5a12;
  white-space: nowrap;
}
.chip-option-group {
  list-style: none;
  border-top: 1px solid var(--color-rule);
  margin-top: 0.3rem;
  padding-top: 0.3rem;
}
.chip-option-group__label {
  padding: 0.35rem 0.85rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c5a12;
}
.chip-option-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip-option.chip-option--buyer { grid-template-columns: minmax(0, 1fr) auto; }
.chip-option__count {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.62);
  white-space: nowrap;
}

/* "Kövesse ezt az ajánlatkérőt" under the buyer-name note (js/alert-profile-check.js). */
.alert-check__follow { margin-top: 0.45rem !important; }
.alert-check__follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: #fff;
  border: 1px solid var(--color-cobalt);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-cobalt);
  cursor: pointer;
}
.alert-check__follow-btn:hover,
.alert-check__follow-btn:focus-visible { background: #eef4fd; }
.alert-check__follow-btn:focus-visible { outline: 2px solid var(--color-cobalt); outline-offset: 2px; }
