/* Matches the host-app cart button metrics (Bootstrap .btn + p-2 utility):
 * 0.5rem padding, 0.375rem border-radius, 1px border, 1.25 line-height. */
.root-sdk-unread-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #5d293a;
  border-radius: 0.375rem;
  background-color: #f0eced;
  color: #5d293a;
  text-decoration: none;
  line-height: 1.25;
}

.root-sdk-unread-badge:hover,
.root-sdk-unread-badge:focus {
  background-color: #e4dadf;
  color: #5d293a;
  text-decoration: none;
}

/* Icon sits at the natural Bootstrap Icons size and aligns with the cart's
 * `.lh-sm` treatment so rows line up visually. The 2px right nudge corrects
 * for the chat-left-text glyph's leftward bias inside its own bounding box. */
.root-sdk-unread-badge__icon {
  position: relative;
  left: 2px;
  font-size: 1rem;
  line-height: 1.25;
}

/* Count renders as colored text (matching the cart's unfilled `.badge
 * .rounded-pill .text-root-*` pattern) rather than a filled pill, so the
 * affordance reads as "number next to icon" and lines up with the cart. */
.root-sdk-unread-badge__count {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #5d293a;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50rem;
}
