/* Scoped to the store links and daily, non-modal Android install suggestion. */
.app-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e3e8e4;
}
.app-download__intro,
.app-install-banner__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-download__intro img,
.app-install-banner__intro img {
  flex-shrink: 0;
  border-radius: 12px;
}
.app-download h2,
.app-install-banner h2 {
  margin: 0 0 4px;
  color: #1f4d39;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.app-download p,
.app-install-banner p {
  margin: 0;
  color: #4b524e;
  font-size: 14px;
  line-height: 1.5;
}
.app-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #2f6f4f;
  border-radius: 10px;
  background: #2f6f4f;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.app-store-link:visited { color: #fff; }
.app-store-link--outline,
.app-store-link--outline:visited { background: #fff; color: #245a3f; }
.app-store-link:focus-visible,
.app-install-banner__close:focus-visible { outline: 3px solid #1f4d39; outline-offset: 3px; }
.app-store-link:hover { background: #245a3f; color: #fff; text-decoration: none; }
.app-store-link--outline:hover { background: #eef6f1; color: #1f4d39; }
.app-install-banner[hidden],
#app-install-spacer[hidden] { display: none !important; }
.app-install-banner {
  position: fixed;
  z-index: 60;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  width: auto;
  max-width: 480px;
  max-height: 70vh;
  max-height: 70dvh;
  margin: 0 auto;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #c7d9ce;
  border-radius: 16px;
  background: #fff;
  color: #1c1f1d;
  box-shadow: 0 6px 28px rgba(31, 77, 57, .18);
  box-sizing: border-box;
}
.app-install-banner__intro { align-items: flex-start; padding-right: 36px; }
.app-install-banner .app-store-links { margin-top: 16px; }
.app-install-banner .app-store-link { flex: 1 1 110px; }
.app-install-banner__close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b524e;
  cursor: pointer;
}
.app-install-banner__close:hover { background: #eef6f1; color: #1f4d39; }
/* No entrance animation: also safe for prefers-reduced-motion. */
@media (max-width: 480px) {
  .app-download .app-store-links { width: 100%; }
  .app-download .app-store-link { flex: 1 1 180px; }
}
