#noty_layout__top,
#noty_layout__topLeft,
#noty_layout__topCenter,
#noty_layout__topRight,
#noty_layout__bottom,
#noty_layout__bottomLeft,
#noty_layout__bottomCenter,
#noty_layout__bottomRight,
#noty_layout__center,
#noty_layout__centerLeft,
#noty_layout__centerRight {
  position: fixed;
  margin: 0;
  padding: 0;
  z-index: 9999;
  box-sizing: border-box;
  overflow: visible;
  max-width: 90%;
  -webkit-font-smoothing: subpixel-antialiased;
}

#noty_layout__top {
  top: 0;
  left: 5%;
  width: 90%;
}

#noty_layout__topLeft {
  top: 20px;
  left: 20px;
  width: 425px;
}

#noty_layout__topCenter {
  top: 5%;
  left: 50%;
  width: 425px;
  transform: translate(calc(-50% - 0.5px));
}

#noty_layout__topRight {
  top: 60px;
  right: 10px;
  width: 425px;
}

@media screen and (max-width: 990px) {
  #noty_layout__topRight {
    top: 35px;
    right: 10px;
    width: auto;
    max-width: 90%;
  }
}

@media screen and (max-width: 576px) {
  #noty_layout__topLeft,
  #noty_layout__topCenter,
  #noty_layout__topRight,
  #noty_layout__bottomLeft,
  #noty_layout__bottomCenter,
  #noty_layout__bottomRight,
  #noty_layout__center,
  #noty_layout__centerLeft,
  #noty_layout__centerRight {
    width: 100%;
    max-width: 95%;
    left: 2.5%;
    right: 2.5%;
  }
}

#noty_layout__bottom {
  bottom: 0;
  left: 5%;
  width: 90%;
}

#noty_layout__bottomLeft {
  bottom: 20px;
  left: 10px;
  width: 425px;
}

#noty_layout__bottomCenter {
  bottom: 5%;
  left: 50%;
  width: 425px;
  transform: translate(calc(-50% - 0.5px));
}

#noty_layout__bottomRight {
  bottom: 20px;
  right: 10px;
  width: 425px;
}

#noty_layout__center {
  top: 50%;
  left: 50%;
  width: 425px;
  transform: translate(calc(-50% - 0.5px), calc(-50% - 0.5px));
}

#noty_layout__centerLeft {
  top: 50%;
  left: 10px;
  width: 425px;
  transform: translate(0, calc(-50% - 0.5px));
}

#noty_layout__centerRight {
  top: 50%;
  right: 10px;
  width: 425px;
  transform: translate(0, calc(-50% - 0.5px));
}

#noty_layout__topRight:empty,
#noty_layout__topLeft:empty,
#noty_layout__topCenter:empty,
#noty_layout__bottomRight:empty,
#noty_layout__bottomLeft:empty,
#noty_layout__bottomCenter:empty,
#noty_layout__center:empty,
#noty_layout__centerLeft:empty,
#noty_layout__centerRight:empty {
  height: 0;
}

.noty-content {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.noty-link {
  min-width: 0;
  color: #26313f;
  font-size: 13px;
  line-height: 1.35;
}

.noty-link a {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.noty-link a:hover {
  text-decoration: underline;
}

.noty_bar {
  position: relative;
  background-color: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(215, 221, 229, 0.85);
  transition: all 0.4s ease, transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  padding: 14px 44px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 32, 46, 0.14);
  margin: 10px 0;
  justify-content: flex-start;
}

.noty_bar:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(150, 150, 150, 0.15);
  transform: translateY(-1px);
}

.noty_bar.noty_type__success {
  background: #fefffefa;
}

.noty_bar.noty_type__error {
  border-color: rgba(200, 0, 0, 0.4);
  background: rgba(255, 245, 245, 0.85);
  border-left: 4px solid #ff4d4d;
}

.noty_bar.noty_type__warning {
  border-color: rgb(255 184 184 / 40%);
  background: #fffcfcfa;
}

.noty_bar.noty_has_timeout.noty_has_progressbar .noty_progressbar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #8dd88c, #2db808, #b2ff9e);
  transition: width 0.4s ease-out;
}

.noty_bar.noty_type__error.noty_has_timeout.noty_has_progressbar .noty_progressbar,
.noty_bar.noty_type__warning.noty_has_timeout.noty_has_progressbar .noty_progressbar {
  background: linear-gradient(90deg, #ff4d4d, #cc0000, #ff6666);
}

.noty_bar .noty_close_button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8d98a7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.noty_bar .noty_close_button:hover {
  color: #26313f;
  background: #eef2f6;
  transform: scale(1.1);
}

#noty_layout__topRight .noty_bar.noty_effects_open,
#noty_layout__bottomRight .noty_bar.noty_effects_open,
#noty_layout__centerRight .noty_bar.noty_effects_open {
  animation: bounceInRight 0.4s ease-out forwards;
}

#noty_layout__topRight .noty_bar.noty_effects_close,
#noty_layout__bottomRight .noty_bar.noty_effects_close,
#noty_layout__centerRight .noty_bar.noty_effects_close {
  animation: bounceOutRight 0.4s ease-out forwards;
}

#noty_layout__topLeft .noty_bar.noty_effects_open,
#noty_layout__bottomLeft .noty_bar.noty_effects_open,
#noty_layout__centerLeft .noty_bar.noty_effects_open {
  animation: bounceInLeft 0.4s ease-out forwards;
}

#noty_layout__topLeft .noty_bar.noty_effects_close,
#noty_layout__bottomLeft .noty_bar.noty_effects_close,
#noty_layout__centerLeft .noty_bar.noty_effects_close {
  animation: bounceOutLeft 0.4s ease-out forwards;
}

#noty_layout__topCenter .noty_bar.noty_effects_open,
#noty_layout__top .noty_bar.noty_effects_open {
  animation: bounceInTop 0.4s ease-out forwards;
}

#noty_layout__topCenter .noty_bar.noty_effects_close,
#noty_layout__top .noty_bar.noty_effects_close {
  animation: bounceOutTop 0.4s ease-out forwards;
}

#noty_layout__bottomCenter .noty_bar.noty_effects_open,
#noty_layout__bottom .noty_bar.noty_effects_open {
  animation: bounceInBottom 0.4s ease-out forwards;
}

#noty_layout__bottomCenter .noty_bar.noty_effects_close,
#noty_layout__bottom .noty_bar.noty_effects_close {
  animation: bounceOutBottom 0.4s ease-out forwards;
}

#noty_layout__center .noty_bar.noty_effects_open {
  animation: bounceInCenter 0.4s ease-out forwards;
}

#noty_layout__center .noty_bar.noty_effects_close {
  animation: bounceOutCenter 0.4s ease-out forwards;
}

@keyframes bounceInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
    scale: 0.8;
  }
  50% {
    transform: translateX(-20px);
    opacity: 1;
    scale: 1.15;
  }
  75% {
    transform: translateX(10px);
    scale: 0.95;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes bounceOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
  20% {
    transform: translateX(-15px);
    scale: 1.15;
  }
  40% {
    transform: translateX(10px);
    scale: 0.95;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes bounceInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
    scale: 0.8;
  }
  50% {
    transform: translateX(20px);
    opacity: 1;
    scale: 1.15;
  }
  75% {
    transform: translateX(-10px);
    scale: 0.95;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes bounceOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
  20% {
    transform: translateX(15px);
    scale: 1.15;
  }
  40% {
    transform: translateX(-10px);
    scale: 0.95;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes bounceInTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
    scale: 0.8;
  }
  50% {
    transform: translateY(20px);
    opacity: 1;
    scale: 1.15;
  }
  75% {
    transform: translateY(-10px);
    scale: 0.95;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes bounceOutTop {
  0% {
    transform: translateY(0);
    opacity: 1;
    scale: 1;
  }
  20% {
    transform: translateY(15px);
    scale: 1.15;
  }
  40% {
    transform: translateY(-10px);
    scale: 0.95;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes bounceInBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
    scale: 0.8;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
    scale: 1.15;
  }
  75% {
    transform: translateY(10px);
    scale: 0.95;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes bounceOutBottom {
  0% {
    transform: translateY(0);
    opacity: 1;
    scale: 1;
  }
  20% {
    transform: translateY(-15px);
    scale: 1.15;
  }
  40% {
    transform: translateY(10px);
    scale: 0.95;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes bounceInCenter {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
  75% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceOutCenter {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  20% {
    opacity: 1;
    transform: scale(1.2);
  }
  40% {
    opacity: 1;
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.noty-img-container {
  position: relative;
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.noty-img-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  animation: liftFromBottom 0.4s ease-out forwards;
}

@keyframes liftFromBottom {
  0% {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.noty_bar.noty_effects_close .noty-img-thumbnail {
  animation: imageShrink 0.3s ease-out forwards;
}

@keyframes imageShrink {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

.noty_body {
  width: 100%;
  margin-right: 0;
  line-height: 1.4;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Dark theme */
.dark .noty_bar {
  background: rgba(50, 50, 50, 0.95);
  border-color: rgba(200, 200, 200, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(200, 200, 200, 0.15);
}

.dark .noty_bar.noty_type__success {
  background: rgb(0 0 0 / 87%);
}

.dark .noty_bar.noty_type__error,
.dark .noty_bar.noty_type__warning {
  background: rgba(80, 0, 0, 0.95);
  border-color: rgba(200, 0, 0, 0.3);
}

.dark .noty_bar .noty_close_button {
  color: rgba(255, 255, 255, 0.6);
}

.dark .noty_bar .noty_close_button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dark .noty-link {
  color: #E0E0E0;
}

.dark .noty_body {
  color: #E0E0E0;
}
