/* Compact version of the detail-page banner, including filtered list widths. */
.app-promo--list {
    container: app-promo-list / inline-size;
    margin: 1rem 0;
}

    .app-promo--list .app-promo__link {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(300px, 1.2fr);
        min-height: 220px;
        text-align: left;
    }

.app-promo--list .app-promo__media {
    position: relative;
    inset: auto;
    opacity: 1;
}

.app-promo--list .app-promo__media::after {
    background: linear-gradient(90deg, transparent 25%, #0d2d1a 100%);
}

.app-promo--list .app-promo__copy {
    align-items: flex-start;
    padding: 1.4rem 1rem;
}

.app-promo--list .app-promo__title {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.app-promo--list .app-promo__description {
    font-size: 1rem;
    line-height: 1.45;
}

.app-promo--list .app-promo__button {
    min-width: 0;
    margin-top: 1rem;
    padding: .65rem 1rem;
    font-size: 1rem;
}

    .app-promo--list .app-promo__stores {
        display: flex;
        margin-right: 10px;
        flex-wrap: nowrap;
        justify-content: center;
        gap: .65rem;
        align-items: center;
    }

    .app-promo--list .app-promo__store-link {
        flex-direction: column;
        gap: .5rem;
        max-width: 100%;
        height: 173px;
        margin: 0;
        padding: .5rem;
        color: #102112;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, .5);
        text-decoration: none;
    }

.app-promo--list .app-promo__qr {
    display: block;
    width: 124px;
    height: 124px;
    background: #fff;
    border-radius: 4px;
}

.app-promo--list .app-promo__store-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    white-space: nowrap;
}

.app-promo--list .app-promo__store-link:hover {
    color: #102112;
    background: #b7ed20;
    border-color: #b7ed20;
    text-decoration: none;
}

.app-promo--list .app-promo__store-link:focus-visible {
    outline: 3px solid #b7ed20;
    outline-offset: 3px;
}

.app-promo--list .app-promo__store-link i,
.app-promo--list .app-promo__link:hover .app-promo__store-link i {
    font-size: 1.35rem;
    transform: none;
}

.app-promo--list .app-promo__device {
    display: flex;
    padding: .6rem .6rem .6rem 0;
}

.app-promo--list .app-promo__phone {
    height: 100%;
    max-height: 230px;
}

/* The existing DataTables row also supplies a background on mobile. */
.list-table tr.bg-dys-greendark,
.list-table tr.bg-dys-greendark > td {
    background-color: transparent !important;
    border: 0 !important;
}

.list-table tr.app-promo-row > td.app-promo-cell,
.list-table tr.app-promo-child > td {
    padding-right: 0 !important;
    padding-left: 0 !important;
    border: 0 !important;
}

@container app-promo-list (max-width: 640px) {
    .app-promo--list .app-promo__link {
        grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
    }

    .app-promo--list .app-promo__media {
        position: absolute;
        inset: 0;
        opacity: .25;
    }

        .app-promo--list .app-promo__media::after {
            background: linear-gradient(90deg, rgba(13, 45, 26, .5), #0d2d1a 85%);
        }
}

@container app-promo-list (max-width: 400px) {
    .app-promo--list .app-promo__link {
        grid-template-columns: minmax(0, 1fr);
        min-height: 210px;
        text-align: center;
    }

    .app-promo--list .app-promo__copy {
        align-items: center;
        padding: 1.5rem 1.2rem;
    }

    .app-promo--list .app-promo__stores {
        justify-content: center;
    }

    .app-promo--list .app-promo__device {
        display: none;
    }
}
