/* Four controls on a single-column mobile card. The class is only added to
   cards with both actions and no product photo. */
@media (max-width: 768px) {
    .category-page .card.mobile-four-actions {
        --action-gap: 12px;
        --action-height: clamp(52px, 13.5vw, 62px);
        --action-radius: clamp(11px, 3vw, 15px);
        --action-bleed: 9px;
        padding-bottom: 28px;
    }
    .mobile-four-actions > :is(.bottom-area, .product-action-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--action-gap);
        margin-inline: max(calc(-1 * var(--action-bleed)), calc((100% - 424px) / 2));
    }
    .mobile-four-actions > .product-action-row { margin-top: 24px; }
    .category-page .mobile-four-actions > .bottom-area { margin-top: var(--action-gap); }
    .category-page .mobile-four-actions :is(.product-action-button, .vendor-logo-box, .go-link) {
        width: 100%;
        height: var(--action-height);
        border-radius: var(--action-radius);
    }
    /* Keep the original text-fitting width inside the widened firm badge. */
    .category-page .mobile-four-actions .vendor-name-box {
        padding-inline: max(4px, calc(50% - 68px));
    }
    .category-page .mobile-four-actions .product-action-button {
        background: linear-gradient(180deg, #eef0ee 0%, #e0e4e1 25%, #d1d6d2 58%, #c9cfca 100%);
        border: 0;
        color: #0f3f3f;
        box-shadow: inset 0 3px 6px rgba(255,255,255,.50),
                    inset 0 -3px 6px rgba(52,76,63,.16),
                    0 3px 6px -1px rgba(35,56,46,.27);
        font-family: 'Nunito', Arial, sans-serif;
        font-weight: 800;
        font-size: clamp(14px, 4.65vw, 23px);
        line-height: 1.15;
        white-space: nowrap;
        text-align: center;
    }
    .mobile-four-actions .mobile-alarm-space { display: inline; }
    .mobile-four-actions [data-price-alarm-open] br { display: none; }
}
@media (max-width: 400px) {
    .category-page .card.mobile-four-actions { --action-gap: 10px; }
    .category-page .mobile-four-actions .vendor-name-box {
        padding-inline: calc(4px + var(--action-bleed) / 2 + (12px - var(--action-gap)) / 4);
    }
}
