/* App download banner (Views/Shared/Common/_AppDownloadBanner.cshtml)
   Loaded by both _MyPLUSLayout and _GuestLayout, so keep it self-contained. */
.app-banner {
    --app-banner-bg: #E8F1FB;
    --app-banner-border: #CFE0F5;
    --app-banner-title: #1a1a1a;
    --app-banner-subtitle: #5f6368;
    --app-banner-accent: #0066cc;
    --app-banner-accent-hover: #0052a3;

    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--app-banner-bg);
    border-bottom: 1px solid var(--app-banner-border);
    border-left: 4px solid var(--app-banner-accent);
    padding: 8px 4px 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    position: relative;
    z-index: 1001;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: opacity 150ms ease-out;
}

.app-banner.is-dismissing {
    opacity: 0;
}

.app-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.app-banner__title {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--app-banner-title);
}

.app-banner__subtitle {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--app-banner-subtitle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 36px;
    padding: 0 18px;
    background-color: var(--app-banner-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 18px;
    text-decoration: none;
    transition: background-color 150ms ease-out;
}

.app-banner__cta:hover,
.app-banner__cta:active,
.app-banner__cta:focus {
    background-color: var(--app-banner-accent-hover);
    color: #ffffff;
    text-decoration: none;
}

.app-banner__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--app-banner-subtitle);
    cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}

.app-banner__close:hover,
.app-banner__close:active {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--app-banner-title);
}

.app-banner__close svg {
    display: block;
}

.app-banner__cta:focus-visible,
.app-banner__close:focus-visible {
    outline: 2px solid var(--app-banner-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .app-banner,
    .app-banner__cta,
    .app-banner__close {
        transition: none;
    }
}
