/* Optional promo image and gallery in Account product cards. */

.account-product-media {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin-bottom: 14px;
}

/* Fill the card width and let the uploaded image's proportions determine its height. */
.account-product-promo {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #f0f6fc;
    object-fit: contain;
}

/* Keep every thumbnail reachable without increasing the width of its product card. */
.account-product-screenshots {
    display: flex;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: thin;
}

.account-product-screenshot {
    flex: 0 0 52px;
    height: 52px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: #f0f6fc;
    cursor: zoom-in;
}

.account-product-screenshot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-product-screenshot:hover {
    border-color: var(--color-blue);
}

.account-product-screenshot:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 1px;
}

/* Managed descriptions are plain text and may span multiple lines. */
.account-product-grid .account-product-description,
.account-enrollment-product-description {
    overflow-wrap: anywhere;
    white-space: pre-line;
}
