/* Quote-flow database availability chip (QuoteLayout only). */

.quote-db-status {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.quote-db-status__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.quote-db-status__label {
  font-weight: 500;
}

.quote-db-status--online {
  /* Dot-only: keep the corner indicator minimal when healthy */
  gap: 0;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.quote-db-status--online .quote-db-status__dot {
  background: #22c55e;
}

.quote-db-status--offline {
  background: #fff5f5;
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #9f1239;
  pointer-events: auto;
}

.quote-db-status--offline .quote-db-status__dot {
  background: #dc2626;
}

@media (max-width: 640px) {
  .quote-db-status--offline {
    left: 1rem;
    right: 1rem;
    max-width: none;
    justify-content: center;
    text-align: center;
  }
}
