.bscic-success-toast-region {
  position: fixed;
  right: 16px;
  bottom: 40px;
  z-index: 2000;
  display: grid;
  gap: 10px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.bscic-success-toast {
  --toast-border: #cfe8d5;
  --toast-background: #eef9f0;
  --toast-accent: #77bd87;
  --toast-icon: #418c53;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px 14px 14px;
  border: 1px solid var(--toast-border);
  border-radius: 10px;
  background: var(--toast-background);
  box-shadow: 0 6px 24px rgba(19, 45, 82, .12);
  color: #192e51;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: .8rem;
  overflow: hidden;
}

.bscic-success-toast[data-toast-type="info"] {
  --toast-border: #cbdff5;
  --toast-background: #edf7ff;
  --toast-accent: #75aadd;
  --toast-icon: #3479ac;
}

.bscic-success-toast[data-toast-type="warning"] {
  --toast-border: #f0d9b2;
  --toast-background: linear-gradient(135deg, #fff2e5, #fffbe5);
  --toast-accent: #d8a651;
  --toast-icon: #a97825;
}

.bscic-success-toast[data-toast-type="danger"] {
  --toast-border: #f3cdd1;
  --toast-background: #fff0f1;
  --toast-accent: #df8b96;
  --toast-icon: #b74758;
}

.bscic-success-toast[data-toast-type="primary"] {
  --toast-border: #e7d3ee;
  --toast-background: #f8effb;
  --toast-accent: #b587cd;
  --toast-icon: #8853a8;
}

.bscic-success-toast[data-toast-type="secondary"] {
  --toast-border: #dce1e8;
  --toast-background: #f2f4f7;
  --toast-accent: #99a6b7;
  --toast-icon: #66748b;
}

.bscic-success-toast[data-toast-type="light"] {
  --toast-border: #e4e9ef;
  --toast-background: #f8fafc;
  --toast-accent: #b1becb;
  --toast-icon: #768698;
}

.bscic-success-toast[data-toast-type="dark"] {
  --toast-border: #cbd4df;
  --toast-background: #e9edf3;
  --toast-accent: #8494aa;
  --toast-icon: #425775;
}

.bscic-success-toast__icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 2px solid var(--toast-accent);
  border-radius: 50%;
  color: var(--toast-icon);
  font-size: 1.2rem;
}

.bscic-success-toast__content {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.bscic-success-toast__content .text-white {
  color: inherit !important;
}

.bscic-success-toast__content h1,
.bscic-success-toast__content h2,
.bscic-success-toast__content h3,
.bscic-success-toast__content h4,
.bscic-success-toast__content h5,
.bscic-success-toast__content h6 {
  font-size: inherit;
}

.bscic-success-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #536983;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.bscic-success-toast__close:hover,
.bscic-success-toast__close:focus-visible {
  background: var(--toast-border);
}

.bscic-success-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left;
  animation: bscic-success-toast-countdown 3s linear forwards;
}

[data-bscic-success-converted] {
  display: none !important;
}

@keyframes bscic-success-toast-countdown {
  to { transform: scaleX(0); }
}
