/**
 * Bannière haute — message clavardage reçu pendant que l’app est ouverte / en arrière-plan chargée.
 */
.push-heads-up-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 199000;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.97) 0%, rgba(40, 40, 40, 0.95) 100%);
  color: #f9fafb;
  border-bottom: 2px solid #c4b155;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.push-heads-up-banner.push-heads-up-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.push-heads-up-banner[hidden] {
  display: none !important;
}

.push-heads-up-banner__open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.push-heads-up-banner__open:active {
  background: rgba(255, 255, 255, 0.14);
}

.push-heads-up-banner__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f3e8a8;
}

.push-heads-up-banner__text {
  font-size: 0.86rem;
  line-height: 1.35;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.push-heads-up-banner__close {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.push-heads-up-banner__close:active {
  background: rgba(255, 255, 255, 0.18);
}
