/* Preserve the existing CTA treatment; long labels must fit inside its padding. */
.grid:has(> .storefront-cta-button) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    grid-auto-rows: 1fr;
}

.storefront-cta-button {
    height: auto;
    min-width: 0;
    padding: 0.875rem 1.25rem;
    white-space: normal;
    line-height: 1.4;
}

.storefront-cta-button > span {
    min-width: 0;
}

/* Narrow two-column cards keep their full labels instead of squeezing them. */
.storefront-card-button {
    height: auto;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    white-space: normal;
    text-align: center;
}
