/* ===== PWA install banner (mobile) — maquette Accès rapide ===== */
.ccom-pwa-banner {
  position: fixed;
  left: 0;
  right: 0;
  /* Flush on latency band top, or page bottom stack (--ccom-pwa-stack-bottom from JS). */
  bottom: var(--ccom-pwa-stack-bottom, var(--ccom-panier-sticky-height, 0px));
  z-index: 10050;
  background: #e8f5f2;
  color: #002e33;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 46, 51, 0.14);
  box-shadow: none;
  padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  display: none;
  font-family: Inter, sans-serif;
}

.ccom-pwa-banner.is-visible {
  display: block;
}

.ccom-pwa-banner__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ccom-pwa-banner__icon-wrap {
  flex: 0 0 auto;
  align-self: center;
  line-height: 0;
}

.ccom-pwa-banner__icon {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.ccom-pwa-banner__content {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
}

.ccom-pwa-banner__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  color: #002e33;
  letter-spacing: -0.01em;
}

.ccom-pwa-banner__message {
  margin: 4px 0 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: #5f6f71;
}

.ccom-pwa-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  margin-left: auto;
}

/* Explicit charter exception — rounded-rect CTA + icon dismiss match PWA banner maquette. */
.ccom-pwa-banner__install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-lg, 12px);
  background: #002e33;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.ccom-pwa-banner__install:hover {
  background: #003d43;
}

.ccom-pwa-banner__install:focus-visible {
  outline: 2px solid #002e33;
  outline-offset: 2px;
}

.ccom-pwa-banner__install:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ccom-pwa-banner__install-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #f0ff33;
}

.ccom-pwa-banner__install-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ccom-pwa-banner__close {
  position: absolute;
  top: -2px;
  right: -4px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #002e33;
  cursor: pointer;
}

.ccom-pwa-banner__close:hover {
  color: #003d43;
}

.ccom-pwa-banner__close:focus-visible {
  outline: 2px solid #002e33;
  outline-offset: 2px;
  border-radius: 4px;
}

.ccom-pwa-banner__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ccom-pwa-banner__close-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.ccom-pwa-banner__open {
  display: none;
}

/* Desktop shell — close clear of Install CTA (mobile keeps .ccom-pwa-banner__close defaults above). */
.ccom-pwa-banner.ccom-pwa-banner--desktop .ccom-pwa-banner__close {
  top: -6px;
  right: -7px;
}
