/* =========================================================
   Velox Flash (Success/Error) - compacto y mobile friendly
   ========================================================= */

.vx-flash{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2050;

  display: flex;
  align-items: center;
  gap: .55rem;

  width: auto;
  max-width: 560px;

  padding: .6rem .75rem;
  border-radius: 14px;

  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);

  font-weight: 600;
  font-size: .92rem;
  line-height: 1.15rem;

  backdrop-filter: blur(10px);
}

.vx-flash__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.vx-flash__text{
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vx-flash__close{
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  opacity: .7;
}
.vx-flash__close:hover{ opacity: 1; }

/* Variantes */
.vx-flash--success{
  background: rgba(236, 253, 243, .92);
  color: #166534;
}

.vx-flash--error{
  background: rgba(254, 242, 242, .92);
  color: #991b1b;
}

/* Móvil: aún más sutil */
@media (max-width: 575.98px){
  .vx-flash{
    top: 10px;
    max-width: calc(100vw - 16px);
    padding: .5rem .65rem;
    border-radius: 12px;
    font-size: .85rem;
  }
  .vx-flash__icon{ font-size: 1rem; }
  .vx-flash__close{
    width: 26px;
    height: 26px;
    opacity: .65;
  }
}
