/**
 * ARY Chase - Toast Notifications
 * Fixed notification shown at the top/header area for cart actions.
 * Rendered by mini-cart.js (window.aryMiniCartKit.notify).
 */

.ary-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(580px, calc(100vw - 24px));
  background: #ffffff;
  color: #1c1d1f;
  border: 1px solid #e5e8ea;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(15, 30, 65, 0.18), 0 2px 6px rgba(15, 30, 65, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ary-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.ary-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, -14px);
}

.ary-toast__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ary-toast--success .ary-toast__icon {
  background: #1e7e45;
}

.ary-toast--error .ary-toast__icon {
  background: #c62828;
}

.ary-toast__msg {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.ary-toast__action {
  flex: 0 0 auto;
  color: #15408a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ary-toast__action:hover,
.ary-toast__action:focus {
  background: #eef2fa;
  outline: none;
}

.ary-toast__close {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: none;
  color: #8a8f98;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.ary-toast__close:hover {
  color: #15408a;
  background: #f2f4f7;
}

@media (max-width: 576px) {
  .ary-toast {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
    transform: translateY(-14px);
    flex-wrap: wrap;
    padding: 12px;
  }

  .ary-toast.is-visible {
    transform: translateY(0);
  }

  .ary-toast.is-leaving {
    transform: translateY(-14px);
  }

  .ary-toast__action {
    margin-left: 32px;
  }
}