/* Smart App Banner — custom install banner for non-Safari browsers.
   Mirrors the native iOS Smart App Banner. Tokens from docs/style.css :root. */

.cm-smart-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface-strong, #ffffff);
  border-bottom: 1px solid var(--line, rgba(10, 10, 11, 0.1));
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--text, #0a0a0b);
  position: relative;
  z-index: 101;
  animation: cm-smart-banner-in 320ms cubic-bezier(0.05, 0.7, 0.1, 1);
}

@keyframes cm-smart-banner-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cm-smart-banner__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft, #8e8e93);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cm-smart-banner__close:hover {
  background: var(--surface-soft, #efeff3);
  color: var(--text, #0a0a0b);
}

.cm-smart-banner__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--line, rgba(10, 10, 11, 0.1));
  object-fit: cover;
}

.cm-smart-banner__text {
  flex: 1;
  min-width: 0;
}

.cm-smart-banner__name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-smart-banner__store {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted, #666666);
}

.cm-smart-banner__cta {
  flex: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--blue, #0a84ff);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.cm-smart-banner__cta:hover {
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  .cm-smart-banner {
    padding: 0.55rem 0.7rem;
    gap: 0.6rem;
  }
  .cm-smart-banner__icon {
    width: 42px;
    height: 42px;
  }
}
