.yb-feedback-alert {
  font-size: var(--yb-text-ui);
  font-weight: 400;
  line-height: 1.4;
}

.yb-toast-container {
  position: fixed;
  top: 72px;
  right: 1rem;
  z-index: 1080;
  width: min(360px, calc(100vw - 2rem));
}

.yb-toast {
  width: 100%;
  border: 1px solid rgba(60, 60, 65, 0.16);
  border-left: 4px solid #198754;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 28, 30, 0.16);
  overflow: hidden;
}

.yb-toast + .yb-toast {
  margin-top: 0.75rem;
}

.yb-toast-content {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 0.5rem;
  align-items: start;
  padding: 0.75rem;
  background: #ffffff;
}

.yb-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f5ee;
  color: #198754;
  font-size: 0.85rem;
}

.yb-toast-message {
  font-size: var(--yb-text-ui);
  line-height: 1.4;
  font-weight: 400;
  color: var(--yb-charcoal);
}

.yb-toast-close {
  width: 22px;
  height: 22px;
  padding: 0.25rem;
}

.yb-toast-progress {
  height: 3px;
  background: #198754;
  transform-origin: left center;
}

.yb-toast-progress.is-running {
  animation: ybToastProgress var(--yb-toast-duration, 4500ms) linear forwards;
}

.yb-context-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.yb-context-feedback--standalone {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.yb-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(360px, 100%);
  min-height: 30px;
  padding: 0.28rem 0.62rem;
  border: 1px solid #9fd8ba;
  border-radius: 999px;
  background: #e8f5ee;
  color: #0a3622;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.25;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.yb-context-pill i {
  color: #198754;
  flex: 0 0 auto;
}

.yb-context-pill.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes ybToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
  .yb-toast-container {
    top: 64px;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .yb-context-feedback {
    justify-content: flex-start;
    width: 100%;
  }
}
