/* ==================================
   Shared Toast Notifications
================================== */

.bbo-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;

  display: flex;
  align-items: center;
  gap: 14px;

  width: max-content;
  max-width: 380px;

  padding: 16px 18px;

  background: #ffffff;
  border: 1px solid #c9dac3;
  border-left: 5px solid #3d622c;
  border-radius: 12px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);

  animation: bbo-toast-enter 0.25s ease;
}

.bbo-toast[hidden] {
  display: none;
}

.bbo-toast-icon {
  color: #3d622c;
  font-size: 26px;
  flex-shrink: 0;
}

.bbo-toast-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bbo-toast-title {
  font-size: 15px;
  font-weight: 700;
  color: #3d622c;
  margin-bottom: 3px;
}

.bbo-toast-message {
  font-size: 13px;
  color: #4b5563;
}

.bbo-toast-close {
  background: transparent;
  border: none;
  color: #4b5563;

  min-width: 32px;
  min-height: 32px;

  font-size: 18px;
  cursor: pointer;
}

.bbo-toast-close:hover {
  color: #b42318;
}

.bbo-toast-close:focus-visible {
  outline: 2px solid #3d622c;
  border-radius: 5px;
}

/* Error notifications */

.bbo-toast.error {
  border-left-color: #b42318;
}

.bbo-toast.error .bbo-toast-icon,
.bbo-toast.error .bbo-toast-title {
  color: #b42318;
}

/* Animation */

@keyframes bbo-toast-enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */

@media (max-width: 576px) {
  .bbo-toast {
    left: 15px;
    bottom: 15px;
    max-width: calc(100% - 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbo-toast {
    animation: none;
  }
}
