/**
 * UsedCarBase Mobile App Banner Styles
 *
 * Phase 1.15 E-CP6 · 2026-05-20
 *
 * Only renders on mobile (≤768px). Sticky top-of-page entry strip
 * encouraging users to switch to the PWA for faster browsing.
 */

.ucb-app-banner {
  display: none; /* hidden by default; mobile media query enables */
}

@media (max-width: 768px) {
  .ucb-app-banner {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1F3B7A 0%, #142554 100%);
    color: white;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    transform: translateY(0);
    transition: transform 240ms ease;
    font-family: 'Inter', -apple-system, 'PingFang SC', sans-serif;
  }

  .ucb-has-app-banner {
    /* Push the rest of the page down so banner doesn't cover content */
    padding-top: 60px;
  }
  .ucb-has-app-banner .site-header,
  .ucb-has-app-banner header[role="banner"] {
    margin-top: 60px;
  }

  .ucb-app-banner__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: white !important;
    text-decoration: none !important;
    padding: 4px 0;
  }
  .ucb-app-banner__cta:hover,
  .ucb-app-banner__cta:focus {
    color: white !important;
    text-decoration: none !important;
  }

  .ucb-app-banner__icon {
    font-size: 22px;
    flex-shrink: 0;
  }

  .ucb-app-banner__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
  }
  .ucb-app-banner__text strong {
    font-size: 13px;
    font-weight: 600;
  }
  .ucb-app-banner__text span {
    font-size: 11px;
    opacity: 0.78;
  }

  .ucb-app-banner__arrow {
    color: #F18B30;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }

  .ucb-app-banner__close {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.6);
    font-size: 22px;
    line-height: 1;
    padding: 4px 10px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .ucb-app-banner__close:hover {
    color: white;
  }
}
