:root {
  --y-notification-title-size: var(--y-font-size-lg);
  --y-notification-content-size: var(--y-font-size);
  --y-notification-success-color: var(--y-primary-color);
  --y-notification-info-color: var(--y-info-color);
  --y-notification-warning-color: var(--y-warning-color);
  --y-notification-error-color: var(--y-error-color);
  --y-notification-shadow: var(--y-shadow);
}

.y-notification {
  position: fixed;
  width: 320px;
  box-shadow: var(--y-notification-shadow);
  border-radius: 6px;
  background-color: white;
  display: flex;
  transition: all 0.3s;
}
.y-notification.y-notification-top-right {
  top: 16px;
  right: 16px;
}
.y-notification.y-notification-bottom-right {
  bottom: 16px;
  right: 16px;
}
.y-notification.y-notification-top-left {
  top: 16px;
  left: 16px;
}
.y-notification.y-notification-bottom-left {
  bottom: 16px;
  left: 16px;
}
.y-notification-type-icon {
  font-size: 22px;
  padding-left: 16px;
  padding-top: 14px;
}
.y-notification-icon-close {
  position: absolute;
  top: 16px;
  right: 12px;
  cursor: pointer;
}
.y-notification-main {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}
.y-notification-main-title {
  font-weight: 600;
  font-size: var(--y-notification-title-size);
  line-height: 20px;
  margin-top: 0;
  padding-right: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.y-notification-main-content {
  font-size: var(--y-notification-content-size);
  color: #4b5563;
}
.y-notification-success {
  color: var(--y-notification-success-color);
}
.y-notification-info {
  color: var(--y-notification-info-color);
}
.y-notification-warning {
  color: var(--y-notification-warning-color);
}
.y-notification-error {
  color: var(--y-notification-error-color);
}

.notification-fade-right-enter-active,
.notification-fade-right-leave-active,
.notification-fade-left-enter-active,
.notification-fade-left-leave-active {
  transition: all 0.3s;
}

.notification-fade-right-enter-from {
  transform: translateX(100%);
}

.notification-fade-left-enter-from {
  transform: translateX(-100%);
}

.notification-fade-right-leave-to,
.notification-fade-left-leave-to {
  opacity: 0;
}