.notification-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 320px;
  margin: 16px;
}

.notification-container[data-position^='top-'] {
  top: 0;
}

.notification-container[data-position^='bottom-'] {
  bottom: 0;
}

.notification-container[data-position$='-right'] {
  right: 0;
}

.notification-container[data-position$='-left'] {
  left: 0;
}

.notification-container[data-position$='-center'] {
  left: 50%;
  transform: translateX(-50%);
}

.notification {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  color: #757575;
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  font-family: sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: transform 350ms cubic-bezier(0.68, -0.55, 0.265, 1.55), max-height 350ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  word-break: break-word; /* Ensure long texts break properly */
}

.notification-icon {
  margin-right: 8px;
  font-size: 20px;
}

.notification-text {
  flex: 1;
}

.notification.show {
  transform: translate(0, 0);
}

.notification.can-close .close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.notification .progress-bar {
  position: absolute;
  bottom: 0;
  left: auto;
  right: 0;
  background-color: var(--color);
  width: 100%;
  height: 3px;
  content: '';
  box-shadow: 0 0 10px var(--color);
  animation: timeOut 20000ms linear 1 forwards;
  animation-play-state: running;
  transition: width 0.5s linear;
}

@keyframes timeOut {
  to {
    width: 0;
  }
}
