.alert {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  line-height: 1.56;
  text-align: left;
  margin: 1rem 0;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.error {
  border: 2px dotted red !important;
  background: #feecec !important;
}
.alert-error {
    background-color: #ffffff;
    border-color: #cc0000;
    color: #333333;
}


.alert-warning {
  background-color: #fff4e5;
  border-left: 4px solid #ff9900;
  color: #663100;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-size: 0.95rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.alert-warning::before {
  content: '⚠️';
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 1.2rem;
}

.alert-warning strong {
  display: block;
  margin-bottom: 0.3rem;
  margin-left: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

.alert-error {
  background-color: #ffe6e6;
  border-left: 4px solid #ff4d4f !important;
  color: #cc0000;
}

.alert-error::before {
  content: '⚠️';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  margin-right: 10px;
}

.alert-success {
  background-color: #e6f4d7;
  border-left: 4px solid #75b41d !important;
  color: #395c09;
}

.success-confetti::before {
  content: '🎉';
  position: absolute;
  left: 8px;
  font-size: 3rem;
  top: 50%;
  transform: translateY(-50%); /* Technique pour centrer verticalement parfaitement */
  margin-right: 10px;
}


.alert .alert-close {
  position: absolute;
  right: 16px;
  font-weight: 800;
  cursor: pointer;
  align-self: flex-start;
  line-height: 1;
}

.alert-info {
    background-color: #e5f6fd;
    border-left: 4px solid #0b89c1;
    color: #0b4f6c;
  }

  .alert-info::before {
    content: 'ℹ️';
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 1.2rem;
  }

  .alert-info strong {
    display: block;
    margin-bottom: 0.3rem;
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
  }

/* Spinner */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.spinner {
  border: 6px solid #ccc;
  border-top: 6px solid #003057;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hide-spinner {
  display: none;
}

 .kc-feedback-text {
    text-align: left;
    margin: 0 24px;
    display: block;
    width: 100%;
}

.feature-msg-container {
    margin-top: -24px;
}