/* Floating Chrome extension promo (desktop Chromium only; mounted by JS) */
.chrome-ext-promo {
    --chrome-promo-enter: 450ms;
    --chrome-promo-exit: 280ms;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 12000;
    width: min(372px, calc(100vw - 32px));
    padding: 14px 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--border-medium);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-family: inherit;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition:
        opacity var(--chrome-promo-enter) ease,
        transform var(--chrome-promo-enter) cubic-bezier(0.22, 1, 0.36, 1);
}

.chrome-ext-promo.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chrome-ext-promo.is-instant {
    transition: none;
}

.chrome-ext-promo.is-leaving {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity var(--chrome-promo-exit) ease,
        transform var(--chrome-promo-exit) ease;
}

.chrome-ext-promo__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.chrome-ext-promo__close:hover,
.chrome-ext-promo__close:focus-visible {
    color: var(--text-primary);
    background: var(--accent-soft);
    outline: none;
}

.chrome-ext-promo__row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 22px;
}

.chrome-ext-promo__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.chrome-ext-promo__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.chrome-ext-promo__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.chrome-ext-promo__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

.chrome-ext-promo__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.chrome-ext-promo__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.chrome-ext-promo__cta:hover {
    filter: brightness(1.05);
}

.chrome-ext-promo__cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .chrome-ext-promo {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chrome-ext-promo,
    .chrome-ext-promo.is-leaving {
        transition: none;
    }
}
