/* Both templates use this footer, including the longer labels for saved products. */
body#main #content dialog.sbv-quick-dialog .sbv-quick-body .sbv-tile-footer {
    display: flex;
    flex-wrap: wrap !important;
}
body#main .sbv-detail-lists {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}
body#main .sbv-detail-lists button[aria-pressed="true"] {
    border-color: currentColor;
}
@media (max-width: 767px) {
    body#main #content dialog.sbv-quick-dialog .sbv-quick-body .sbv-tile-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        align-items: stretch;
    }
    body#main #content dialog.sbv-quick-dialog .sbv-tile-footer > :is(button, a) {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        min-height: 44px;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 768px) {
    body#main #content dialog.sbv-quick-dialog .sbv-tile-footer > :is(.sbv-quick-list, .sbv-quick-link) {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow-wrap: normal;
    }
}
