/* ===== 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;
  /* Reserve top-right space for dismiss; inset right clears macOS scrollbar gutter. */
  padding: 12px calc(44px + (100vw - 100%)) calc(12px + env(safe-area-inset-bottom, 0px)) 10px;
  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;
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0;
  padding: 0;
  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;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.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: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: #5f6f71;
}

.ccom-pwa-banner__message strong {
  font-weight: 600;
  color: #002e33;
}

.ccom-pwa-banner--ios .ccom-pwa-banner__message {
  line-height: 1.45;
}

.ccom-pwa-banner__ios-picto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 1px;
  padding: 1px;
  vertical-align: -5px;
  border-radius: 6px;
  background: rgba(0, 46, 51, 0.08);
  color: #002e33;
  box-sizing: border-box;
}

.ccom-pwa-banner__ios-picto svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ccom-pwa-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  height: 52px;
  margin: 0 0 0 auto;
  padding: 0;
}

/* 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;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  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;
  appearance: none;
  -webkit-appearance: none;
}

.ccom-pwa-banner__install-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.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;
  margin: 0;
  padding: 0;
  color: #f0ff33;
}

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

.ccom-pwa-banner__close {
  position: absolute;
  top: 8px;
  /* (100vw - 100%) = classic scrollbar width; keeps dismiss clear of macOS overlay scrollbar. */
  right: calc(8px + (100vw - 100%));
  z-index: 2;
  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 — extra right inset when scrollbar gutter is zero (overlay scrollbars). */
.ccom-pwa-banner.ccom-pwa-banner--desktop {
  padding-right: calc(48px + max(12px, (100vw - 100%)));
}

.ccom-pwa-banner.ccom-pwa-banner--desktop .ccom-pwa-banner__close {
  right: calc(12px + max(12px, (100vw - 100%)));
}
