/* ============================================================
   FACONS PWA Install Banner & FAB
   ============================================================ */

/* ── Slide-up banner ───────────────────────────────────────── */

#facons-pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
  background: #ffffff;
  border-top: 3px solid #0a3d2e;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
  font-family: 'Segoe UI', Arial, sans-serif;
}

#facons-pwa-banner.facons-pwa-banner--visible {
  transform: translateY(0);
}

/* content rows */
.pwa-banner-inner {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 20px;
}

/* app icon */
.pwa-banner-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f7f4;
  border: 1px solid #d0e8df;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* text block */
.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0a3d2e;
  line-height: 1.25;
}

.pwa-banner-text p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
}

/* iOS steps */
.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #333;
}

.pwa-ios-step-num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  background: #0a3d2e;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-ios-step svg {
  width: 14px;
  height: 14px;
  fill: #0a3d2e;
  vertical-align: middle;
  flex-shrink: 0;
}

/* action buttons */
.pwa-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pwa-btn-install {
  padding: 9px 18px;
  background: #0a3d2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.18s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.pwa-btn-install:active {
  background: #072b20;
  transform: scale(0.96);
}

.pwa-btn-dismiss {
  padding: 9px 13px;
  background: transparent;
  color: #777;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s;
}

.pwa-btn-dismiss:active {
  background: #f5f5f5;
}

/* × close button */
.pwa-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.pwa-banner-close:active {
  color: #444;
  background: #f0f0f0;
}

@media (max-width: 360px) {
  .pwa-banner-inner { padding: 14px 14px 18px; gap: 10px; }
  .pwa-banner-text h4 { font-size: 13.5px; }
  .pwa-banner-text p  { font-size: 12px; }
}

/* ── Floating Action Button (FAB) ──────────────────────────── */
/*
   Just the FACONS logo floating at the right edge — no card,
   no background, no badge. Clean and unobtrusive.
*/

#facons-pwa-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 0;           /* flush to the right edge */
  z-index: 99999;

  width: 48px;
  height: 48px;
  border-radius: 50% 0 0 50%;  /* left-half circle, flat on right edge */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
  -webkit-tap-highlight-color: transparent;
}

#facons-pwa-fab.facons-pwa-fab--visible {
  opacity: 1;
  transform: translateX(0);
}

#facons-pwa-fab:active {
  opacity: 0.75;
  transform: translateX(4px);
}

#facons-pwa-fab img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  /* drop-shadow so logo is visible against any background */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* Hide PWA banner and FAB on tablets/laptops/desktops */
@media (min-width: 769px) {
    #facons-pwa-banner,
    #facons-pwa-fab {
        display: none !important;
    }
}