.aksel-notification-region {
  position: fixed;
  top: 82px;
  right: 24px;
  z-index: 120000;
  display: flex;
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100vh - 106px);
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.aksel-notification {
  --aksel-notification-accent: #2767d9;
  --aksel-notification-soft: #eef4ff;
  --aksel-notification-icon-border: #d8e5fb;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: start;
  width: 100%;
  overflow: hidden;
  padding: 15px 14px 16px 15px;
  color: #172b4d;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dfe6ef;
  border-left: 4px solid var(--aksel-notification-accent);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(31, 46, 70, .16), 0 3px 10px rgba(31, 46, 70, .08);
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(18px, 0, 0) scale(.98);
  transition: opacity .22s ease, transform .22s ease, box-shadow .2s ease;
}

.aksel-notification::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 104px;
  height: 104px;
  background: radial-gradient(circle at top right, var(--aksel-notification-soft), transparent 70%);
  content: '';
  pointer-events: none;
}

.aksel-notification.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.aksel-notification.is-leaving {
  opacity: 0;
  transform: translate3d(20px, 0, 0) scale(.98);
}

.aksel-notification:hover {
  box-shadow: 0 20px 48px rgba(31, 46, 70, .19), 0 4px 12px rgba(31, 46, 70, .1);
}

.aksel-notification--basarili {
  --aksel-notification-accent: #0b946f;
  --aksel-notification-soft: #e8f8f2;
  --aksel-notification-icon-border: #ccecdf;
}

.aksel-notification--hatali {
  --aksel-notification-accent: #d63f59;
  --aksel-notification-soft: #fff0f3;
  --aksel-notification-icon-border: #f6d5dc;
}

.aksel-notification--uyari {
  --aksel-notification-accent: #bd7600;
  --aksel-notification-soft: #fff5dc;
  --aksel-notification-icon-border: #f1deb0;
}

.aksel-notification--bilgi {
  --aksel-notification-accent: #2767d9;
  --aksel-notification-soft: #eef4ff;
  --aksel-notification-icon-border: #d8e5fb;
}

.aksel-notification__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--aksel-notification-accent);
  background: var(--aksel-notification-soft);
  border: 1px solid var(--aksel-notification-icon-border);
  border-radius: 12px;
  font-size: 21px;
}

.aksel-notification__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-top: 1px;
}

.aksel-notification__title {
  display: block;
  margin: 0 0 3px;
  color: #172b4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
}

.aksel-notification__message {
  overflow-wrap: anywhere;
  color: #52647b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.48;
  white-space: pre-line;
}

.aksel-notification__close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin: -3px -3px 0 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #738197;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 17px;
  line-height: 1;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.aksel-notification__close:hover,
.aksel-notification__close:focus {
  color: #172b4d;
  background: #f5f7fa;
  border-color: #e3e8ef;
  outline: none;
}

.aksel-notification__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(39, 103, 217, .16);
}

.aksel-notification__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--aksel-notification-accent);
  opacity: .74;
  transform-origin: left center;
  animation: aksel-notification-progress var(--aksel-notification-duration) linear forwards;
}

.aksel-notification.is-paused .aksel-notification__progress {
  animation-play-state: paused;
}

@keyframes aksel-notification-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
  .aksel-notification-region {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
    gap: 9px;
  }

  .aksel-notification {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 13px 11px 14px 12px;
    border-radius: 12px;
    transform: translate3d(0, 18px, 0) scale(.98);
  }

  .aksel-notification.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .aksel-notification.is-leaving {
    transform: translate3d(0, 18px, 0) scale(.98);
  }

  .aksel-notification__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 19px;
  }

  .aksel-notification__title {
    font-size: 12.5px;
  }

  .aksel-notification__message {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aksel-notification {
    transition: opacity .01ms linear;
    transform: none;
  }

  .aksel-notification__progress {
    animation: none;
  }
}
