/* On phones, purchase controls belong below the photo, never over it. */
@media (max-width: 767px) {
    body .product .product-media:has(> .product-action) {
        display: flex;
        flex-direction: column;
        height: auto !important;
        max-height: none;
        min-height: 0;
        aspect-ratio: auto !important;
    }
    body .product .product-media:has(> .product-action) > a:not(.btn-product-compare--corner) {
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        height: auto !important;
        aspect-ratio: 1;
    }
    body .product .product-media > .product-action {
        position: static !important;
        flex: 0 0 auto;
        inset: auto !important;
        display: flex;
        width: 100%;
        margin: 0;
        padding: 8px;
        border-top: 1px solid #e6edf6;
        background: #fff;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        transition: none;
    }
    body .product .product-media > .product-action .favorite-purchase-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }
    body .product .product-media > .product-action .btn-cart {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 8px 6px;
        gap: 5px;
        white-space: normal;
        line-height: 1.25;
        font-size: 12px !important;
        box-shadow: none;
    }
    body .product .product-media > .product-action .btn-cart span {
        min-width: 0;
        font-size: inherit !important;
        line-height: inherit;
        overflow-wrap: anywhere;
    }
    body .product .product-media > .product-action .btn-cart i { flex: 0 0 auto; font-size: 16px; }
    body .product .product-media > .product-action .favorite-toggle {
        position: static;
        flex: 0 0 44px;
        width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
    }
}
