.ksc-public-toast-container {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 1105;
  display: flex;
  width: min(390px, calc(100vw - 30px));
  flex-direction: column;
  gap: .7rem;
  pointer-events: none;
}

.ksc-public-toast {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e4ebe7;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 52, 35, .14);
  color: #17382a;
  pointer-events: auto;
}

.ksc-public-toast-body {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1rem .9rem;
}

.ksc-public-toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .98rem;
  font-weight: 800;
}

.ksc-public-toast-copy {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: .05rem;
}

.ksc-public-toast-title {
  display: block;
  margin-bottom: .12rem;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.ksc-public-toast-message {
  color: #607067;
  font-size: .76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ksc-public-toast-close {
  flex: 0 0 auto;
  margin-top: .1rem;
  font-size: .7rem;
  opacity: .55;
}

.ksc-public-toast-close:hover,
.ksc-public-toast-close:focus { opacity: .9; }

.ksc-public-toast--success { border-left: 4px solid #08783d; }
.ksc-public-toast--success .ksc-public-toast-icon { background: #e8f6ee; color: #08783d; }
.ksc-public-toast--success .ksc-public-toast-title { color: #006132; }

.ksc-public-toast--error { border-left: 4px solid #c53030; }
.ksc-public-toast--error .ksc-public-toast-icon { background: #fdecec; color: #b42318; }
.ksc-public-toast--error .ksc-public-toast-title { color: #a61b15; }

.ksc-public-toast--warning { border-left: 4px solid #c08329; }
.ksc-public-toast--warning .ksc-public-toast-icon { background: #fff5df; color: #a96a13; }
.ksc-public-toast--warning .ksc-public-toast-title { color: #87520c; }

.ksc-public-toast--info { border-left: 4px solid #2d6da3; }
.ksc-public-toast--info .ksc-public-toast-icon { background: #eaf3fb; color: #2d6da3; }
.ksc-public-toast--info .ksc-public-toast-title { color: #245a88; }

.ksc-public-toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: currentColor;
  opacity: .72;
}

.ksc-public-toast--success .ksc-public-toast-timer { color: #08783d; }
.ksc-public-toast--error .ksc-public-toast-timer { color: #c53030; }
.ksc-public-toast--warning .ksc-public-toast-timer { color: #c08329; }
.ksc-public-toast--info .ksc-public-toast-timer { color: #2d6da3; }

.ksc-public-toast.is-running .ksc-public-toast-timer {
  animation: kscPublicToastCountdown 4.5s linear forwards;
}

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

@media (max-width: 575.98px) {
  .ksc-public-toast-container {
    top: 76px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}
