/*
 * HomePro RealesWP Companion 1.4.43 — order history spacing refinement.
 * Presentation only. Keeps WooCommerce output intact while adding space
 * between responsive row labels (for example "Includes:") and nearby values.
 */
:root {
    --hprc-orders-label-width: 118px;
    --hprc-orders-label-gap: 16px;
}

@media (max-width: 1180px) {
    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td,
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td,
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td,
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td,
    body .woocommerce table.shop_table_responsive.account-orders-table tr td,
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 8px var(--hprc-orders-label-gap) !important;
        text-align: left !important;
    }

    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td::before,
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td::before,
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td::before,
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td::before,
    body .woocommerce table.shop_table_responsive.account-orders-table tr td::before,
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td::before {
        float: none !important;
        display: block !important;
        flex: 0 0 var(--hprc-orders-label-width) !important;
        width: var(--hprc-orders-label-width) !important;
        max-width: 100% !important;
        min-width: 96px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td > *,
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td > *,
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td > *,
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td > *,
    body .woocommerce table.shop_table_responsive.account-orders-table tr td > *,
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td :is(.button, .wc-forward),
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td :is(.button, .wc-forward),
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td :is(.button, .wc-forward),
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td :is(.button, .wc-forward),
    body .woocommerce table.shop_table_responsive.account-orders-table tr td :is(.button, .wc-forward),
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td :is(.button, .wc-forward) {
        margin-inline-start: 0 !important;
    }

    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td[data-title*="Include" i],
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td[data-title*="Include" i],
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td[data-title*="Include" i],
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td[data-title*="Include" i],
    body .woocommerce table.shop_table_responsive.account-orders-table tr td[data-title*="Include" i],
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td[data-title*="Include" i],
    body.woocommerce-account .woocommerce table.shop_table_responsive.my_account_orders tr td[data-title*="Category" i],
    body.woocommerce-account table.shop_table_responsive.my_account_orders tr td[data-title*="Category" i],
    body.woocommerce-page .woocommerce table.shop_table_responsive.my_account_orders tr td[data-title*="Category" i],
    body.woocommerce-page table.shop_table_responsive.my_account_orders tr td[data-title*="Category" i],
    body .woocommerce table.shop_table_responsive.account-orders-table tr td[data-title*="Category" i],
    body .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td[data-title*="Category" i] {
        row-gap: 10px !important;
    }
}

@media (max-width: 600px) {
    :root {
        --hprc-orders-label-width: 96px;
        --hprc-orders-label-gap: 12px;
    }
}
