/* Keep order actions readable when WooCommerce renders Pay, View and Cancel together. */
@media (min-width: 769px) {
	.woocommerce-account .woocommerce-orders-table th.woocommerce-orders-table__header-order-actions,
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		width: 202px;
		min-width: 202px;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		align-content: center;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .woocommerce-button {
		position: static !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-width: 0;
		min-height: 38px;
		margin: 0 !important;
		padding: 8px 10px;
		line-height: 1.2;
		white-space: nowrap;
		transform: none !important;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .woocommerce-button.cancel {
		grid-column: 1 / -1;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .woocommerce-button:first-child:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before {
		flex: 0 0 100%;
	}

	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .woocommerce-button {
		position: static !important;
		flex: 1 1 130px;
		min-height: 40px;
		margin: 0 !important;
		transform: none !important;
		text-align: center;
	}
}
