/* Avisos compactos y legibles. El color de marca sigue siendo azul. */
#toastContainer > .bf-notice {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, 100%);
  min-width: 0;
  padding: 12px;
  color: #15233d;
  background: #fff;
  border: 1px solid #cbdaf5;
  border-inline-start: 4px solid #245ce5;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(18, 42, 82, .17);
  pointer-events: auto;
  animation: bf-notice-enter 180ms cubic-bezier(0, 0, .2, 1) both;
}
#toastContainer > .bf-notice--success { border-inline-start-color: #059669; }
#toastContainer > .bf-notice--error { border-inline-start-color: #dc2626; }
#toastContainer > .bf-notice--leaving {
  animation: bf-notice-exit 180ms cubic-bezier(.4, 0, 1, 1) both;
  pointer-events: none;
}
.bf-notice__icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #245ce5;
  background: #eaf1ff;
  border-radius: 10px;
}
.bf-notice--success .bf-notice__icon { color: #047857; background: #e8f8f1; }
.bf-notice--error .bf-notice__icon { color: #b91c1c; background: #fff0f0; }
.bf-notice__icon svg { width: 18px; height: 18px; }
.bf-notice__body { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
.bf-notice__title { font-size: 13px; line-height: 1.3; font-weight: 800; }
.bf-notice__message {
  overflow-wrap: anywhere;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.45;
}
.bf-notice__close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52627d;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.bf-notice__close:hover { background: #eef3fb; color: #15233d; }
.bf-notice__close:focus-visible { outline: 2px solid #245ce5; outline-offset: 2px; }
@keyframes bf-notice-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bf-notice-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}
@media (max-width: 767px) {
  #toastContainer > .bf-notice { width: 100%; }
  #toastContainer > .bf-notice { animation-name: bf-notice-enter-mobile; }
  #toastContainer > .bf-notice--leaving { animation-name: bf-notice-exit-mobile; }
  @keyframes bf-notice-enter-mobile {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes bf-notice-exit-mobile {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(4px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  #toastContainer > .bf-notice,
  #toastContainer > .bf-notice--leaving { animation: none; }
}
