/* Toast cards – success (green) & error (red) – Uiverse style */

#auth-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  left: auto;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}

#auth-toast-container .auth-toast-card {
  pointer-events: auto;
}

[dir="rtl"] #auth-toast-container {
  right: auto;
  left: 24px;
}

.auth-toast-card {
  width: 330px;
  min-height: 80px;
  max-width: calc(100vw - 48px);
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 15px;
  background-color: #ffffff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-toast-card .toast-wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
}

.auth-toast-card--success .toast-wave {
  fill: #04e4003a;
}

.auth-toast-card--error .toast-wave {
  fill: #fc0c0c3a;
}

.auth-toast-card .toast-icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-left: 8px;
  flex-shrink: 0;
}

.auth-toast-card--success .toast-icon-container {
  background-color: #04e40048;
}

.auth-toast-card--error .toast-icon-container {
  background-color: #fc0c0c48;
}

.auth-toast-card .toast-icon {
  width: 17px;
  height: 17px;
}

.auth-toast-card--success .toast-icon {
  color: #269b24;
}

.auth-toast-card--error .toast-icon {
  color: #d10d0d;
}

.auth-toast-card .toast-message-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
  min-width: 0;
}

.auth-toast-card .toast-message-text,
.auth-toast-card .toast-sub-text {
  margin: 0;
  cursor: default;
}

.auth-toast-card .toast-message-text {
  font-size: 17px;
  font-weight: 700;
}

.auth-toast-card--success .toast-message-text {
  color: #269b24;
}

.auth-toast-card--error .toast-message-text {
  color: #d10d0d;
}

.auth-toast-card .toast-sub-text {
  font-size: 14px;
  color: #555;
  margin-top: 2px;
}

.auth-toast-card .toast-close {
  width: 18px;
  height: 18px;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

.auth-toast-card .toast-close:hover {
  color: #151717;
}
