/* =========================================================
   BOXBUDDY — ÉTAT VIDE AUCUN RÉSULTAT
========================================================= */

.bb-no-results-empty {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: flex-start !important;
  gap: 20px !important;

  max-width: 980px !important;
  margin: 32px auto 70px !important;
  padding: 28px !important;

  background: #ffffff !important;
  border: 1px solid rgba(95, 77, 246, 0.16) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 44px rgba(20, 24, 60, 0.07) !important;
}

.bb-no-results-empty__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;

  border-radius: 18px !important;
  background: rgba(255, 184, 77, 0.16) !important;
  color: #f4a51c !important;

  font-size: 22px !important;
}

.bb-no-results-empty__content {
  min-width: 0 !important;
}

.bb-no-results-empty h2 {
  margin: 0 0 8px !important;

  color: #111747 !important;
  font-size: 28px !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.045em !important;
}

.bb-no-results-empty p {
  margin: 0 !important;
  max-width: 720px !important;

  color: #687199 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

/* Badges : catégorie + trajet */
.bb-no-results-alert__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;

  margin-top: 14px !important;
}

.bb-no-results-alert__meta span {
  display: inline-flex !important;
  align-items: center !important;

  padding: 7px 12px !important;

  border-radius: 999px !important;
  background: rgba(95, 77, 246, 0.08) !important;

  color: #5f4df6 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.bb-no-results-empty__active-meta[hidden] {
  display: none !important;
}

.bb-no-results-empty__active-meta .bb-no-results-alert__meta {
  margin-top: 14px !important;
}

/* Actions principales */
.bb-no-results-empty__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;

  margin-top: 22px !important;
}

.bb-no-results-empty__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 48px !important;
  padding: 0 22px !important;

  border-radius: 14px !important;
  text-decoration: none !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.bb-no-results-empty__button:hover {
  transform: translateY(-1px) !important;
}

.bb-no-results-empty__button--primary {
  border: 0 !important;
  background: linear-gradient(135deg, #6f5bff 0%, #5a4ff0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(95, 77, 246, 0.24) !important;
}

.bb-no-results-empty__button--primary:hover {
  box-shadow: 0 16px 32px rgba(95, 77, 246, 0.3) !important;
}

.bb-no-results-empty__button--secondary {
  border: 1px solid rgba(95, 77, 246, 0.2) !important;
  background: #ffffff !important;
  color: #5f4df6 !important;
  box-shadow: none !important;
}

.bb-no-results-empty__button--secondary:hover {
  background: rgba(95, 77, 246, 0.05) !important;
}

/* État alerte active */
.bb-no-results-empty.is-alert-active {
  border-color: rgba(37, 190, 120, 0.22) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(37, 190, 120, 0.035) 100%) !important;
}

.bb-no-results-empty.is-alert-active .bb-no-results-empty__icon {
  background: rgba(37, 190, 120, 0.1) !important;
  color: #20a66b !important;
}

.bb-no-results-empty.is-alert-active .bb-no-results-empty__open-modal {
  background: #ffffff !important;
  color: #5f4df6 !important;
  border: 1px solid rgba(95, 77, 246, 0.22) !important;
  box-shadow: none !important;
}

/* =========================================================
   BOXBUDDY — MODALE CRÉATION D’ALERTE
========================================================= */

.bb-alert-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 22px !important;
}

.bb-alert-modal.is-open {
  display: flex !important;
}

.bb-alert-modal__overlay {
  position: absolute !important;
  inset: 0 !important;

  background: rgba(17, 20, 45, 0.58) !important;
  backdrop-filter: blur(4px) !important;
}

.bb-alert-modal__dialog {
  position: relative !important;
  z-index: 1 !important;

  width: min(520px, 100%) !important;
  padding: 30px !important;

  border-radius: 26px !important;
  background: #ffffff !important;
  border: 1px solid rgba(95, 77, 246, 0.14) !important;
  box-shadow: 0 30px 80px rgba(17, 20, 45, 0.24) !important;
}

.bb-alert-modal__close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;

  width: 34px !important;
  height: 34px !important;

  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(95, 77, 246, 0.08) !important;

  color: #100b3f !important;
  font-size: 24px !important;
  line-height: 1 !important;

  cursor: pointer !important;
}

.bb-alert-modal__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 48px !important;
  height: 48px !important;

  margin-bottom: 14px !important;

  border-radius: 16px !important;
  background: rgba(255, 184, 77, 0.16) !important;
  color: #f4a51c !important;

  font-size: 21px !important;
}

.bb-alert-modal h3 {
  margin: 0 0 8px !important;

  color: #100b3f !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  letter-spacing: -0.045em !important;
}

.bb-alert-modal__intro {
  margin: 0 0 18px !important;

  color: #687199 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.bb-alert-modal__label {
  margin: 0 0 10px !important;

  color: #687199 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

/* Choix du type d’annonce */
.bb-alert-modal__choices {
  display: grid !important;
  gap: 12px !important;

  margin: 18px 0 20px !important;
}

.bb-alert-modal__choices[hidden] {
  display: none !important;
}

.bb-alert-modal__choice {
  width: 100% !important;
  padding: 16px !important;

  text-align: left !important;

  border-radius: 16px !important;
  border: 1px solid rgba(95, 77, 246, 0.18) !important;
  background: #ffffff !important;

  color: #100b3f !important;
  cursor: pointer !important;
}

.bb-alert-modal__choice strong {
  display: block !important;
  margin-bottom: 4px !important;

  color: #100b3f !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.bb-alert-modal__choice span {
  display: block !important;

  color: #687199 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.bb-alert-modal__choice.is-selected {
  border-color: rgba(95, 77, 246, 0.55) !important;
  background: rgba(95, 77, 246, 0.06) !important;
}

/* Récapitulatif dans la popup */
.bb-alert-modal__recap {
  margin: 0 0 18px !important;
}

.bb-alert-modal__recap-line {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;

  margin-bottom: 8px !important;

  color: #687199 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.bb-alert-modal__recap-line strong {
  color: #100b3f !important;
  font-weight: 850 !important;
}

.bb-alert-modal__recap-line span {
  color: #1a1f4f !important;
  font-weight: 600 !important;
}

.bb-alert-modal__recap-line--empty span {
  color: #687199 !important;
  font-weight: 600 !important;
}

/* Bouton validation popup */
.bb-alert-modal__submit {
  width: 100% !important;
  min-height: 48px !important;

  margin-top: 4px !important;

  border: 0 !important;
  border-radius: 14px !important;

  background: linear-gradient(135deg, #6f5bff 0%, #5a4ff0 100%) !important;
  color: #ffffff !important;

  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1 !important;

  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(95, 77, 246, 0.24) !important;
}

.bb-alert-modal__submit:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.bb-alert-modal-open {
  overflow: hidden !important;
}

/* =========================================================
   MOBILE — MODALE
========================================================= */

@media (max-width: 767px) {
  .bb-alert-modal {
    align-items: flex-end !important;
    padding: 12px !important;
  }

  .bb-alert-modal__dialog {
    width: 100% !important;
    padding: 24px !important;
    border-radius: 24px !important;
  }

  .bb-alert-modal h3 {
    font-size: 24px !important;
  }

  .bb-alert-modal__intro {
    font-size: 14px !important;
  }

  .bb-alert-modal__choice {
    padding: 14px !important;
  }

  .bb-alert-modal__choice strong {
    font-size: 15px !important;
  }

  .bb-alert-modal__choice span {
    font-size: 13px !important;
  }

  .bb-alert-modal__recap {
    margin-bottom: 16px !important;
  }

  .bb-alert-modal__recap-line {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }

  .bb-alert-modal__submit {
    min-height: 46px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   MOBILE — ÉTAT VIDE COMPACT
========================================================= */

@media only screen and (max-width: 767px) {
  .bb-no-results-empty {
    display: block !important;

    max-width: none !important;
    margin: 10px 16px 42px !important;
    padding: 18px !important;

    border-radius: 22px !important;
  }

  .bb-no-results-empty__icon {
    width: 42px !important;
    height: 42px !important;

    margin-bottom: 12px !important;

    border-radius: 14px !important;
    font-size: 19px !important;
  }

  .bb-no-results-empty h2 {
    font-size: 19px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 8px !important;
  }

  .bb-no-results-empty p {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }

  .bb-no-results-alert__meta {
    gap: 6px !important;
    margin-top: 12px !important;
  }

  .bb-no-results-alert__meta span {
    font-size: 11.5px !important;
    line-height: 1.1 !important;
    padding: 6px 9px !important;
  }

  .bb-no-results-empty__actions {
    flex-direction: column !important;
    gap: 9px !important;

    margin-top: 16px !important;
  }

  .bb-no-results-empty__button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 14px !important;

    font-size: 13.5px !important;
    border-radius: 12px !important;
  }
}