/* reien-toast.css - reien_matching shared toast notification */
.reien-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(12, 27, 38, 0.9);
  color: #FFFFFF;
  padding: 36px;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  width: 45vw;
  min-height: 120px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.reien-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reien-toast-close {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.reien-toast-close:hover {
  opacity: 0.7;
}

.reien-toast-close:focus {
  outline: none;
}

.reien-toast-close:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

.reien-toast-close-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.reien-toast-close-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transform-origin: center;
}

.reien-toast-close-icon span:nth-child(1) {
  transform: translateY(-50%) rotate(24deg);
}

.reien-toast-close-icon span:nth-child(2) {
  transform: translateY(-50%) rotate(-24deg);
}

.reien-toast-link {
  color: #FFFFFF;
  text-decoration: underline;
  pointer-events: auto;
}

.reien-toast-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .reien-toast {
    width: 72vw;
  }
}
