/* ============================================================
 * Search Agent / Smart Stock Alerts
 * ============================================================ */

/* ── Trigger link in filter bar ─────────────────────────────── */

.as24ci-search-agent-trigger {
  font-size: 14px;
  font-weight: 700;
  color: var(--as24ci-color-accent, #005a9c);
  text-decoration: none;
  padding: 8px 0;
  margin-left: 18px;
  white-space: nowrap;
}

.as24ci-search-agent-trigger:hover {
  text-decoration: underline;
}

/* ── Inline form (Variant A: 0 results) ─────────────────────── */

.as24ci-search-agent-empty {
  text-align: center;
  padding: 40px 20px;
}

.as24ci-search-agent-empty .as24ci-archive-empty {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.as24ci-search-agent-form--inline {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

/* ── Shared form styles ─────────────────────────────────────── */

.as24ci-sa-criteria-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.as24ci-sa-chip {
  display: inline-block;
  background: var(--as24ci-color-bg-soft, #f9fafb);
  border: 1px solid var(--as24ci-color-border, #e5e7eb);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: #374151;
}

.as24ci-sa-chip strong {
  font-weight: 700;
  color: #111827;
}

.as24ci-sa-field {
  margin-bottom: 14px;
}

.as24ci-sa-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.as24ci-sa-field input[type="email"] {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--as24ci-color-border, #e5e7eb);
  background: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.as24ci-sa-field input[type="email"]:focus {
  border-color: var(--as24ci-color-primary, #2271b1);
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.25);
}

.as24ci-sa-consent {
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}

.as24ci-sa-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.as24ci-sa-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.as24ci-sa-consent a {
  color: var(--as24ci-color-primary, #004b8d);
  text-decoration: underline;
}

.as24ci-btn.as24ci-sa-submit {
  display: inline-block;
  background: var(--as24ci-color-accent, #005a9c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--as24ci-shadow-button, 0 3px 8px rgba(15, 23, 42, 0.2));
  transition: background 0.15s, box-shadow 0.15s;
}

.as24ci-btn.as24ci-sa-submit:hover {
  background: #003a6d;
  box-shadow: var(--as24ci-shadow-button-hover, 0 4px 12px rgba(15, 23, 42, 0.25));
}

.as24ci-btn.as24ci-sa-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.as24ci-sa-message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.as24ci-sa-message--success {
  color: #16a34a;
}

.as24ci-sa-message--error {
  color: #dc2626;
}

/* ── Modal (Variant B) ──────────────────────────────────────── */

.as24ci-sa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.as24ci-sa-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.as24ci-sa-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}

.as24ci-sa-modal-close:hover {
  color: #111827;
}

.as24ci-sa-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.as24ci-sa-modal-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ── Honeypot (anti-spam) ────────────────────────────────────── */

.as24ci-sa-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 640px) {
  .as24ci-sa-modal {
    padding: 24px 18px;
    margin: 10px;
  }

  .as24ci-search-agent-trigger {
    margin-left: 12px;
  }
}
